/******************************************************************************* * Copyright © 2020 HT.Cloud.Framework 版权所有 * Author: HT.Cloud * Description: WaterCloud快速开发平台 * Website: *********************************************************************************/ using SqlSugar; using System; using System.ComponentModel.DataAnnotations; namespace HT.Cloud.Domain.SystemOrganize { /// /// 机构实体 /// [SugarTable("sys_organize")] [TenantAttribute("0")] public class OrganizeEntity : IEntity, ICreationAudited, IDeleteAudited, IModificationAudited { /// /// 主键Id /// [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")] public string F_Id { get; set; } /// /// 父级Id /// [Required(ErrorMessage = "父级不能为空")] [SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id")] public string F_ParentId { get; set; } /// /// 层级 /// [SugarColumn(IsNullable = true, ColumnName = "F_Layers", ColumnDescription = "层级")] public int? F_Layers { get; set; } /// /// 编号 /// [Required(ErrorMessage = "编号不能为空")] [SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_organize" })] public string F_EnCode { get; set; } /// /// 全名称 /// [Required(ErrorMessage = "名称不能为空")] [SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "全名称")] public string F_FullName { get; set; } /// /// 简称 /// [SugarColumn(IsNullable = true, ColumnName = "F_ShortName", ColumnDataType = "nvarchar(50)", ColumnDescription = "简称")] public string F_ShortName { get; set; } /// /// 类型 /// [Required(ErrorMessage = "类型不能为空")] [SugarColumn(IsNullable = true, ColumnName = "F_CategoryId", ColumnDataType = "nvarchar(50)", ColumnDescription = "类型")] public string F_CategoryId { get; set; } /// /// /// [SugarColumn(IsNullable = true, ColumnName = "F_ManagerId", ColumnDataType = "nvarchar(50)")] public string F_ManagerId { get; set; } /// /// 电话 /// [SugarColumn(IsNullable = true, ColumnName = "F_TelePhone", ColumnDataType = "nvarchar(20)", ColumnDescription = "电话")] public string F_TelePhone { get; set; } /// /// 手机 /// [SugarColumn(IsNullable = true, ColumnName = "F_MobilePhone", ColumnDataType = "nvarchar(20)", ColumnDescription = "手机")] public string F_MobilePhone { get; set; } /// /// 微信号 /// [SugarColumn(IsNullable = true, ColumnName = "F_WeChat", ColumnDataType = "nvarchar(50)", ColumnDescription = "微信号")] public string F_WeChat { get; set; } /// /// 传真号 /// [SugarColumn(IsNullable = true, ColumnName = "F_Fax", ColumnDataType = "nvarchar(20)", ColumnDescription = "传真号")] public string F_Fax { get; set; } /// /// 邮箱 /// [SugarColumn(IsNullable = true, ColumnName = "F_Email", ColumnDataType = "nvarchar(50)", ColumnDescription = "邮箱")] public string F_Email { get; set; } /// /// 区域Id /// [SugarColumn(IsNullable = true, ColumnName = "F_AreaId", ColumnDataType = "nvarchar(50)", ColumnDescription = "区域Id")] public string F_AreaId { get; set; } /// /// 地址 /// [SugarColumn(IsNullable = true, ColumnName = "F_Address", ColumnDataType = "longtext", ColumnDescription = "地址")] public string F_Address { get; set; } /// /// 允许修改 /// [SugarColumn(IsNullable = true, ColumnDescription = "允许修改")] public bool? F_AllowEdit { get; set; } /// /// 允许删除 /// [SugarColumn(IsNullable = true, ColumnDescription = "允许删除")] public bool? F_AllowDelete { get; set; } /// /// 排序码 /// [Required(ErrorMessage = "排序不能为空")] [Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")] [SugarColumn(IsNullable = true, ColumnDescription = "排序码")] public int? F_SortCode { get; set; } /// /// 删除标记 /// [SugarColumn(IsNullable = true, ColumnDescription = "删除标记")] public bool? F_DeleteMark { get; set; } /// /// 有效标记 /// [SugarColumn(IsNullable = true, ColumnDescription = "有效标记")] public bool? F_EnabledMark { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")] public string F_Description { get; set; } /// /// 创建时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")] public DateTime? F_CreatorTime { get; set; } /// /// 创建人Id /// [SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")] public string F_CreatorUserId { get; set; } /// /// 修改时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "修改时间")] public DateTime? F_LastModifyTime { get; set; } /// /// 修改人Id /// [SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")] public string F_LastModifyUserId { get; set; } /// /// 删除时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "删除时间")] public DateTime? F_DeleteTime { get; set; } /// /// 删除人Id /// [SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")] public string F_DeleteUserId { get; set; } [SugarColumn(IsIgnore = true)] public bool LAY_CHECKED { get; set; } } }