MachineConnectionLog.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. [Table("MachineConnectionLog")]
  11. public class MachineConnectionLog
  12. {
  13. public Int64 Id { set; get; }
  14. [StringLength(25)]
  15. public string ChargePointSerialNumber { get; set; }
  16. /// <summary>
  17. /// 連線電腦、IP
  18. /// </summary>
  19. [StringLength(30)]
  20. public string IpPort { get; set; }
  21. /// <summary>
  22. /// 連線電腦、IP
  23. /// </summary>
  24. [StringLength(30)]
  25. public string ClientIpPort { get; set; }
  26. /// <summary>
  27. /// 訊息種類
  28. /// </summary>
  29. [StringLength(50)]
  30. public string MessageType { get; set; }
  31. /// <summary>
  32. /// 封包訊息
  33. /// </summary>
  34. [StringLength(4000)]
  35. public string Data { get; set; }
  36. /// <summary>
  37. /// 訊息,可放錯誤訊息
  38. /// </summary>
  39. public string Msg { get; set; }
  40. /// <summary>
  41. /// 產生時間
  42. /// </summary>
  43. public DateTime CreatedOn { get; set; }
  44. }
  45. }