package com.ruoyi.drill.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.GnhzBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * DrillContingent
 *
 * @Auther: mtx
 * @Date: 2023/09/09 9:33
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("drill_contingent")
@ApiModel(value = "应急队伍")
public class DrillContingent extends GnhzBaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 队伍名称
     */
    @ApiModelProperty("队伍名称")
    @TableField(value = "CONTINGENT_NAME")
    @NotBlank(message = "队伍名称不能为空")
    @Size(min = 0, max = 50, message = "队伍名称长度不能超过50个字符")
    private String contingentName;

    /**
     * 队伍状态
     */
    @ApiModelProperty("队伍状态")
    @TableField(value = "CONTINGENT_STATUS")
    private Long contingentStatus;

}
