MachineOperateRecord.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace EVCB_OCPP.Domain.Models.Database
  9. {
  10. /// <summary>
  11. /// 電樁操作紀錄
  12. /// </summary>
  13. [Table("MachineOperateRecord")]
  14. public class MachineOperateRecord
  15. {
  16. public MachineOperateRecord()
  17. {
  18. EVSE_Value = string.Empty;
  19. FinishedOn = new DateTime(1991, 1, 1);
  20. }
  21. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  22. [Key]
  23. public int Id { get; set; }
  24. /// <summary>
  25. /// 機器的客戶自訂ID
  26. /// </summary>
  27. [StringLength(25)]
  28. public string ChargePointSerialNumber { get; set; }
  29. /// <summary>
  30. /// 隨機序號 和ServerCommand是同一個組序號
  31. /// </summary>
  32. [StringLength(36)]
  33. public string SerialNo { get; set; }
  34. /// <summary>
  35. /// 請求類型
  36. /// </summary>
  37. public int RequestType { get; set; }
  38. /// <summary>
  39. /// 請求內容
  40. /// </summary>
  41. [StringLength(36)]
  42. public string RequestContent { get; set; }
  43. /// <summary>
  44. /// 狀態
  45. /// </summary>
  46. public int Status { get; set; }
  47. /// <summary>
  48. /// EVSE狀態
  49. /// </summary>
  50. [StringLength(250)]
  51. public string EVSE_Value { get; set; }
  52. /// <summary>
  53. /// EVSE狀態
  54. /// </summary>
  55. public int EVSE_Status { get; set; }
  56. /// <summary>
  57. /// 建立時間
  58. /// </summary>
  59. public DateTime CreatedOn { set; get; }
  60. /// <summary>
  61. /// 結束時間
  62. /// </summary>
  63. public DateTime FinishedOn { set; get; }
  64. }
  65. }