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

106 lines
2.9 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 System;
using System.Collections.Generic;
using System.Linq;
using LearningOfficer.OA.Common.Enums;
using LearningOfficer.OA.Core.Entities.OA.SystemInfo;
using SqlSugar;
namespace LearningOfficer.OA.Core.Entities.OA.Solution
{
/// <summary>
/// 工具包
///</summary>
[SugarTable("tool_kit")]
public class ToolKit : BaseEntity
{
/// <summary>
/// 备 注:工具名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "tool_name")]
public string ToolName { get; set; } = null!;
/// <summary>
/// 备 注:最后更新时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "up_time")]
public DateTime UpTime { get; set; } = DateTime.Now;
/// <summary>
/// 备 注:添加时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "add_time", IsOnlyIgnoreUpdate = true)]
public DateTime AddTime { get; set; } = DateTime.Now;
/// <summary>
/// 备 注:工具格式 文件后缀名
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "tool_type")]
public string ToolType { get; set; } = null!;
/// <summary>
/// 备 注:大小 kb
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "tool_size")]
public int ToolSize { get; set; }
/// <summary>
/// 备 注:文件id关联sys_file_info表
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "file_id")]
public long SysFileId { 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>
/// 备 注:云校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(ToolKitSemester.ToolKitId))]
public List<ToolKitSemester> ToolKitSemesters { get; set; }
/// <summary>
/// 备 注:工具包文件详细信息
/// </summary>
[Navigate(NavigateType.OneToOne, nameof(SysFileId))]
public SysFileinfo Fileinfo { get; set; }
}
}