using LearningOfficer.OA.Common.Enums; using LearningOfficer.OA.Core.Entities; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; namespace LearningOfficer.OA.Core.Entities.OA.Solution { /// /// 解决方案主表 /// [SugarTable("problem_solution")] public class ProblemSolution : BaseEntity { /// /// 备 注:问题描述 /// 默认值: /// [SugarColumn(ColumnName = "problem_title")] public string ProblemTitle { get; set; } = null!; /// /// 备 注:最后更新时间 /// 默认值: /// [SugarColumn(ColumnName = "up_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public DateTime UpTime { get; set; } = DateTime.Now; /// /// 备 注:添加时间 /// 默认值: /// [SugarColumn(ColumnName = "add_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public DateTime AddTime { get; set; } /// /// 备 注:适用对象 1:学校;2:教师;3:学生 /// 默认值: /// [SugarColumn(ColumnName = "problem_obj")] public ToolObjectType ProblemObj { get; set; } /// /// 备 注:使用班级类型。1本科班,2重点班,3重点本科都适用 /// 默认值: /// [SugarColumn(ColumnName = "tool_class_type")] public ToolClassType ToolClassType { get; set; } /// /// 备 注:问题显著现象 /// 默认值: /// [SugarColumn(ColumnName = "problem_phenomenon")] public string ProblemPhenomenon { get; set; } = null!; /// /// 备 注:解决方案文本描述 /// 默认值: /// [SugarColumn(ColumnName = "solution_content")] public string SolutionContent { get; set; } = null!; /// /// 备 注:云校id /// 默认值: /// [SugarColumn(ColumnName = "cloudschool_id")] public long CloudSchoolId { get; set; } /// /// 备 注:逻辑删除 /// 默认值: /// [SugarColumn(ColumnName = "is_delete")] public bool IsDelete { get; set; } /// /// 关联学段枚举列表 /// [Navigate(NavigateType.OneToMany, nameof(ProblemSemester.ProId))] public List ProblemSemesters { get; set; } /// /// 关联工具id列表 /// [Navigate(NavigateType.OneToMany, nameof(ProblemTool.ProId))] public List ProblemTools { get; set; } /// /// 关联任务类型列表 /// [Navigate(NavigateType.OneToMany, nameof(ProblemTaskType.ProId))] public List ProblemTaskTypes { get; set; } } }