FitMate
Tables (12)
alert (알림)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 받는사람 (receiver_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 알림 타입 (type) — VARCHAR(100)
- 타겟 아이디 (target_id) — BIGINT
- 내용 (content) — VARCHAR(200)
- 읽기여부 (is_read) — BOOLEAN
- 생성일 (created_at) — DATETIME
chat_messages (채팅)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 채팅방 아이디 (chat_room_id) — BIGINT — Foreign key → chat_rooms.아이디 — NOT NULL
- 작성자 아이디 (sender_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 메세지 (message) — TEXT
- 읽기여부 (is_read) — BOOLEAN
- 작성일 (created_at) — DATETIME
chat_rooms (채팅방)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 사용자 아이디 (user_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 트레이너 아이디 (traner_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 생성일 (created_at) — DATETIME
- 삭제여부 (is_deleted) — BOOLEAN
inquiries (문의사항)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 멤버아이디 (member_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 타입 (type) — VARCHAR(20)
- 제목 (title) — VARCHAR(100)
- 내용 (content) — TEXT
- 상태 (status) — VARCHAR(20)
- 답변 (answer) — TEXT
- 작성일시 (create_at) — DATETIME
- 수정일시 (update_at) — DATETIME
matching_preferred_times (선호시간)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 매칭아이디 (matching_id) — BIGINT — Foreign key → matching_request.아이디 — NOT NULL
- 요일 (day_of_week) — VARCHAR(20) — NOT NULL
- 시작시간 (start_time) — TIME — NOT NULL
- 종료시간 (end_time) — TIME — NOT NULL
- 생성일 (created_at) — DATETIME — NOT NULL
matching_request (매칭요청)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 멤버아이디 (member_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 레슨수준 (level) — VARCHAR(50) — NOT NULL
- 종목 (sports) — VARCHAR(255) — NOT NULL
- 레슨방식 (lesson_type) — VARCHAR(50) — NOT NULL
- 지역 (region) — VARCHAR(255) — NOT NULL
- 최소예산 (budget_min) — INT
- 최대예산 (budget_max) — INT
- 생성일 (created_at) — DATETIME — NOT NULL
- 수정일 (updated_at) — DATETIME — NOT NULL
matching_results (매칭결과)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 매칭아이디 (matching_id) — BIGINT — Foreign key → matching_request.아이디 — NOT NULL
- 트레이너프로필 (trainer_profile_id) — BIGINT — Foreign key → trainer_profiles.아이디 — NOT NULL
- 선호시간 (preferred_time_id) — BIGINT — Foreign key → matching_preferred_times.아이디 — NOT NULL
- 트레이너시간 (trainer_available_time_id) — BIGINT — Foreign key → trainer_available_times.아이디 — NOT NULL
- 생성일 (created_at) — DATETIME
members (멤버)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 유저아이디 (user_id) — VARCHAR(100)
- 이름 (user_name) — VARCHAR(50)
- 비밀번호 (password) — VARCHAR(255)
- 닉네임 (nickname) — VARCHAR(50)
- 이메일 (email) — VARCHAR(255)
- 역할 (role) — VARCHAR(20)
- 프로필 사진 (profile_image) — VARCHAR(255)
- 활동지역 (region) — VARCHAR(255)
- 소개 (introduction) — TEXT
- 가입일 (created_at) — DATETIME
reviews (리뷰)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 매칭아이디 (matching_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 평점 (rating) — INT
- 내용 (content) — VARCHAR(500)
- 작성일 (created_at) — DATETIME
- 작성자아이디 (reviewer_id) — BIGINT — NOT NULL
- 트레이너아이디 (trainer_id) — BIGINT — NOT NULL
trainer_available_times
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 트레이너프로필 (trainer_profile_id) — BIGINT — Foreign key → trainer_profiles.아이디 — NOT NULL
- 요일 (day_of_week) — VARCHAR(20) — NOT NULL
- 시작시간 (start_time) — TIME — NOT NULL
- 종료시간 (end_time) — TIME — NOT NULL
- 생성일 (created_at) — DATETIME — NOT NULL
- 수정일 (updated_at) — DATETIME — NOT NULL
trainer_profiles (트레이너프로필)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 멤버아이디 (user_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 전문종목 (sports) — VARCHAR(255)
- 레슨방식 (lesson_type) — VARCHAR(50)
- 가격 (price) — INT
- 생성일시 (created_at) — DATETIME
user_profiles (유저프로필)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 멤버아이디 (user_id) — BIGINT — Foreign key → members.아이디 — NOT NULL
- 관심종목 (sports) — VARCHAR(255)
- 레벨 (level) — VARCHAR(50)
- 생성일시 (created_at) — DATETIME