Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Core/Entities/UserCenter/Subjectinfo.cs

65 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using LearningOfficer.OA.Common.Configs;
using SqlSugar;
namespace LearningOfficer.OA.Core.Entities.UserCenter
{
/// <summary>
/// 学科/科目表
///</summary>
[SugarTable("subjectinfo"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
public class Subjectinfo : BaseEntity
{
/// <summary>
/// 备 注:学科名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "name")]
public string Name { get; set; }
/// <summary>
/// 备 注:自己数据库Id
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "thisid")]
public long Thisid { get; set; } = 0;
/// <summary>
/// 备 注:创建时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "createtime", IsOnlyIgnoreUpdate = true)]
public DateTime Createtime { get; set; } = DateTime.Now;
/// <summary>
/// 备 注:更新时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "updatetime", IsOnlyIgnoreInsert = true)]
public DateTime? Updatetime { get; set; } = DateTime.Now;
/// <summary>
/// 备 注:是否删除 true=删除
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "deletestate")]
public bool Deletestate { get; set; }
/// <summary>
/// 备 注:排序
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "ordinal")]
public int Ordinal { get; set; }
}
}