- 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
21 lines
698 B
C#
21 lines
698 B
C#
namespace SPMS.Domain.Entities;
|
|
|
|
public class Message : BaseEntity
|
|
{
|
|
public long ServiceId { get; set; }
|
|
public string MessageCode { get; set; } = string.Empty;
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Body { get; set; } = string.Empty;
|
|
public string? ImageUrl { get; set; }
|
|
public string? LinkUrl { get; set; }
|
|
public string? CustomData { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public long CreatedBy { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
public DateTime? DeletedAt { get; set; }
|
|
|
|
// Navigation
|
|
public Service Service { get; set; } = null!;
|
|
public Admin CreatedByAdmin { get; set; } = null!;
|
|
}
|