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