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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
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_device
 * @Author: jeecg-boot
 * @Date:   2025-08-19
 * @Version: V1.0
 */
@Data
@TableName("nm_device")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="nm_device")
public class AppDevice 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 orgCode;
	/**设备编号（海康序列号）*/
	@Excel(name = "设备编号（海康序列号）", width = 15)
    @Schema(description = "设备编号（海康序列号）")
    private String deviceSerial;
	/**设备类型：1、出口 2、进口*/
	@Excel(name = "设备类型：1、出口 2、进口", width = 15)
    @Schema(description = "设备类型：1、出口 2、进口")
    private Integer deviceType;
	/**设备号*/
	@Excel(name = "设备号", width = 15)
    @Schema(description = "设备号")
    private Integer deviceNo;
	/**门店ID*/
	@Excel(name = "门店ID", width = 15)
    @Schema(description = "门店ID")
    private String siteId;
    @Excel(name = "门店名称", width = 15)
    @Schema(description = "门店名称")
    @TableField(exist = false)
    private String siteName;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @Schema(description = "备注")
    private String remark;
	/**创建人;创建人*/
    @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;
    @Schema(description = "设备密码")
    private String validateCode;
	/**更新时间;更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间;更新时间")
    private Date updateTime;

}
