ExamDataPublish.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace YBEE.EQM.Core;
  5. /// <summary>
  6. /// 监测结果反馈发布内容
  7. /// </summary>
  8. [Comment("监测结果反馈发布内容")]
  9. public partial class ExamDataPublish : DEntityBase
  10. {
  11. /// <summary>
  12. /// 监测计划ID
  13. /// </summary>
  14. [Comment("监测计划ID")]
  15. [Required]
  16. public int ExamPlanId { get; set; }
  17. /// <summary>
  18. /// 发布类型
  19. /// </summary>
  20. [Comment("发布类型")]
  21. [Required]
  22. public DataPublishType Type { get; set; }
  23. /// <summary>
  24. /// 发布名称
  25. /// </summary>
  26. [Comment("发布名称")]
  27. [Required, StringLength(100)]
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// 备注
  31. /// </summary>
  32. [Comment("备注")]
  33. [StringLength(2000)]
  34. public string Remark { get; set; }
  35. /// <summary>
  36. /// 发布状态
  37. /// </summary>
  38. [Comment("发布状态")]
  39. [Required]
  40. public PublishStatus Status { get; set; } = PublishStatus.UNPUBLISH;
  41. /// <summary>
  42. /// 发布时间
  43. /// </summary>
  44. [Comment("发布时间")]
  45. public DateTime? PublishTime { get; set; }
  46. /// <summary>
  47. /// 发布人用户ID
  48. /// </summary>
  49. [Comment("发布人用户ID")]
  50. public int? PublishSysUserId { get; set; }
  51. /// <summary>
  52. /// 一对一引用(发布用户)
  53. /// </summary>
  54. public virtual SysUser PublishSysUser { get; set; }
  55. }