- 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
652 B
C#
21 lines
652 B
C#
namespace SPMS.Domain.Entities;
|
|
|
|
public class Payment : BaseEntity
|
|
{
|
|
public long ServiceId { get; set; }
|
|
public long AdminId { get; set; }
|
|
public int Amount { get; set; }
|
|
public string Currency { get; set; } = string.Empty;
|
|
public string? PaymentMethod { get; set; }
|
|
public string? PaymentKey { get; set; }
|
|
public byte Status { get; set; }
|
|
public byte? TierBefore { get; set; }
|
|
public byte TierAfter { get; set; }
|
|
public DateTime PaidAt { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
// Navigation
|
|
public Service Service { get; set; } = null!;
|
|
public Admin Admin { get; set; } = null!;
|
|
}
|