using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Entity;
///
/// 组织机构表
///
[SugarTable("sys_org")]
[Description("组织机构表")]
public class SysOrg : DBEntityTenant
{
///
/// 父Id
///
[SugarColumn(ColumnDescription = "父Id")]
public long Pid { get; set; }
///
/// 父Ids
///
[SugarColumn(ColumnDescription = "父Ids", IsNullable = true)]
public string Pids { get; set; }
///
/// 名称
///
[Required, MaxLength(30)]
[SugarColumn(ColumnDescription = "名称")]
public string Name { get; set; }
///
/// 编码
///
[Required, MaxLength(50)]
[SugarColumn(ColumnDescription = "编码")]
public string Code { get; set; }
///
/// 联系人
///
[MaxLength(20)]
[SugarColumn(ColumnDescription = "联系人", IsNullable = true)]
public string Contacts { get; set; }
///
/// 电话
///
[MaxLength(20)]
[SugarColumn(ColumnDescription = "电话", IsNullable = true)]
public string Tel { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序")]
public int Sort { get; set; }
///
/// 备注
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "备注", IsNullable = true)]
public string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
[SugarColumn(ColumnDescription = "状态(字典 0正常 1停用 2删除)")]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
}