MachineVersionFile.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace EVCB_OCPP.Domain.Models.Database
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.ComponentModel.DataAnnotations.Schema;
  8. using System.Data.Entity.Spatial;
  9. /// <summary>
  10. /// 機器的版本發佈的檔案關連
  11. /// </summary>
  12. [Table("MachineVersionFile")]
  13. public partial class MachineVersionFile
  14. {
  15. [Key]
  16. public int Id { get; set; }
  17. [Required]
  18. public DateTime CreatedOn { get; set; }
  19. /// <summary>
  20. /// 更新日期
  21. /// </summary>
  22. public DateTime? UpdatedOn { get; set; }
  23. public Guid MachineId { get; set; }
  24. [Required]
  25. public string UploadFileId { get; set; }
  26. /// <summary>
  27. /// 下載日期
  28. /// </summary>
  29. public DateTime? DownloadedOn { get; set; }
  30. /// <summary>
  31. /// 排序
  32. /// </summary>
  33. public int Seq { get; set; }
  34. [ForeignKey("UploadFileId")]
  35. public virtual UploadFile UploadFile { get; set; }
  36. }
  37. }