using Dlhis.Entity.Visitor.Enums; using Kurisu.AspNetCore.DataAccess.Entity; using Kurisu.AspNetCore.DataAccess.SqlSugar; using Mapster; using SqlSugar; using SqlSugar.DbConvert; namespace Dlhis.Entity.Visitor.Entity; /// /// 预约区域 /// [SugarTable(TableName = "AppointmentArea", TableDescription = "预约区域")] public class AppointmentAreaEntity : SugarBaseEntity, ITenantId { /// /// 区域类型 /// [AdaptIgnore(MemberSide.Destination)] [SugarColumn(IsNullable = false, ColumnDescription = "区域类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), UniqueGroupNameList = new[] { "idx_AppointmentArea_t_cc_tid" })] public AppointmentAreaEnumType Type { get; set; } /// /// 自定义编码 /// [AdaptIgnore(MemberSide.Destination)] [SugarColumn(IsNullable = false, ColumnDescription = "自定义编码", UniqueGroupNameList = new[] { "idx_AppointmentArea_t_cc_tid" })] public string CustomCode { get; set; } /// /// 名称 /// [SugarColumn(IsNullable = false, ColumnDescription = "名称")] public string Name { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, ColumnDescription = "备注")] public string Remark { get; set; } /// /// 基地/租户 /// [SugarColumn(IsNullable = false, ColumnDescription = " 基地/租户", UniqueGroupNameList = new[] { "idx_AppointmentArea_t_cc_tid" })] public string TenantId { get; set; } }