using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using SqlSugar;
using Yi.Framework.Infrastructure.Data.Auditing;
using Yi.Framework.Infrastructure.Data.Entities;
using Yi.Framework.Infrastructure.Ddd.Entities;
namespace Yi.Furion.Core.Rbac.Entities
{
///
/// 部门表
///
[SugarTable("Dept")]
public partial class DeptEntity : IEntity, ISoftDelete, IAuditedObject, IOrderNum, IState
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
///
/// 逻辑删除
///
public bool IsDeleted { get; set; }
///
/// 创建时间
///
public DateTime CreationTime { get; set; } = DateTime.Now;
///
/// 创建者
///
public long? CreatorId { get; set; }
///
/// 最后修改者
///
public long? LastModifierId { get; set; }
///
/// 最后修改时间
///
public DateTime? LastModificationTime { get; set; }
///
/// 排序
///
public int OrderNum { get; set; } = 0;
///
/// 状态
///
public bool State { get; set; } = true;
///
/// 部门名称
///
public string DeptName { get; set; } = string.Empty;
///
/// 部门编码
///
[SugarColumn(ColumnName = "DeptCode")]
public string DeptCode { get; set; } = string.Empty;
///
/// 负责人
///
[SugarColumn(ColumnName = "Leader")]
public string? Leader { get; set; }
///
/// 父级id
///
[SugarColumn(ColumnName = "ParentId")]
public long ParentId { get; set; }
///
/// 描述
///
[SugarColumn(ColumnName = "Remark")]
public string? Remark { get; set; }
}
}