package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分销商用户记录表
 *
 * @author 科技小王子
 * @since 2025-08-11 23:51:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopDealerUser对象", description = "分销商用户记录表")
public class ShopDealerUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "0经销商,1企业也,2集团)")
    private Integer type;

    @Schema(description = "自增ID")
    private Integer userId;

    @Schema(description = "微信openid")
    @TableField(exist = false)
    private String openid;

    @Schema(description = "店铺名称")
    private String dealerName;

    @Schema(description = "小区名称")
    private String community;

    @Schema(description = "头像")
    @TableField(exist = false)
    private String avatar;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "支付密码")
    private String payPassword;

    @Schema(description = "当前可提现佣金")
    private BigDecimal money;

    @Schema(description = "已冻结佣金")
    private BigDecimal freezeMoney;

    @Schema(description = "累积提现佣金")
    private BigDecimal totalMoney;

    @Schema(description = "单价")
    private BigDecimal price;

    @Schema(description = "佣金比例")
    private BigDecimal rate;

    @Schema(description = "推荐人用户ID")
    private Integer refereeId;

    @Schema(description = "成员数量(一级)")
    private Integer firstNum;

    @Schema(description = "成员数量(二级)")
    private Integer secondNum;

    @Schema(description = "成员数量(三级)")
    private Integer thirdNum;

    @Schema(description = "小区ID")
    private Integer communityId;

    @Schema(description = "店铺ID")
    private Integer dealerUserId;

    @Schema(description = "店铺名称")
    @TableField(exist = false)
    private String shopName;

    @Schema(description = "专属二维码")
    private String qrcode;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "是否删除")
    private Integer isDelete;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
