using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 监测计划数据上报类型
///
[Comment("监测计划数据上报类型")]
public class ExamDataReport : DEntityBase
{
///
/// 监测计划ID
///
[Comment("监测计划ID")]
[Required]
public int ExamPlanId { get; set; }
///
/// 上报类型
///
[Comment("上报类型")]
[Required, Column(TypeName = "smallint")]
public DataReportType Type { get; set; }
///
/// 状态
///
[Comment("状态")]
[Required, Column(TypeName = "smallint")]
public ExamStatus Status { get; set; } = ExamStatus.READY;
///
/// 开始时间
///
[Comment("开始时间")]
[Required]
public DateTime BeginTime { get; set; }
///
/// 结束时间
///
[Comment("结束时间")]
[Required]
public DateTime EndTime { get; set; }
///
/// 上报说明
///
[Comment("上报说明")]
[StringLength(2000)]
public string Remark { get; set; } = "";
///
/// 一对一引用(监测计划)
///
public virtual ExamPlan ExamPlan { get; set; }
}