package com.sckw.system.model;

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 lombok.Data;
import lombok.experimental.Accessors;

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

/**
 * 打印机
 */
@Data
@Accessors(chain = true)
@TableName("kws_printer")
public class KwsPrinter implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("ent_id")
    private Long entId;

    @TableField("printer_name")
    private String printerName;

    /**
     * 打印机类型，如：热敏打印机、墨带打印机
     */
    @TableField("printer_type")
    private String printerType;

    /**
     * 可使用寿命
     */
    @TableField("useful_life")
    private String usefulLife;

    /**
     * 在线状态: 0-离线, 1-在线
     */
    @TableField("online_status")
    private Integer onlineStatus;

    /**
     * 启停状态: 0-启用, 1-停用
     */
    @TableField("status")
    private Integer status;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField("del_flag")
    private Integer delFlag;

    @TableField("remark")
    private String remark;
}
