sys_post.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using Business.Model;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Bussiness.Model.SystemData
  6. {
  7. /// <summary>
  8. /// 岗位表
  9. /// </summary>
  10. [Comment("岗位表")]
  11. public class sys_post: BaseEntity
  12. {
  13. ///// <summary>
  14. ///// 主键id
  15. ///// </summary>
  16. //[Key]
  17. //[Comment("主键id")]
  18. //public long post_id { get; set; }
  19. /// <summary>
  20. /// 岗位编码
  21. /// </summary>
  22. [StringLength(50)]
  23. [Comment("岗位编码")]
  24. public string? post_code { get; set; }
  25. /// <summary>
  26. /// 岗位名称
  27. /// </summary>
  28. [StringLength(255)]
  29. [Comment("岗位名称")]
  30. public string? post_name { get; set; }
  31. /// <summary>
  32. /// 岗位备注
  33. /// </summary>
  34. [StringLength(255)]
  35. [Comment("岗位备注")]
  36. public string? post_remark { get; set; }
  37. /// <summary>
  38. /// 岗位级别
  39. /// </summary>
  40. [Comment("岗位级别")]
  41. public int? post_level { get; set; }
  42. /// <summary>
  43. /// 岗位路径
  44. /// </summary>
  45. [StringLength(255)]
  46. [Comment("岗位路径")]
  47. public string? post_path { get; set; }
  48. /// <summary>
  49. /// 岗位排序
  50. /// </summary>
  51. [Comment("岗位排序")]
  52. public int? post_sort { get; set; }
  53. /// <summary>
  54. /// 上级岗位
  55. /// </summary>
  56. [Comment("上级岗位")]
  57. public long? parent_id { get; set; }
  58. /// <summary>
  59. /// 部门id
  60. /// </summary>
  61. [Comment("部门id")]
  62. public long? dept_id { get; set; }
  63. /// <summary>
  64. /// 数据状态标识 1启用 0停用
  65. /// </summary>
  66. [StringLength(255)]
  67. [Comment("数据状态标识 1启用 -1停用")]
  68. [DefaultValue(true)]
  69. public bool state { get; set; }
  70. }
  71. }