test
Tables (8)
lesson_bookings
- id — BIGINT — Primary key — NOT NULL — 강습 예약 ID
- lesson_id — BIGINT — Foreign key → lessons.id — NOT NULL — 강습 ID
- matching_request_id — BIGINT — Foreign key → matching_requests.id — NOT NULL — 매칭 요청 ID
- requester_id — BIGINT — NOT NULL — 요청자 회원 ID
- headcount — INT — NOT NULL — 예약 인원
- status — VARCHAR(30) — NOT NULL — 예약 상태
- confirmed_at — DATETIME(6) — 예약 확정 일시
- canceled_at — DATETIME(6) — 예약 취소 일시
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
lessons
- id — BIGINT — Primary key — NOT NULL — 강습 ID
- matching_group_id — BIGINT — Foreign key → matching_groups.id — NOT NULL — 매칭 그룹 ID
- instructor_profile_id — BIGINT — NOT NULL — 강사 프로필 ID
- resort_id — BIGINT — NOT NULL — 스키장 ID
- sport — VARCHAR(30) — NOT NULL — 종목: SKI, SNOWBOARD
- lesson_level — VARCHAR(30) — NOT NULL — 강습 레벨
- max_headcount — INT — NOT NULL — 최대 인원
- current_headcount — INT — NOT NULL — 현재 인원
- start_at — DATETIME(6) — NOT NULL — 시작 일시
- end_at — DATETIME(6) — NOT NULL — 종료 일시
- duration_minutes — INT — NOT NULL — 강습 시간
- meeting_place — VARCHAR(200) — 만남 장소
- status — VARCHAR(30) — NOT NULL — 강습 상태
- completed_at — DATETIME(6) — 완료 일시
- canceled_at — DATETIME(6) — 취소 일시
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
matching_group_candidates
- id — BIGINT — Primary key — NOT NULL — 매칭 그룹 후보 ID
- matching_group_id — BIGINT — Foreign key → matching_groups.id — NOT NULL — 매칭 그룹 ID
- matching_request_id — BIGINT — Foreign key → matching_requests.id — NOT NULL — 매칭 요청 ID
- headcount — INT — NOT NULL — 후보 인원
- status — VARCHAR(30) — NOT NULL — 후보 상태
- candidate_score — INT — 후보 점수
- held_until — DATETIME(6) — 후보 유지 만료 일시
- won_at — DATETIME(6) — 선택 일시
- released_at — DATETIME(6) — 해제 일시
- release_reason — VARCHAR(100) — 해제 사유
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
matching_group_requests
- id — BIGINT — Primary key — NOT NULL — 매칭 그룹 요청 ID
- matching_group_id — BIGINT — Foreign key → matching_groups.id — NOT NULL — 매칭 그룹 ID
- matching_request_id — BIGINT — Foreign key → matching_requests.id — NOT NULL — 매칭 요청 ID
- headcount — INT — NOT NULL — 확정 인원
- status — VARCHAR(30) — NOT NULL — 편입 상태
- confirmed_at — DATETIME(6) — 확정 일시
- released_at — DATETIME(6) — 해제 일시
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
matching_groups
- id — BIGINT — Primary key — NOT NULL — 매칭 그룹 ID
- resort_id — BIGINT — NOT NULL — 스키장 ID
- sport — VARCHAR(30) — NOT NULL — 종목: SKI, SNOWBOARD
- lesson_level — VARCHAR(30) — NOT NULL — 강습 레벨
- start_at — DATETIME(6) — 시작 일시
- end_at — DATETIME(6) — 종료 일시
- duration_minutes — INT — NOT NULL — 강습 시간
- target_headcount — INT — NOT NULL — 목표 인원
- candidate_headcount — INT — NOT NULL — 후보 인원 합계
- confirmed_headcount — INT — NOT NULL — 확정 인원 합계
- status — VARCHAR(40) — NOT NULL — 그룹 상태
- expires_at — DATETIME(6) — 그룹 만료 일시
- ready_at — DATETIME(6) — 그룹 완성 일시
- assigned_at — DATETIME(6) — 강사 배정 일시
- version — BIGINT — NOT NULL — 동시성 제어 버전
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
matching_offers
- id — BIGINT — Primary key — NOT NULL — 강사 배정 요청 ID
- matching_group_id — BIGINT — Foreign key → matching_groups.id — NOT NULL — 매칭 그룹 ID
- instructor_profile_id — BIGINT — NOT NULL — 강사 프로필 ID
- status — VARCHAR(40) — NOT NULL — 제안 상태
- exposed_at — DATETIME(6) — NOT NULL — 노출 일시
- expires_at — DATETIME(6) — NOT NULL — 응답 만료 일시
- responded_at — DATETIME(6) — 응답 일시
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
matching_request_participants
- id — BIGINT — Primary key — NOT NULL — 강습생 ID
- matching_request_id — BIGINT — Foreign key → matching_requests.id — NOT NULL — 매칭 요청 ID
- member_id — BIGINT — 회원 ID
- age — INT — 나이
- gender — VARCHAR(20) — 성별: MALE, FEMALE
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시
matching_requests
- id — BIGINT — Primary key — NOT NULL — 매칭 요청 ID
- requester_id — BIGINT — NOT NULL — 요청자 회원 ID
- resort_id — BIGINT — NOT NULL — 스키장 ID
- sport — VARCHAR(30) — NOT NULL — 종목: SKI, SNOWBOARD
- lesson_level — VARCHAR(30) — NOT NULL — 강습 레벨
- headcount — INT — NOT NULL — 요청 인원
- desired_start_at — DATETIME(6) — 희망 시작 일시
- duration_minutes — INT — NOT NULL — 강습 시간
- is_equipment_ready — TINYINT(1) — NOT NULL — 장비 착용 여부
- status — VARCHAR(40) — NOT NULL — 요청 상태
- expires_at — DATETIME(6) — 요청 만료 일시
- created_at — DATETIME(6) — NOT NULL — 생성 일시
- updated_at — DATETIME(6) — NOT NULL — 수정 일시