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.

44 lines
1.5 KiB

8 months ago
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.WES
  5. {
  6. /// <summary>
  7. /// 使用者基本資料類別
  8. /// </summary>
  9. [Table("CFG_USER")]
  10. public class CfgUserDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 使用者帳號
  14. /// </summary>
  15. [Column(Name = "USER_ID")]
  16. [Required, Key, StringLength(30), JsonPropertyName("USER_ID"), JsonPropertyOrder(1)]
  17. public string USER_ID { get; set; }
  18. /// <summary>
  19. /// 使用者名稱
  20. /// </summary>
  21. [Column(Name = "USER_NAME")]
  22. [StringLength(50), JsonPropertyName("USER_NAME"), JsonPropertyOrder(2)]
  23. public string USER_NAME { get; set; }
  24. /// <summary>
  25. /// 使用者密碼
  26. /// </summary>
  27. [Column(Name = "USER_PASSWORD")]
  28. [Required, StringLength(40), JsonPropertyName("USER_PASSWORD"), JsonPropertyOrder(3)]
  29. public string USER_PASSWORD { get; set; }
  30. /// <summary>
  31. /// 使用者部門代碼
  32. /// </summary>
  33. [Column(Name = "USER_DEPT")]
  34. [StringLength(10), JsonPropertyName("USER_DEPT"), JsonPropertyOrder(4)]
  35. public string USER_DEPT { get; set; }
  36. /// <summary>
  37. /// 使用者郵件
  38. /// </summary>
  39. [Column(Name = "USER_EMAIL")]
  40. [StringLength(64), JsonPropertyName("USER_EMAIL"), JsonPropertyOrder(5)]
  41. public string USER_EMAIL { get; set; }
  42. }
  43. }