using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EVCB_OCPP.Domain.Models.Database { /// /// 未來會以充電站規模使用管理後台 /// [Table("Customer")] public class Customer { [Key] public Guid Id { get; set; } [StringLength(50)] public string Name { get; set; } public DateTime CreatedOn { get; set; } [StringLength(50)] public string CreatedBy { get; set; } public DateTime? Deadline { get; set; } public DateTime? UpdatedOn { get; set; } [StringLength(50)] public string UpdatedBy { get; set; } /// /// 對方的api Url /// [StringLength(256)] public string ApiUrl { get; set; } /// /// 對方的 api Key /// [StringLength(128)] public string ApiKey { get; set; } /// /// api Key的更新日期 /// public DateTime? ApiKeyUpdatedOn { get; set; } /// /// 呼叫對方 api的客戶代碼 /// [StringLength(36)] public string PartnerId { get; set; } /// /// 對方的 api Id /// [StringLength(36)] public string ApiCustomerId { get; set; } /// /// 排程呼掉對方的services /// public bool CallPartnerApiOnSchedule { get; set; } /// /// 是否顯示 /// public bool IsShow { get; set; } /// /// FTP 網址 /// public string FTPPath { set; get; } /// /// FTP Host ftp://user:password @host:port/path /// [StringLength(50)] public string FTPHost { set; get; } /// /// FTP user /// [StringLength(20)] public string FTPUser { set; get; } /// /// FTP password /// [StringLength(20)] public string FTPPassword { set; get; } public bool EnableTTIA { set; get; } [StringLength(10)] public string TTIA_EquipmentProvider { set; get; } public int TTIA_CustomerId { set; get; } [StringLength(100)] public string TTIA_APIUrl { set; get; } [StringLength(10)] public string TTIA_APIKey { set; get; } public bool InstantStopTxReport { set; get; } public Customer() { Id = Guid.NewGuid(); } } }