ExamPatriarchQuestionnaireProgress.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace YBEE.EQM.Core;
  7. /// <summary>
  8. /// 家长问卷填答进度
  9. /// </summary>
  10. [Comment("家长问卷填答进度")]
  11. public class ExamPatriarchQuestionnaireProgress : IEntity
  12. {
  13. /// <summary>
  14. /// 主键
  15. /// </summary>
  16. [Comment("主键")]
  17. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  18. public long Id { get; set; }
  19. /// <summary>
  20. /// 问卷编码
  21. /// </summary>
  22. [Comment("问卷编码")]
  23. [Required, StringLength(20)]
  24. public string QuestionnaireCode { get; set; }
  25. /// <summary>
  26. /// 监测学生ID
  27. /// </summary>
  28. [Comment("监测学生ID")]
  29. [Required]
  30. public long ExamStudentId { get; set; }
  31. /// <summary>
  32. /// 填答手机号码
  33. /// </summary>
  34. [Comment("填答手机号码")]
  35. [StringLength(20)]
  36. public string Mobile { get; set; }
  37. /// <summary>
  38. /// 提交时间
  39. /// </summary>
  40. [Comment("提交时间")]
  41. public DateTime? SubmitTime { get; set; }
  42. /// <summary>
  43. /// 是否已完成
  44. /// </summary>
  45. [Comment("是否已完成")]
  46. [Required]
  47. public bool IsCompleted { get; set; } = false;
  48. /// <summary>
  49. /// 创建时间
  50. /// </summary>
  51. [Comment("创建时间")]
  52. [Required]
  53. public DateTime CreateTime { get; set; }
  54. /// <summary>
  55. /// 更新时间
  56. /// </summary>
  57. [Comment("更新时间")]
  58. public DateTime? UpdateTime { get; set; }
  59. /// <summary>
  60. /// 一对一引用(监测学生)
  61. /// </summary>
  62. public virtual ExamStudent ExamStudent { get; set; }
  63. }