[Feature] Domain Entity 정의 및 DB 스키마 구축 #8

Closed
opened 2026-02-09 02:23:46 +00:00 by seonkyu.kim · 0 comments
Owner

설명

DB_Schema.md 기반 12개 Entity 클래스를 정의하고, EF Core Fluent API 설정 후 초기 Migration으로 DB 테이블을 생성한다.

체크리스트 — Domain Entity (SPMS.Domain)

  • SPMS.Domain/Entities/ 디렉토리 생성
  • BaseEntity.cs — 공통 필드 (Id)
  • Service.cs — 서비스 정보 (21 컬럼)
  • ServiceIp.cs — IP 화이트리스트 (3 컬럼)
  • Admin.cs — 관리자 정보 (13 컬럼)
  • Device.cs — 기기 정보 (15 컬럼)
  • Message.cs — 메시지 내용 (12 컬럼)
  • FileEntity.cs — 업로드 파일 (9 컬럼)
  • PushSendLog.cs — 발송 로그 (7 컬럼)
  • PushOpenLog.cs — 오픈 로그 (5 컬럼)
  • DailyStat.cs — 일별 통계 (8 컬럼)
  • WebhookLog.cs — 웹훅 로그 (9 컬럼)
  • SystemLog.cs — 시스템 로그 (9 컬럼)
  • Payment.cs — 결제 이력 (12 컬럼)

체크리스트 — EF Core Configuration (SPMS.Infrastructure)

  • SPMS.Infrastructure/Persistence/Configurations/ 디렉토리 생성
  • 12개 엔티티별 IEntityTypeConfiguration<T> 구현
  • AppDbContext.cs DbSet 등록 (12개)
  • Soft Delete 글로벌 쿼리 필터 적용
  • 초기 마이그레이션 생성 (dotnet ef migrations add InitialCreate)
  • DB 적용 (dotnet ef database update) → spms_dev에 테이블 생성 확인

참고

  • Documents/DB_Schema.md 기준
  • EF Core Code-First + Pomelo MySQL
  • MariaDB 11.2.2 / spms_dev
## 설명 DB_Schema.md 기반 12개 Entity 클래스를 정의하고, EF Core Fluent API 설정 후 초기 Migration으로 DB 테이블을 생성한다. ## 체크리스트 — Domain Entity (SPMS.Domain) - [x] `SPMS.Domain/Entities/` 디렉토리 생성 - [x] `BaseEntity.cs` — 공통 필드 (Id) - [x] `Service.cs` — 서비스 정보 (21 컬럼) - [x] `ServiceIp.cs` — IP 화이트리스트 (3 컬럼) - [x] `Admin.cs` — 관리자 정보 (13 컬럼) - [x] `Device.cs` — 기기 정보 (15 컬럼) - [x] `Message.cs` — 메시지 내용 (12 컬럼) - [x] `FileEntity.cs` — 업로드 파일 (9 컬럼) - [x] `PushSendLog.cs` — 발송 로그 (7 컬럼) - [x] `PushOpenLog.cs` — 오픈 로그 (5 컬럼) - [x] `DailyStat.cs` — 일별 통계 (8 컬럼) - [x] `WebhookLog.cs` — 웹훅 로그 (9 컬럼) - [x] `SystemLog.cs` — 시스템 로그 (9 컬럼) - [x] `Payment.cs` — 결제 이력 (12 컬럼) ## 체크리스트 — EF Core Configuration (SPMS.Infrastructure) - [x] `SPMS.Infrastructure/Persistence/Configurations/` 디렉토리 생성 - [x] 12개 엔티티별 `IEntityTypeConfiguration<T>` 구현 - [x] `AppDbContext.cs` DbSet 등록 (12개) - [x] Soft Delete 글로벌 쿼리 필터 적용 - [x] 초기 마이그레이션 생성 (`dotnet ef migrations add InitialCreate`) - [x] DB 적용 (`dotnet ef database update`) → spms_dev에 테이블 생성 확인 ## 참고 - `Documents/DB_Schema.md` 기준 - EF Core Code-First + Pomelo MySQL - MariaDB 11.2.2 / spms_dev
seonkyu.kim self-assigned this 2026-02-09 02:24:06 +00:00
seonkyu.kim added this to the Phase 1: 인프라 & 공통 모듈 milestone 2026-02-09 02:24:09 +00:00
seonkyu.kim added the
Priority
Urgent
Status
Available
Type
Feature
labels 2026-02-09 02:25:19 +00:00
seonkyu.kim added
Status
In Progress
and removed
Status
Available
labels 2026-02-09 02:50:33 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-09 04:03:47 +00:00
Sign in to join this conversation.
No description provided.