using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 家长问卷填答进度
///
[Comment("家长问卷填答进度")]
public class ExamPatriarchQuestionnaireProgress : IEntity
{
///
/// 主键
///
[Comment("主键")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
///
/// 问卷编码
///
[Comment("问卷编码")]
[Required, StringLength(20)]
public string QuestionnaireCode { get; set; }
///
/// 监测学生ID
///
[Comment("监测学生ID")]
[Required]
public long ExamStudentId { get; set; }
///
/// 填答手机号码
///
[Comment("填答手机号码")]
[StringLength(20)]
public string Mobile { get; set; }
///
/// 提交时间
///
[Comment("提交时间")]
public DateTime? SubmitTime { get; set; }
///
/// 是否已完成
///
[Comment("是否已完成")]
[Required]
public bool IsCompleted { get; set; } = false;
///
/// 创建时间
///
[Comment("创建时间")]
[Required]
public DateTime CreateTime { get; set; }
///
/// 更新时间
///
[Comment("更新时间")]
public DateTime? UpdateTime { get; set; }
///
/// 一对一引用(监测学生)
///
public virtual ExamStudent ExamStudent { get; set; }
}