package com.kxs.store.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 客小爽仓库额度表(KxsWarehouseLimit)表实体类
 *
 * @author 系统
 * @since 2024-01-08 09:46:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsWarehouseLimit extends Model<KxsWarehouseLimit> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private Integer delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Integer userId;


    /**
     * 可用额度
     */
    @Schema(description = "可用额度")
    private BigDecimal validAmount;


    /**
     * 固定额度
     */
    @Schema(description = "固定额度")
    private BigDecimal fixedAmount;


    /**
     * 支付宝充值临时额度
     */
    @Schema(description = "支付宝充值临时额度")
    private BigDecimal forAmount;


    /**
     * 担保额度
     */
    @Schema(description = "担保额度")
    private BigDecimal creditAmount;


    /**
     * 操作人
     */
    @Schema(description = "操作人")
    private String createBy;




    /**
     * 余额充值临时额度
     */
    @Schema(description = "余额充值临时额度")
    private BigDecimal yueForAmount;


    /**
     * 已用额度
     */
    @Schema(description = "已用额度")
    private BigDecimal usedAmount;


    /**
     * 仓库类型 0 分仓  1 小分仓
     */
    @Schema(description = "仓库类型 0 分仓  1 小分仓")
    private Integer warehouseType;




}

