using SqlSugar;
namespace Entity.DbModel;
///
/// 业务model 基类
///
public class BaseModel
{
///
/// Desc:创建人
/// Default:
/// Nullable:True
///
[SugarColumn(ColumnName = "created_by")]
public string? CreatedBy { get; set; }
///
/// Desc:创建时间
/// Default:CURRENT_TIMESTAMP
/// Nullable:True
///
/// [SugarColumn(IsPrimaryKey = false, , ColumnDescription = "创建时间")]
[SugarColumn(ColumnName = "created_time", InsertServerTime = true)]
public DateTime? CreatedTime { get; set; }
///
/// Desc:更新人
/// Default:
/// Nullable:True
///
[SugarColumn(ColumnName = "updated_by")]
public string? UpdatedBy { get; set; }
///
/// Desc:更新时间
/// Default:CURRENT_TIMESTAMP
/// Nullable:True
///
[SugarColumn(ColumnName = "updated_time", UpdateServerTime = true)]
public DateTime UpdatedTime { get; set; } = DateTime.Now;
}