2026-06-02 14:10:43 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
using Yitter.IdGenerator;
|
|
|
|
|
|
|
|
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
|
|
|
|
|
{
|
|
|
|
|
|
public class SqlSugarBaseEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:主键
|
|
|
|
|
|
/// Default:
|
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
|
/// </summary>
|
2026-06-02 17:58:10 +08:00
|
|
|
|
[SugarColumn(IsPrimaryKey = true, ColumnName = "Id")]
|
2026-06-02 14:10:43 +08:00
|
|
|
|
public long Id { get; set; } = YitIdHelper.NextId();
|
|
|
|
|
|
/// <summary>
|
2026-06-08 16:57:44 +08:00
|
|
|
|
/// Desc:
|
2026-06-02 14:10:43 +08:00
|
|
|
|
/// Default:1
|
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "Status")]
|
2026-06-02 17:58:10 +08:00
|
|
|
|
public int Status { get; set; }
|
2026-06-02 14:10:43 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:是否删除
|
|
|
|
|
|
/// Default:b'0'
|
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "IsDeleted")]
|
|
|
|
|
|
public bool IsDeleted { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:创建人
|
|
|
|
|
|
/// Default:
|
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "CreatedBy", IsOnlyIgnoreUpdate = true)]
|
|
|
|
|
|
public string CreatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:创建时间
|
|
|
|
|
|
/// Default:
|
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "CreatedAt", IsOnlyIgnoreUpdate = true)]
|
|
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:修改人
|
|
|
|
|
|
/// Default:
|
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
|
/// </summary>
|
2026-06-02 17:58:10 +08:00
|
|
|
|
[SugarColumn(ColumnName = "UpdatedBy")]
|
2026-06-02 14:10:43 +08:00
|
|
|
|
public string UpdatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:修改时间
|
|
|
|
|
|
/// Default:
|
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
|
/// </summary>
|
2026-06-02 17:58:10 +08:00
|
|
|
|
[SugarColumn(ColumnName = "UpdatedAt")]
|
2026-06-02 14:10:43 +08:00
|
|
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|