package com.kxs.system.api.model;

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

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 训练营奖金池日志表(KxsCampBonusLog)表实体类
 *
 * @author 系统
 * @since 2024-04-08 15:44:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsCampBonusLog extends Model<KxsCampBonusLog> 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已删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private String delFlag;


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


    /**
     * 操作金额
     */
    @Schema(description = "操作金额")
    @NotNull(message = "操作金额不能为空")
    private BigDecimal amount;


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


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


    /**
     * 日志类型 add新增 sub减少
     */
    @Schema(description = "日志类型 add新增 sub减少")
    @NotBlank(message = "操作类型不能为空")
    private String kind;


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


    /**
     * 进入开机累计的sn号
     */
    @Schema(description = "进入开机累计的sn号")
    private String posSn;


    /**
     * 进入奖金池的订单ID
     */
    @Schema(description = "进入奖金池的订单ID")
    private Integer orderId;


    /**
     * 训练营ID
     */
    @Schema(description = "训练营ID")
    @NotNull(message = "训练营ID不能为空")
    private Integer campId;


    /**
     * 分期大盟主的分期ID
     */
    @Schema(description = "分期大盟主的分期ID")
    private Integer stageId;


    /**
     * 操作人
     */
    @Schema(description = "操作人")
    @NotBlank(message = "操作人不能为空")
    private String createBy;




}

