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.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户分期记录表(KxsUserByStageLog)表实体类
 *
 * @author 系统
 * @since 2024-01-03 09:39:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsUserByStageLog extends Model<KxsUserByStageLog> 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已删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;


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


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


    /**
     * 状态 0待扣款 1扣款中 2已扣款 3扣款失败
     */
    @Schema(description = "状态 0待扣款 1扣款中 2已扣款 3扣款失败")
    private Integer status;


    /**
     * 当前期数
     */
    @Schema(description = "当前期数")
    private Integer thisNumber;


    /**
     * 本期扣除金额
     */
    @Schema(description = "本期扣除金额")
    private BigDecimal amount;


    /**
     * 扣款时间
     */
    @Schema(description = "扣款时间")
    private LocalDateTime deductTime;


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


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




}

