sys_shift.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_shift: BaseEntity
  12. {
  13. ///// <summary>
  14. ///// 主键id
  15. ///// </summary>
  16. //[Key]
  17. //[Comment("主键id")]
  18. //public long shift_id { get; set; }
  19. /// <summary>
  20. /// 班制编码
  21. /// </summary>
  22. [StringLength(50)]
  23. [Comment("班制编码")]
  24. public string? shift_no { get; set; }
  25. /// <summary>
  26. /// 班制名称
  27. /// </summary>
  28. [StringLength(255)]
  29. [Comment("班制名称")]
  30. public string? shift_name { get; set; }
  31. /// <summary>
  32. /// 是否跨天 1是 0否
  33. /// </summary>
  34. [Comment("岗位id")]
  35. [DefaultValue(false)]
  36. public bool is_across { get; set; }
  37. /// <summary>
  38. /// 备注
  39. /// </summary>
  40. [StringLength(255)]
  41. [Comment("备注")]
  42. public string? remark { get; set; }
  43. /// <summary>
  44. /// 有效时长
  45. /// </summary>
  46. [Comment("有效时长")]
  47. public int? validate_hours { get; set; }
  48. /// <summary>
  49. /// 数据状态标识 1启用 0停用
  50. /// </summary>
  51. [Comment("数据状态标识 1启用 0停用")]
  52. [DefaultValue(true)]
  53. public bool state { get; set; }
  54. }
  55. }