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.time.LocalDateTime;

/**
 * ClassName: Preset
 * Package: com.sz.admin.monitor.pojo.po
 * Description:
 */
@Data
@Table(value = "ry_preset", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "预置位业务表")
public class Preset {
    @Id(keyType = KeyType.Auto)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "预置位id")
    private Integer presetId;

    @Schema(description = "摄像机id")
    private Long cameraId;

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

    @Schema(description = "预置位名称")
    private String presetName;

    @Schema(description = "预置位描述")
    private String description;

    @Schema(description = "0-不是基准点，1-为基准点")
    private Integer isBasicPoint;

    @Schema(description = "上报的url")
    private String presetUrl;

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

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
