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;

/**
 * 合伙人表(KxsPartner)表实体类
 *
 * @author 系统
 * @since 2024-02-22 15:39:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsPartner extends Model<KxsPartner> 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;

    /**
     * 合伙人过期时间
     */
    @Schema(description = "合伙人过期时间")
    private LocalDateTime expiredDate;


    /**
     * 删除标记，0未删除，1已删除
     */
    @TableLogic
    @Schema(description = "删除标记，0未删除，1已删除")
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;


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


    /**
     * 合伙人等级
     */
    @Schema(description = "合伙人等级")
    private Integer partnerType;


    /**
     * 未使用额度
     */
    @Schema(description = "未使用额度")
    private BigDecimal amount;


    /**
     * 关联分仓额度
     */
    @Schema(description = "关联分仓额度")
    private BigDecimal storeAmount;


    /**
     * 可提现额度
     */
    @Schema(description = "可提现额度")
    private BigDecimal withdrawalAmount;


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


    /**
     * 合伙人职级
     */
    @Schema(description = "合伙人职级")
    private Integer partnerLevel;




}

