using FreeSql.DataAnnotations; namespace F9WebAiTest.Domain.Common; /// 所有旧实体的基类(自增主键 + 软删除) 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; } }