sys_post.cs 2.1 KB

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