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;

/**
 * 盟主金额变动记录(KxsLeaderAccountLog)表实体类
 *
 * @author 系统
 * @since 2024-06-26 14:12:11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsLeaderAccountLog extends Model<KxsLeaderAccountLog> 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 beforeAmount;


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


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


    /**
     * 金额类型
     */
    @Schema(description = "金额类型")
    private Integer variationType;


    /**
     * 原因
     */
    @Schema(description = "原因")
    private String variationCause;


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


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


    /**
     * 大盟主的用户ID 标记
     */
    @Schema(description = "大盟主的用户ID 标记")
    private Integer sourceUserId;


    /**
     * 变动类型 可提现余额增减=0 储蓄金增减=1
     */
    @Schema(description = "变动类型 可提现余额增减=0 储蓄金增减=1")
    private Integer changeType;


    /**
     * 数据来源Id
     */
    @Schema(description = "数据来源Id")
    private Integer dataId;

    /**
     * 贸易月
     */
    private Integer tradeMonth;

    /**
     * 交易日期
     */
    private Integer tradeDate;




}

