using System.ComponentModel; using SqlSugar; namespace DS.Module.Core.Data; /// /// 机构实体基类 /// public abstract class BaseOrgModel : BaseModel, IOrgId { /// /// 主键ID /// [Description("主键ID")] [SqlSugar.SugarColumn(IsPrimaryKey = true, Length = 100, ColumnDescription = "主键ID")] public TKey Id { get; set; } /// /// 机构Id /// [SqlSugar.SugarColumn(ColumnDescription = "机构Id")] public long OrgId { get; set; } = 0; } /// /// 机构实体基类 /// public abstract class BaseOrgModelV2 : BaseModelV2, IOrgId { /// /// 机构Id /// [SugarColumn(ColumnDescription = "机构Id", IsOnlyIgnoreUpdate = true)] public long OrgId { get; set; } } /// /// 共享机构实体基类 /// /// public abstract class SharedOrgModel : BaseModelV2, ISharedOrgId { /// /// 机构Id /// [SugarColumn(ColumnDescription = "机构Id", IsNullable = false, IsOnlyIgnoreUpdate = true)] public long OrgId { get; set; } /// /// 是否共享 /// [SugarColumn(ColumnDescription = "是否共享", IsNullable = false, DefaultValue = "0")] public bool IsShared { get; set; } }