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;

/**
 * 用户分期表(KxsUserByStage)表实体类
 *
 * @author 系统
 * @since 2024-01-03 09:39:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsUserByStage extends Model<KxsUserByStage> 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 userId;


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


    /**
     * 期数
     */
    @Schema(description = "期数")
    private Integer number;


    /**
     * 分期金额
     */
    @Schema(description = "分期金额")
    private BigDecimal stageAmount;


    /**
     * 已扣除金额
     */
    @Schema(description = "已扣除金额")
    private BigDecimal deductAmount;


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


    /**
     * 分期单号
     */
    @Schema(description = "分期单号")
    private String stageSn;


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


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




}

