package cn.cslg.pas.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.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 事件表的实体类
 *
 * @Author chenyu
 * @Date 2023/4/2
 */
@TableName(value = "event")
@Accessors(chain = true)
@Data
public class Event implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 事件名称
     */
    @TableField(value = "question_name")
    private String questionName;
    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;
    /**
     * 应用场景
     */
    @TableField(value = "application_scenario")
    private String applicationScenario;
    /**
     * 时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "event_date")
    private Date eventDate;
    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Integer tenantId;
    /**
     * 创建人id
     */
    @TableField(value = "create_person_id")
    private Integer createPersonId;
    /**
     * 创建人名称
     */
    @TableField(value = "create_person_name")
    private String createPersonName;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 最后修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modified_time")
    private Date modifiedTime;

}
