package com.zksy.base.warning.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.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName(value = "warning_todo", schema = "app_user")
@Api(tags = "预警待办")
@Data
public class WarningTodo implements Serializable {

    @TableId(value = "todo_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("待办ID")
    private String todoId;

    @TableField("warning_id")
    @ApiModelProperty("预警ID")
    private String warningId;

    @TableField("user_id")
    @ApiModelProperty("用户ID")
    private String userId;

    @TableField("user_name")
    @ApiModelProperty("用户姓名")
    private String userName;

    @TableField("todo_type")
    @ApiModelProperty("待办类型")
    private String todoType;

    @TableField("read_status")
    @ApiModelProperty("阅读状态")
    private String readStatus;

    @TableField("task_name")
    @ApiModelProperty("任务名称")
    private String taskName;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField("complete_time")
    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime completeTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
