Files
f9-web-ai-test/backend/F9WebAiTest.Domain/Common/BaseEntity.cs
T
2026-10-08 10:43:59 +08:00

14 lines
423 B
C#

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; }
}