package com.ruoyi.web.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

@Data
@TableName(value = "zhwl_device_list")
public class ZhwlDeviceListEntity implements Serializable {

    @TableId
    private Long deviceId;

    private String deviceImei;

    private String deviceImsi;

    private String iccid;

    private String deviceTypeName;

    private String deviceModelName;

    private Integer registerSign;

    private Integer state;

    private Double latitude;

    private Double longitude;

    private String installAddress;

    private String contact;

    private String phonenumber;

    private String companyName;

    private String floorName;

    private String buildingName;

    private String roomName;

    private String region;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 删除标志
     */
    @TableLogic
    private Integer deleted = 0;

}
