package com.ltgk.port.domain.entity;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@ApiModel(description = "报警类型")
@Data
@TableName(value = "warn_area_type")
public class WarnAreaType implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    @Size(max = 255, message = "主键最大长度要小于 255")
    @NotBlank(message = "主键不能为空")
    private String id;

    /**
     * 报警类型
     */
    @TableField(value = "warn_area_type")
    @ApiModelProperty(value = "报警类型")
    @Size(max = 255, message = "报警类型最大长度要小于 255")
    private String warnAreaType;

    /**
     * 报警类型名称
     */
    @TableField(value = "warn_area_name")
    @ApiModelProperty(value = "报警类型名称")
    @Size(max = 255, message = "报警类型名称最大长度要小于 255")
    private String warnAreaName;

    /**
     * 删除标志: 0-未删除, 1-已删除
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    private Integer delFlag;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建者")
    @Size(max = 32, message = "创建者最大长度要小于 32")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_at")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value = "更新者")
    @Size(max = 32, message = "更新者最大长度要小于 32")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_at")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    @Size(max = 900, message = "备注最大长度要小于 900")
    private String remark;

    private static final long serialVersionUID = 1L;
}