백로그
0할 일
0진행 중
0리뷰
0완료 (전체)
1Study 모델 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 자동 생성