package org.jeecg.modules.system.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: nm_hikiot_device
 * @Author: jeecg-boot
 * @Date:   2025-08-15
 * @Version: V1.0
 */
@Data
@TableName("nm_hikiot_device")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="nm_hikiot_device")
public class AppHikiotDevice implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private String id;
	/**设备序列号*/
	@Excel(name = "设备序列号", width = 15)
    @Schema(description = "设备序列号")
    private String deviceSerial;
	/**是否添加至海康互联 0、未添加 1、已添加*/
	@Excel(name = "是否添加至海康互联 0、未添加 1、已添加", width = 15)
    @Schema(description = "是否添加至海康互联 0、未添加 1、已添加")
    private Integer isValid;
	/**添加码*/
	@Excel(name = "添加码", width = 15)
    @Schema(description = "添加码")
    private String validateCode;
	/**siteId*/
	@Excel(name = "siteId", width = 15)
    @Schema(description = "siteId")
    private String siteId;
	/**删除标志;删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除标志;删除状态(0-正常,1-已删除)", width = 15)
    @Schema(description = "删除标志;删除状态(0-正常,1-已删除)")
    @TableLogic
    private Integer delFlag;
	/**创建人;创建人*/
    @Schema(description = "创建人;创建人")
    private String createBy;
	/**创建时间;创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间;创建时间")
    private Date createTime;
	/**更新人;更新人*/
    @Schema(description = "更新人;更新人")
    private String updateBy;
	/**更新时间;更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间;更新时间")
    private Date updateTime;
}
