using System;
using System.Collections.Generic;

namespace CouponReport.Models.Parkingeyes;

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

    /// <summary>
    /// 開單:OpenTicket, 加簽: AddSign, 結單: CloseTicket, 改單:ChangeTicket, 檢查結單了但未離場: CheckLeave, 繳費通加: PaidNotify
    /// </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 string? TicketNo { get; set; }

    /// <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; }
}
