package com.ycwl.basic.model.pc.device.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("device_config")
public class DeviceConfigEntity {
    private Long id;
    /**
     * 设备id
     */
    private Long deviceId;
    private Integer viidType;
    /**
     * 启用时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 存储类型
     */
    private Integer storeType;
    /**
     * 存储配置
     */
    private String storeConfigJson;
    /**
     * 存储过期天数
     */
    private Integer storeExpireDay;
    /**
     * 检测设备是否在线
     */
    private Integer onlineCheck;
    /**
     * 检测设备是否在线最大间隔
     */
    private Integer onlineMaxInterval;
    /**
     * 切割时，取人脸前多少秒的视频
     */
    private BigDecimal cutPre;
    /**
     * 切割时，取人脸后多少秒的视频
     */
    private BigDecimal cutPost;
    private Integer enablePreBook;
    private Integer imageFree;
    private Integer videoFree;
    private Long pairDevice;
}
