부모 티켓
1개 티켓

백로그

0
티켓 없음

할 일

0
티켓 없음

진행 중

0
티켓 없음

리뷰

0
티켓 없음

완료 (전체)

1
높음 156a3155
서브 티켓 [Phase 4] PR 4-1: Study 모델 (코스/챕터/레슨)

Study 모델 3개 + 마이그레이션 + 시드 구현 (TDD)

Study::Course, Study::Chapter, Study::Lesson 3개 모델과 마이그레이션, 시드 데이터를 TDD로 구현합니다. ## 스키마 - study_courses: id(uuid), slug(string, unique index), title(string), subtitle(string), description(text), price_monthly(integer, default: 88000), completion_threshold(integer, default: 80), total_chapters(integer, default: 0), total_lessons(integer, default: 0), total_duration(integer, default: 0), is_active(boolean, default: false), timestamps - study_chapters: id(uuid), course_id(uuid FK→study_courses), chapter_number(integer), title(string), description(text), is_preview(boolean, default: false), display_order(integer), timestamps, unique index(course_id, chapter_number) - study_lessons: id(uuid), chapter_id(uuid FK→study_chapters), course_id(uuid FK→study_courses), lesson_number(integer), title(string), video_id(string), video_type(integer, enum: vimeo/youtube), duration_minutes(integer, default: 0), is_preview(boolean, default: false), materials_url(string), timestamps, unique index(chapter_id, lesson_number) ## 완료 기준 - 마이그레이션 성공 + 롤백 + 재마이그레이션 - 코스-챕터-레슨 계층 연관관계 동작 - course.recalculate_totals! 콜백 (챕터/레슨 수, 총 시간 자동 계산) - 시드: "강점코치 입문 과정" 커리큘럼 (11챕터, ~20레슨) - slug 자동 생성

D
developer-2
4 months