package com.sz.admin.monitor.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.sz.mysql.EntityChangeListener;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * ClassName: CameraSnapshot
 * Package: com.sz.admin.monitor.pojo.po
 * Description:
 */
@Data
@Table(value = "ry_camera_snapshot", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "摄像头抓图表")
public class CameraSnapshot implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Id(keyType = KeyType.Auto)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "摄像头ID")
    private Long cameraId;

    @Schema(description = "通道id")
    private Integer channelId;

    @Schema(description = "预置点索引")
    private Integer presetIndex;

    @Schema(description = "图片保存路径")
    private String imagePath;

    @Schema(description = "1-定时巡检, 2-守望归位检测, 3-手动抓拍")
    private Integer checkType;

    @Schema(description = "0-正常, 1-移位")
    private Integer isAbnormal;

    /**
     * 逻辑删除标识：0-正常，1-已删除
     */
    @Column(isLogicDelete = true)
    @Schema(description = "是否删除")
    private String isDeleted;

    @Schema(description = "抓拍时间")
    private LocalDateTime createTime;
}
