package com.fs.qw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信分配规则用户关联表
 * </p>
 *
 * @author zhangqin
 * @since 2025-12-05
 */
@Getter
@Setter
@TableName("qw_assign_rule_user")
@ApiModel(value = "QwAssignRuleUser对象", description = "微信分配规则用户关联表")
public class QwAssignRuleUser extends Model<QwAssignRuleUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("分配规则id")
    @TableField("assign_id")
    private Long assignId;

    @ApiModelProperty("企微表ID")
    @TableField("sys_qw_user_id")
    private Long sysQwUserId;

    @ApiModelProperty("企微微信昵称")
    @TableField("qw_user_name")
    private String qwUserName;

    @ApiModelProperty("企微微信用户ID")
    @TableField("qw_user_id")
    private String qwUserId;


    @ApiModelProperty("企微微信用户ID")
    @TableField("corp_id")
    private String corpId;


    @ApiModelProperty("今日分配数")
    @TableField("assign_num_to_day")
    private Integer assignNumToDay;

    @ApiModelProperty("累积分配数")
    @TableField("assign_num_count")
    private Integer assignNumCount;

    @ApiModelProperty("今日添加数")
    @TableField("add_num_to_day")
    private Integer addNumToDay;

    @ApiModelProperty("累积添加数")
    @TableField("add_num_count")
    private Integer addNumCount;
    @ApiModelProperty("权重")
    @TableField("weight")
    private Integer weight;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
