[P0] QT 핵심 모델 (Theme/Content/Session/Participant)
ID: 9b719191-a095-4d59-8ae3-484b98538a20
## 개요
QT 시스템의 핵심 데이터 모델 4개 생성
## 범위
- QtTheme: title, description, is_default, is_active, total_day, is_ai_generated, generation_status
- QtContent: theme_id(FK), day_number, bible_passage, theme_title, content, questions(JSON), difficulty
- QtSession: title, theme_id(FK), creator_id(FK), start_date, end_date, invite_code(unique), status(enum)
- QtParticipant: session_id(FK), user_id(FK), role(enum), is_active, joined_at
- 모든 테이블 UUID PK
- 관계 설정: Theme has_many Contents/Sessions, Session has_many Participants
## 완료 기준
- [ ] 4개 모델 마이그레이션 실행 성공
- [ ] 관계(associations) 설정 완료
- [ ] enum, scope, validation 설정
- [ ] 모델 테스트 통과
## 참고
- docs/migration/index.md §2-2 QT 시스템 테이블
- docs/migration/index.md §8 Rails 모델 설계
첨부 이미지
이미지 추가 (Ctrl+V로 붙여넣기 또는 클릭)
JPEG, PNG, GIF, WebP / 최대 10MB
활동 로그
-
팀팀리드 상태 변경: 할 일 → 완료
2026년 03월 02일 01:13:39