using OASystem.Domain.Attributes;
using System.ComponentModel.DataAnnotations.Schema;
namespace OASystem.Domain.Entities
{
///
/// 实体基类
///
public class EntityBase
{
///
/// 编号
///
[SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
public int Id { get; set; }
///
/// 创建者Id
///
[SugarColumn(ColumnDescription = "创建者Id", IsNullable = true, ColumnDataType = "int")]
public int CreateUserId { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDescription = "创建时间", IsNullable = true, ColumnDataType = "DateTime")]
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 删除者Id
///
[SugarColumn(ColumnDescription = "删除者Id", IsNullable = true, ColumnDataType = "int")]
public int? DeleteUserId { get; set; }
///
/// 删除时间
///
[SugarColumn(ColumnDescription = "删除时间", IsNullable = true, ColumnDataType = "varchar(30)")]
public string DeleteTime { get; set; }
///
/// 备注
///
[Encrypted]
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
public string Remark { get; set; }
///
/// 是否删除
///
[SugarColumn(ColumnDescription = "是否删除", IsNullable = true, ColumnDataType = "int")]
public int IsDel { get; set; } = 0;
}
}