using SqlSugar;
using Volo.Abp;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;
using Yi.Framework.Core.Data;
namespace Yi.Framework.Rbac.Domain.Entities
{
///
/// 岗位表
///
[SugarTable("Post")]
public partial class PostEntity : Entity, ISoftDelete, IAuditedObject, IOrderNum, IState
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
///
/// 逻辑删除
///
public bool IsDeleted { get; set; }
///
/// 创建时间
///
public DateTime CreationTime { get; set; } = DateTime.Now;
///
/// 创建者
///
public Guid? CreatorId { get; set; }
///
/// 最后修改者
///
public Guid? LastModifierId { get; set; }
///
/// 最后修改时间
///
public DateTime? LastModificationTime { get; set; }
///
/// 排序
///
public int OrderNum { get; set; } = 0;
///
/// 状态
///
public bool State { get; set; } = true;
///
/// 岗位编码
///
[SugarColumn(ColumnName = "PostCode")]
public string PostCode { get; set; } = string.Empty;
///
/// 岗位名称
///
[SugarColumn(ColumnName = "PostName")]
public string PostName { get; set; } = string.Empty;
///
/// 描述
///
[SugarColumn(ColumnName = "Remark")]
public string? Remark { get; set; }
}
}