SPMS_API/SPMS.Domain/Entities/Device.cs
SEAN cfce5ca8b8 feat: Domain Entity 정의 및 DB 스키마 구축 (#8)
- 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
2026-02-09 11:46:33 +09:00

23 lines
766 B
C#

namespace SPMS.Domain.Entities;
public class Device : BaseEntity
{
public long ServiceId { get; set; }
public string DeviceToken { get; set; } = string.Empty;
public byte Platform { get; set; }
public string? AppVersion { get; set; }
public string? OsVersion { get; set; }
public string? DeviceModel { get; set; }
public string? Tags { get; set; }
public bool PushAgreed { get; set; }
public bool MarketingAgreed { get; set; }
public bool IsActive { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public DateTime? AgreeUpdatedAt { get; set; }
public DateTime? MktAgreeUpdatedAt { get; set; }
// Navigation
public Service Service { get; set; } = null!;
}