namespace EVCB_OCPP.Domain.Models.Database { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; /// /// 上傳檔案 /// [Table("UploadFile")] public partial class UploadFile { public UploadFile() { Id = Guid.NewGuid().ToString(); } //[Index(IsClustered = false)] [StringLength(36)] public string Id { get; set; } /// /// 檔名 /// [Required] [StringLength(500)] public string FileName { get; set; } /// /// 原始檔名 /// [Required] [StringLength(500)] public string OriginName { get; set; } public int FileSize { get; set; } /// /// 檔案類型 /// [StringLength(200)] public string FileType { get; set; } /// /// 副檔名 /// [StringLength(50)] public string FileExtensionName { get; set; } /// /// 檔案路徑 /// [Required] [StringLength(500)] public string FilePath { get; set; } public DateTime CreatedOn { get; set; } [StringLength(50)] public string CreatedBy { get; set; } /// /// MD5 /// [StringLength(50)] public string FileMD5 { get; set; } /// /// 網頁路徑 /// [StringLength(512)] public string FileUrl { get; set; } /// /// VendorId /// [StringLength(50)] [Required] public string VendorId { get; set; } /// /// ModelName /// [StringLength(50)] [Required] public string ModelName { get; set; } /// /// ModuleId /// [Required] public int ModuleId { get; set; } } }