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.

38 lines
1.2 KiB

8 months ago
  1. using Mirle.Component.Database.Model.WES;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model
  6. {
  7. /// <summary>
  8. /// 使用者與功能基本資料類別
  9. /// </summary>
  10. [Table("MAP_USER_AND_FUNC")]
  11. public class MapUserAndFuncDto : CommonDto
  12. {
  13. /// <summary>
  14. /// 使用者帳號
  15. /// </summary>
  16. [Column(Name = "USER_ID")]
  17. [Required, Key, StringLength(30), JsonPropertyName("USER_ID"), JsonPropertyOrder(1)]
  18. public string USER_ID { get; set; }
  19. /// <summary>
  20. /// 功能編號
  21. /// </summary>
  22. [Column(Name = "FUNC_ID")]
  23. [Required, Key, JsonPropertyName("FUNC_ID"), JsonPropertyOrder(2)]
  24. public int FUNC_ID { get; set; }
  25. /// <summary>
  26. ///使用者權限
  27. /// </summary>
  28. /// <value>
  29. /// 0 = View <br/>
  30. /// 1 = Edit <br/>
  31. /// 2 = View/Edit <br/>
  32. /// </value>
  33. [Column(Name = "PERMISSION")]
  34. [Required, JsonPropertyName("PERMISSION"), JsonPropertyOrder(3)]
  35. public int PERMISSION { get; set; }
  36. }
  37. }