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.

49 lines
1.6 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.WES
  5. {
  6. /// <summary>
  7. /// 基本資料共用類別
  8. /// </summary>
  9. public class CommonDto
  10. {
  11. /// <summary>
  12. /// 建立人員
  13. /// </summary>
  14. [Column(Name = "CREATE_USER")]
  15. [Required, StringLength(30), JsonPropertyName("CREATE_USER"), JsonPropertyOrder(101)]
  16. public string CREATE_USER { get; set; }
  17. /// <summary>
  18. /// 建立時間
  19. /// </summary>
  20. [Column(Name = "CREATE_TIME")]
  21. [Required, JsonPropertyName("CREATE_TIME"), JsonPropertyOrder(102)]
  22. public DateTime CREATE_TIME { get; set; } = DateTime.Now;
  23. /// <summary>
  24. /// 更新人員
  25. /// </summary>
  26. [Column(Name = "UPDATE_USER")]
  27. [Required, StringLength(30), JsonPropertyName("UPDATE_USER"), JsonPropertyOrder(104)]
  28. public string UPDATE_USER { get; set; }
  29. /// <summary>
  30. /// 更新時間
  31. /// </summary>
  32. [Column(Name = "UPDATE_TIME")]
  33. [Required, JsonPropertyName("UPDATE_TIME"), JsonPropertyOrder(105)]
  34. public DateTime UPDATE_TIME { get; set; } = DateTime.Now;
  35. /// <summary>
  36. /// 資料狀態
  37. /// </summary>
  38. /// <value>
  39. /// 0 = Insert <br/>
  40. /// 1 = Update <br/>
  41. /// 2 = Disable <br/>
  42. /// 3 = Removed <br/>
  43. /// </value>
  44. [Column(Name = "STATUS")]
  45. [Required, JsonPropertyName("STATUS"), JsonPropertyOrder(106)]
  46. public int STATUS { get; set; } = 0;
  47. }
  48. }