package com.kxs.user.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;

/**
 * 用户总欠款变动日志表(KxsTotalDebtLog)表实体类
 *
 * @author 系统
 * @since 2024-03-22 11:05:40
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsTotalDebtLog extends Model<KxsTotalDebtLog> 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 String delFlag;


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


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


    /**
     * 变动前金额
     */
    @Schema(description = "变动前金额")
    private BigDecimal beforeAmount;


    /**
     * 变动后金额
     */
    @Schema(description = "变动后金额")
    private BigDecimal afterAmount;


    /**
     * 操作金额
     */
    @Schema(description = "操作金额")
    private BigDecimal amount;


    /**
     * 变动类型 
     */
    @Schema(description = "变动类型 ")
    private Integer changeType;


    /**
     * 日志类型 add新增 sub减少
     */
    @Schema(description = "日志类型 add新增 sub减少")
    private String kind;


    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


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




}

