package com.kxs.system.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 jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 训练营分组(KxsCampGroup)表实体类
 *
 * @author 系统
 * @since 2024-07-02 10:42:52
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsCampGroup extends Model<KxsCampGroup> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分组ID
     */
    @Schema(description = "分组ID")
    @TableId(type = IdType.AUTO)
    private Integer groupId;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


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


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


    /**
     * 小组名称
     */
    @Schema(description = "小组名称")
    @NotBlank(message = "小组名称不能为空")
    private String groupName;




    /**
     * 训练营ID
     */
    @Schema(description = "训练营ID")
    @NotNull(message = "训练营ID不能为空")
    private Integer campId;


    /**
     * 组长ID
     */
    @Schema(description = "组长ID")
    private Integer groupLeaderId;


    /**
     * 组长名称
     */
    @Schema(description = "组长名称")
    private String groupUsername;


    /**
     * 组长创客编号
     */
    @Schema(description = "组长创客编号")
    private String groupUserCode;

    /**
     * 组开机数
     */
    private Integer groupOpenNum;

    /**
     * 组下单数
     */
    private Integer groupOrderNum;




}

