package com.sptg.device.api.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Getter;
import lombok.Setter;

/**
 * title: DeviceLog
 * package: com.sptg.device.api.entity
 * description: 设备日志
 */
@Setter
@Getter
@TableName(value = "device_log")
public class DeviceLog implements java.io.Serializable {

    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.AUTO)
    private Long id;

    /**
     * 设备Id
     */
    @TableField(value = "l_device_id")
    private Long deviceId;

    /**
     * 日志内容
     */
    @TableField(value = "s_content")
    private String content;

    /**
     * 记录时间
     */
    @TableField(value = "t_log_time")
    private Date logTime;

    /* -------------------------------------------------------------------------------------------------------------- */

    /**
     * 设备序列号
     */
    @TableField(exist = false)
    private String serialNumber;

}
