You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model.Warroom.Config
  6. {
  7. /// <summary>
  8. /// 使用者基本資料類別
  9. /// </summary>
  10. [Table("cfg_user")]
  11. public class CfgUserDto : CommonDto
  12. {
  13. /// <summary>
  14. /// 使用者帳號
  15. /// </summary>
  16. [Column(Name = "user_id"), JsonPropertyName("user_id")]
  17. [Required, Key]
  18. public string UserID { get; set; }
  19. /// <summary>
  20. /// 使用者名稱
  21. /// </summary>
  22. [Column(Name = "user_name"), JsonPropertyName("user_name")]
  23. public string UserName { get; set; }
  24. /// <summary>
  25. /// 使用者密碼
  26. /// </summary>
  27. [Column(Name = "user_password"), JsonPropertyName("user_password")]
  28. public string UserPassowrd { get; set; }
  29. /// <summary>
  30. /// 使用者郵件
  31. /// </summary>
  32. [Column(Name = "user_email"), JsonPropertyName("user_email")]
  33. public string UserEmail { get; set; }
  34. /// <summary>
  35. /// 部門名稱/編號
  36. /// </summary>
  37. [Column(Name = "user_dept"), JsonPropertyName("user_dept")]
  38. public string UserDepartment { get; set; }
  39. /// <summary>
  40. /// 主管帳號
  41. /// </summary>
  42. [Column(Name = "director"), JsonPropertyName("director")]
  43. public string Director { get; set; }
  44. /// <summary>
  45. /// 憑證
  46. /// </summary>
  47. [Column(Name = "token"), JsonPropertyName("token")]
  48. public string Token { get; set; }
  49. /// <summary>
  50. /// 憑證更新時間
  51. /// </summary>
  52. [Column(Name = "token_update_dt"), JsonPropertyName("token_update_dt")]
  53. public DateTime TokenUpdateTime { get; set; }
  54. /// <summary>
  55. /// 憑證到期時間
  56. /// </summary>
  57. [Column(Name = "token_exp_dt"), JsonPropertyName("token_exp_dt")]
  58. public DateTime TokenExpireTime { get; set; }
  59. }
  60. }