package org.dromara.rfid.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 读取记录对象 rfid_read_record
 *
 * @author zch
 * @date 2025-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("rfid_read_record")
public class RfidReadRecord extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 设备id，对应rfid_device.id
     */
    private Long deviceId;

    /**
     * 读取状态(1-成功;0-失败)
     */
    private String readStatus;

    /**
     * 条码信息
     */
    private String barcode;

    /**
     * 记录时间
     */
    private Date recordTime;

    /**
     * 是否告警(0-否;1-是)
     */
    private String alarmFlag;

    /**
     * 告警级别(1-一般;2-严重等)
     */
    private String alarmLevel;

    /**
     * 告警类型
     */
    private String alarmType;

    /**
     * 告警行为
     */
    private String alarmAction;


}
