Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Core/Entities/OA/Solution/ProblemSolution.cs

107 lines
3.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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