/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.entity.inspection;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author codvision
 */
@Data
@Builder
@TableName("tbl_inspection_task")
@ApiModel(description = "检查任务")
@AllArgsConstructor
@NoArgsConstructor
public class InspectionTask implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "任务开始时间")
    private String startTime;

    @ApiModelProperty(value = "检查标签")
    private String checkTag;

    @ApiModelProperty(value = "检查任务名")
    private String name;

    @ApiModelProperty(value = "任务结束时间")
    private String endTime;

    @ApiModelProperty(value = "类别，字典：INSPECTION_CATEGORY，PERSON人员，ADDRESS房屋，ENTERPRISE企业")
    private String category;

    @ApiModelProperty(value = "检查频率(天)")
    private Integer frequency;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
