package com.fuyuanshen.equipment.domain;

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

import java.io.Serial;

/**
 * 围栏进出记录对象 device_fence_access_record
 *
 * @author Lion Li
 * @date 2025-09-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device_fence_access_record")
public class DeviceFenceAccessRecord extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 围栏ID
     */
    private Long fenceId;

    /**
     * 设备标识
     */
    private String deviceId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 事件类型
     */
    private Long eventType;

    /**
     * 纬度
     */
    private Double latitude;

    /**
     * 经度
     */
    private Double longitude;

    /**
     * 定位精度
     */
    private Long accuracy;

    /**
     * 事件时间
     */
    private Date eventTime;

    /**
     * 事件地址
     */
    private String eventAddress;

}
