using System; using System.Collections.Generic; using System.Linq; using SqlSugar; using LearningOfficer.OA.Core.Entities; using LearningOfficer.OA.Common.Configs; using UserCenter.Model.Enum; namespace LearningOfficer.OA.Core.Entities.UserCenter { /// /// 学校表 /// [SugarTable("school"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))] public class School : BaseEntity { /// /// 备 注:名称 /// 默认值: /// [SugarColumn(ColumnName = "Name")] public string Name { get; set; } = null!; /// /// 备 注:租户数据库路径 空值则为默认值 /// 默认值: /// [SugarColumn(ColumnName = "SassDbPath")] public string? SassDbPath { get; set; } /// /// 备 注:Logo /// 默认值: /// [SugarColumn(ColumnName = "Logo")] public string Logo { get; set; } = ""; /// /// 备 注:省Id /// 默认值: /// [SugarColumn(ColumnName = "Pid")] public int Pid { get; set; } = 0; /// /// 备 注:Pname /// 默认值: /// [SugarColumn(ColumnName = "Pname")] public string Pname { get; set; } = ""; /// /// 备 注:市Id /// 默认值: /// [SugarColumn(ColumnName = "Cid")] public int Cid { get; set; } = 0; /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName = "Cname")] public string Cname { get; set; } = ""; /// /// 备 注:区Id /// 默认值: /// [SugarColumn(ColumnName = "Rid")] public int Rid { get; set; } = 0; /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName = "Rname")] public string Rname { get; set; } = ""; /// /// 备 注:添加时间 /// 默认值: /// [SugarColumn(ColumnName = "CreateTime", IsOnlyIgnoreUpdate = true)] public DateTime CreateTime { get; set; } = DateTime.Now; /// /// 备 注:启用状态 /// 默认值: /// [SugarColumn(ColumnName = "Enable")] public bool Enable { get; set; } = true; /// /// 备 注:学校编码 /// 默认值: /// [SugarColumn(ColumnName = "EcCode")] public string? EcCode { get; set; } /// /// 备 注:学校来源 枚举 SchoolourceEnum /// 默认值: /// [SugarColumn(ColumnName = "SchoolSource")] public int SchoolSource { get; set; } = 0; /// /// 备 注:学校类型 枚举 SchoolTypeEnum /// 默认值: /// [SugarColumn(ColumnName = "Type")] public SchoolTypeEnum Type { get; set; } = 0; /// /// 备 注:删除状态 /// 默认值: /// [SugarColumn(ColumnName = "DeleteState")] public bool DeleteState { get; set; } } }