namespace EVCB_OCPP.Domain.Models.Database { using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; /// /// 機器的版本發佈的檔案關連 /// [Table("MachineVersionFile")] public partial class MachineVersionFile { [Key] public int Id { get; set; } [Required] public DateTime CreatedOn { get; set; } /// /// 更新日期 /// public DateTime? UpdatedOn { get; set; } [Required] public int MachineVersionId { get; set; } [Required] public Guid UploadFileId { get; set; } /// /// 下載日期 /// public DateTime? DownloadedOn { get; set; } /// /// 排序 /// public int Seq { get; set; } [ForeignKey("MachineVersionId")] public virtual MachineVersion MachineVersion { get; set; } [ForeignKey("UploadFileId")] public virtual UploadFile UploadFile { get; set; } } }