package com.ozs.entity;

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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 报警扩展表
 * </p>
 *
 * @author ozs
 * @since 2023-04-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MsgAlarmExt implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 报警唯一标识UUID
     */
    private String alarmId;

    /**
     * 1图片；2声音；3视频;4.录制视频的地址
     */
    private Integer alarmAttType;

    /**
     * 存储路径
     */
    private String alarmAttPath;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
