package com.fizz.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("log_data")
@Schema(description = "")
public class LogData {

    /**
     * seqid
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description ="seqid")
    private Integer seqid;

    /**
     * timestamp
     */
    @Schema(description ="timestamp")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timestamp;

    /**
     * module
     */
    @Schema(description ="警报源")
    private String module;

    /**
     * logtype
     */
    @Schema(description ="警报类型，组")
    private String logtype;

    /**
     * logtext
     */
    @Schema(description ="警报内容")
    private String logtext;

    /**
     * status
     */
    @Schema(description ="状态")
    private Integer status;

    /**
     * confirmTime
     */
    @Schema(description ="confirmTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime confirmTime;


}