using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.Warroom.Config { /// /// 使用者基本資料類別 /// [Table("cfg_user")] public class CfgUserDto : CommonDto { /// /// 使用者帳號 /// [Column(Name = "user_id"), JsonPropertyName("user_id")] [Required, Key] public string UserID { get; set; } /// /// 使用者名稱 /// [Column(Name = "user_name"), JsonPropertyName("user_name")] public string UserName { get; set; } /// /// 使用者密碼 /// [Column(Name = "user_password"), JsonPropertyName("user_password")] public string UserPassowrd { get; set; } /// /// 使用者郵件 /// [Column(Name = "user_email"), JsonPropertyName("user_email")] public string UserEmail { get; set; } /// /// 部門名稱/編號 /// [Column(Name = "user_dept"), JsonPropertyName("user_dept")] public string UserDepartment { get; set; } /// /// 主管帳號 /// [Column(Name = "director"), JsonPropertyName("director")] public string Director { get; set; } /// /// 憑證 /// [Column(Name = "token"), JsonPropertyName("token")] public string Token { get; set; } /// /// 憑證更新時間 /// [Column(Name = "token_update_dt"), JsonPropertyName("token_update_dt")] public DateTime TokenUpdateTime { get; set; } /// /// 憑證到期時間 /// [Column(Name = "token_exp_dt"), JsonPropertyName("token_exp_dt")] public DateTime TokenExpireTime { get; set; } } }