using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
namespace YBEE.EQM.Core;
///
/// 监测结果反馈发布内容
///
[Comment("监测结果反馈发布内容")]
public partial class ExamDataPublish : DEntityBase
{
///
/// 监测计划ID
///
[Comment("监测计划ID")]
[Required]
public int ExamPlanId { get; set; }
///
/// 发布类型
///
[Comment("发布类型")]
[Required]
public DataPublishType Type { get; set; }
///
/// 发布名称
///
[Comment("发布名称")]
[Required, StringLength(100)]
public string Name { get; set; }
///
/// 备注
///
[Comment("备注")]
[StringLength(2000)]
public string Remark { get; set; }
///
/// 发布状态
///
[Comment("发布状态")]
[Required]
public PublishStatus Status { get; set; } = PublishStatus.UNPUBLISH;
///
/// 发布时间
///
[Comment("发布时间")]
public DateTime? PublishTime { get; set; }
///
/// 发布人用户ID
///
[Comment("发布人用户ID")]
public int? PublishSysUserId { get; set; }
///
/// 一对一引用(发布用户)
///
public virtual SysUser PublishSysUser { get; set; }
}