using SqlSugar;
using System;
using YIJIYI.Core.Common.Helper;
namespace New_College.Model.Models
{
///
/// 带创建人BaseModel
///
public partial class RootEntity
{
///
/// ID
///
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
///排序
///
public int OrderSort { get; set; }
///
/// 创建ID
///
[SugarColumn(IsNullable = true)]
public int? CreateId { get; set; }
///
/// 创建者
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
public string CreateBy { get; set; }
///
/// 创建时间
///
[SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; } =TimeUtil.GetCstDateTime();
///
/// 修改ID
///
[SugarColumn(IsNullable = true)]
public int? ModifyId { get; set; }
///
/// 修改者
///
[SugarColumn(IsNullable = true)]
public string ModifyBy { get; set; }
///
/// 修改时间
///
[SugarColumn(IsNullable = true)]
public DateTime? ModifyTime { get; set; } = TimeUtil.GetCstDateTime();
///
/// 是否删除
///
public bool IsDelete { get; set; }
}
public abstract class DEntityRootTenant : RootEntity
{
///
/// 租户id
///
public virtual long? TenantId { get; set; }
}
///
///带上租户Id
///
public abstract class DEntityTenant : EntityModel
{
///
/// 租户id
///
public virtual long? TenantId { get; set; }
}
///
/// 不带创建人BaseModel
///
public partial class EntityModel
{
///
/// ID
///
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
///排序
///
public int OrderSort { get; set; }
///
/// 创建时间
///
[SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; } = TimeUtil.GetCstDateTime();
///
///
/// 修改时间
///
[SugarColumn(IsNullable = true)]
public DateTime? ModifyTime { get; set; } = TimeUtil.GetCstDateTime();
///
/// 是否删除
///
public bool IsDelete { get; set; }
}
}