first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace F9WebAiTest.Domain.Common;
|
||||
|
||||
/// <summary>所有旧实体的基类(自增主键 + 软删除)</summary>
|
||||
public abstract class BaseEntity : IEntity
|
||||
{
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
public DateTime CreatedAt { get; set; } = DateTime.Now;
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user