You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.7 KiB
66 lines
1.7 KiB
using FreeSql.DataAnnotations;
|
|
using System.ComponentModel;
|
|
|
|
namespace Znyc.CloudCar.Model.Entities
|
|
{
|
|
/// <summary>
|
|
/// 实体审计
|
|
/// </summary>
|
|
public class EntityBase
|
|
{
|
|
|
|
/// <summary>
|
|
/// 编号
|
|
/// </summary>
|
|
[Description("主键Id")]
|
|
[SnowflakeAttribute]
|
|
[Column(Position = 1, IsIdentity = false, IsPrimary = true)]
|
|
public virtual long Id { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 创建者Id
|
|
/// </summary>
|
|
[Description("创建者Id")]
|
|
[Column(Position = -1, CanUpdate = false)]
|
|
public long CreatedUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[Description("创建时间")]
|
|
[Column(Position = -2, CanUpdate = false, ServerTime = DateTimeKind.Local)]
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 修改者Id
|
|
/// </summary>
|
|
[Description("修改者Id")]
|
|
[Column(Position = -3, CanInsert = false)]
|
|
public long ModifiedUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改时间
|
|
/// </summary>
|
|
[Description("修改时间")]
|
|
[Column(Position = -4, CanInsert = false, ServerTime = DateTimeKind.Local)]
|
|
public DateTime ModifiedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
[Description("是否启用")]
|
|
public bool IsEnabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 是否删除
|
|
/// </summary>
|
|
[Description("是否删除")]
|
|
[Column(Position = -5)]
|
|
public bool IsDeleted { get; set; } = false;
|
|
|
|
|
|
}
|
|
|
|
}
|