126 lines
3.4 KiB
C#
126 lines
3.4 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 学校表
|
|
///</summary>
|
|
[SugarTable("school"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
|
|
public class School : BaseEntity
|
|
{
|
|
|
|
/// <summary>
|
|
/// 备 注:名称
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Name")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 备 注:租户数据库路径 空值则为默认值
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "SassDbPath")]
|
|
public string? SassDbPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备 注:Logo
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Logo")]
|
|
public string Logo { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 备 注:省Id
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Pid")]
|
|
public int Pid { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 备 注:Pname
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Pname")]
|
|
public string Pname { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 备 注:市Id
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Cid")]
|
|
public int Cid { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 备 注:
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Cname")]
|
|
public string Cname { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 备 注:区Id
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Rid")]
|
|
public int Rid { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 备 注:
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Rname")]
|
|
public string Rname { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 备 注:添加时间
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "CreateTime", IsOnlyIgnoreUpdate = true)]
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// 备 注:启用状态
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Enable")]
|
|
public bool Enable { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 备 注:学校编码
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "EcCode")]
|
|
public string? EcCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备 注:学校来源 枚举 SchoolourceEnum
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "SchoolSource")]
|
|
public int SchoolSource { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 备 注:学校类型 枚举 SchoolTypeEnum
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Type")]
|
|
public SchoolTypeEnum Type { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 备 注:删除状态
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "DeleteState")]
|
|
public bool DeleteState { get; set; }
|
|
|
|
|
|
}
|
|
|
|
} |