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; } public Customer() { Id = Guid.NewGuid(); } public virtual ICollection CustomerMachineComponents { get; set; } } }