- 12개 Domain Entity 클래스 정의 (DB_Schema.md 기반) - 12개 EF Core Fluent API Configuration 구현 - AppDbContext에 DbSet 12개 등록 및 Configuration 자동 적용 - Soft Delete 글로벌 쿼리 필터 적용 (Service, Admin, Message) - DesignTimeDbContextFactory 추가 (EF Core CLI 지원) - InitialCreate 마이그레이션 생성 및 spms_dev DB 적용 완료 - .gitignore에 Documents/, CLAUDE.md, TASKS.md, .mcp.json 추가 Closes #8
18 lines
519 B
C#
18 lines
519 B
C#
namespace SPMS.Domain.Entities;
|
|
|
|
public class SystemLog : BaseEntity
|
|
{
|
|
public long? ServiceId { get; set; }
|
|
public long? AdminId { get; set; }
|
|
public string Action { get; set; } = string.Empty;
|
|
public string? TargetType { get; set; }
|
|
public long? TargetId { get; set; }
|
|
public string? Details { get; set; }
|
|
public string? IpAddress { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
// Navigation
|
|
public Service? Service { get; set; }
|
|
public Admin? Admin { get; set; }
|
|
}
|