- 12개 Enum 추가 (Platform, ServiceStatus, SubTier, AdminRole, DeviceStatus, MessageStatus, PushResult, PaymentStatus, TargetType, LinkType, WebhookEvent, WebhookStatus) - ErrorCodes 상수 클래스 추가 (Error_Codes.md 기반 3자리 코드) - Entity byte 필드를 Enum 타입으로 변경 (Service, Admin, Device, PushSendLog, WebhookLog, Payment) - WebhookLog.EventType 컬럼 타입 변경 (varchar→tinyint) 마이그레이션 적용
23 lines
693 B
C#
23 lines
693 B
C#
using SPMS.Domain.Enums;
|
|
|
|
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 PaymentStatus Status { get; set; }
|
|
public SubTier? TierBefore { get; set; }
|
|
public SubTier 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!;
|
|
}
|