using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using WIDESEAWCS_Core.DB.Models;
using WIDESEAWCS_Core.Tenants;
namespace WIDESEAWCS_Model.Models
{
[SugarTable("Sys_Department", "组织架构"), MultiTenant]
public class Sys_Department : BaseEntity
{
///
/// 组织ID
///
[SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "组织ID")]
public int DepartmentId { get; set; }
///
/// 组织名称
///
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "组织名称")]
public string DepartmentName { get; set; }
///
/// 组织编号
///
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "组织编号")]
public string DepartmentCode { get; set; }
///
/// 上级组织
///
[SugarColumn(IsNullable = false, ColumnDescription = "上级组织")]
public int ParentId { get; set; }
///
/// 部门类型
///
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "部门类型")]
public string DepartmentType { get; set; }
///
/// 是否可用
///
[SugarColumn(IsNullable = false, ColumnDescription = "是否可用")]
public int Enable { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "备注")]
public string Remark { get; set; }
}
}