using System;
using System.Collections.Generic;

namespace CouponReport.Models.Parkingeyes;

public partial class CommonQueue
{
    public long Id { get; set; }

    /// <summary>
    /// 進場:In, 出場: Out
    /// </summary>
    public string Type { get; set; } = null!;

    /// <summary>
    /// InQueue, Processing, Fail
    /// </summary>
    public string Status { get; set; } = null!;

    /// <summary>
    /// 處理時間
    /// </summary>
    public DateTime? ProcessingTime { get; set; }

    /// <summary>
    /// 進場序號
    /// </summary>
    public string SerialNo { get; set; } = null!;

    /// <summary>
    /// 下次執行時間
    /// </summary>
    public DateTime NextProcessTime { get; set; }

    public DateTime? CreationTime { get; set; }

    /// <summary>
    /// 時間發生時間
    /// </summary>
    public DateTime EventTime { get; set; }

    /// <summary>
    /// 失敗次數
    /// </summary>
    public int ErrorCount { get; set; }

    /// <summary>
    /// 客制欄位
    /// </summary>
    public string? ExtendField { get; set; }

    /// <summary>
    /// 距離可刪除的時間,null 表示不可刪除
    /// </summary>
    public DateTime? ReadyToDeleteTime { get; set; }
}
