using SqlSugar;
namespace QYZH.InteractiveMagazine.Models.Entity;
///
/// 基础实体类
///
public abstract class BaseEntity
{
///
/// 主键Id
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
///
/// 是否已删除
///
[SugarColumn(IsIgnore = false)]
public bool IsDeleted { get; set; } = false;
///
/// 创建人
///
[SugarColumn(Length = 50)]
public string? CreatedBy { get; set; } = "System";
///
/// 创建时间
///
public DateTime CreatedAt { get; set; } = DateTime.Now;
///
/// 更新人
///
[SugarColumn(Length = 50)]
public string? UpdatedBy { get; set; } = "System";
///
/// 更新时间
///
public DateTime? UpdatedAt { get; set; } = DateTime.Now;
}