using System;
using System.Collections.Generic;

namespace CouponReport.Models.Parkingeyes;

public partial class EventLog
{
    /// <summary>
    /// 事件編號
    /// </summary>
    public string EventId { get; set; } = null!;

    /// <summary>
    /// 事件類別
    /// </summary>
    public int EventCode { get; set; }

    /// <summary>
    /// 車格號
    /// </summary>
    public string? LotId { get; set; }

    /// <summary>
    /// 車牌號碼
    /// </summary>
    public string? LprNo { get; set; }

    /// <summary>
    /// 裝置編號
    /// </summary>
    public string? DeviceId { get; set; }

    /// <summary>
    /// 資訊
    /// </summary>
    public string Info { get; set; } = null!;

    /// <summary>
    /// 事件時間(可能調整)
    /// </summary>
    public DateTime? EventDate { get; set; }

    /// <summary>
    /// 建立日期
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 雲端同步日期
    /// </summary>
    public DateTime? CloudSyncTime { get; set; }

    /// <summary>
    /// 歸連事件編號,通常應用在出場事件
    /// </summary>
    public string? RelatedEventId { get; set; }

    /// <summary>
    /// 異常事件解除日期
    /// </summary>
    public DateTime? UnlockDate { get; set; }

    public virtual TypeDef EventCodeNavigation { get; set; } = null!;

    public virtual ParkingLot? Lot { get; set; }
}
