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-11-28
 */
@Getter
@Setter
@TableName("qw_group_live_code")
@ApiModel(value = "QwGroupLiveCode对象", description = "群活码")
public class QwGroupLiveCode extends Model<QwGroupLiveCode> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty("活码名称")
    @TableField("group_name")
    private String groupName;

    @ApiModelProperty("实际二维码数量")
    @TableField("qrcode_num")
    private Integer qrcodeNum;

    @ApiModelProperty("今日加群数")
    @TableField("to_day_num")
    private Integer toDayNum;

    @ApiModelProperty("累积加群数")
    @TableField("count_num")
    private Integer countNum;

    @ApiModelProperty("项目名称")
    @TableField("project_name")
    private String projectName;

    @ApiModelProperty("项目id")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty("是否启用 1是 0否")
    @TableField("status")
    private Integer status;

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

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

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