package com.kxs.product.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;

/**
 * 客小爽商户表(KxsMerchant)表实体类
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsMerchant extends Model<KxsMerchant> 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已删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;


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


    /**
     * 商户编号
     */
    @Schema(description = "商户编号")
    private String merchantNo;


    /**
     * 商户名称
     */
    @Schema(description = "商户名称")
    private String merchantName;


    /**
     * 身份证号
     */
    @Schema(description = "身份证号")
    private String merchantCard;


    /**
     * 机具ID
     */
    @Schema(description = "机具ID")
    private Integer machineId;


    /**
     * 所属创客ID
     */
    @Schema(description = "所属创客ID")
    private Integer userId;


    /**
     * 商户电话
     */
    @Schema(description = "商户电话")
    private String merchantPhone;


    /**
     * 品牌ID
     */
    @Schema(description = "品牌ID")
    private Integer brandId;


    /**
     * 商户状态 0关闭 1正常 2冻结
     */
    @Schema(description = "商户状态 0关闭 1正常 2冻结")
    private Integer status;


    /**
     * 商户地址
     */
    @Schema(description = "商户地址")
    private String address;


    /**
     * 是否商户型创客 0否 1是
     */
    @Schema(description = "是否商户型创客 0否 1是")
    private Integer isMaker;


    /**
     * 商户型创客的用户ID
     */
    @Schema(description = "商户型创客的用户ID")
    private Integer makerUserId;


    /**
     * 退押达标状态 待处理=0 退还成功=1 退还失败=2 处理中=3 已达标=100 可退还=101
     */
    @Schema(description = "退押达标状态 待处理=0 退还成功=1 退还失败=2 处理中=3 已达标=100 可退还=101")
    private Integer standardStatus;


    /**
     * 退押达标月数
     */
    @Schema(description = "退押达标月数")
    private Integer standardMonths;


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

    /**
     *  总交易额
     */
    @Schema(description = "总交易额")
    private BigDecimal totalAmt;




}

