gambiti

Tables (19)

chatbot_messages

  • id — INT — NOT NULL

chatbot_sessions

  • id — INT — Primary key — NOT NULL — 문서 원문
  • user_id — INT — Foreign key → users.id — NOT NULL — 임베딩 모델명
  • session_type — ENUM('survey', 'recommendation', 'general') — NOT NULL — 벡터 DB 외부 ID
  • status — ENUM('active', 'completed', 'abandoned') — NOT NULL — 원본 출처 URL
  • created_at — TIMESTAMP — NOT NULL — 검색 대상 포함 여부
  • updated_at — TIMESTAMP — NOT NULL — 적재 일시

game_reviews

  • id — INT — Primary key — NOT NULL — 메시지 식별자
  • user_id — INT — Foreign key → users.id — NOT NULL — 소속 세션
  • game_id — INT — Foreign key → games.id — NOT NULL — 발화자 구분
  • rating — TINYINT — NOT NULL — 메시지 내용
  • content — TEXT — 대화 턴 순서
  • is_recommended — BOOLEAN — 생성 일시
  • status — ENUM('active', 'deleted') — NOT NULL — RAG 문서 식별자
  • created_at — TIMESTAMP — NOT NULL — 연관 게임 (게임 특화 문서인 경우)
  • updated_at — TIMESTAMP — NOT NULL — 문서 유형

game_tag_mappings

  • id — INT — Primary key — NOT NULL — 전략 기여도 (0.0~1.0)
  • game_id — INT — Foreign key → games.id — NOT NULL — 협동 기여도 (0.0~1.0)
  • standard_tag_id — INT — Foreign key → standard_tags.id — NOT NULL — 탐험 기여도 (0.0~1.0)
  • battle_weight — DECIMAL(3, 2) — NOT NULL — 성장 기여도 (0.0~1.0)
  • strategy_weight — DECIMAL(3, 2) — NOT NULL — 힐링 기여도 (0.0~1.0)
  • cooperation_weight — DECIMAL(3, 2) — NOT NULL — 라이브러리 항목 식별자
  • exploration_weight — DECIMAL(3, 2) — NOT NULL — 회원 식별자
  • growth_weight — DECIMAL(3, 2) — NOT NULL — Steam 앱 ID
  • healing_weight — DECIMAL(3, 2) — NOT NULL — 총 플레이타임 (분)

games

  • id — INT — Primary key — NOT NULL — 게임명
  • app_id — BIGINT — NOT NULL — 대표 썸네일 URL
  • title — VARCHAR(500) — NOT NULL — 게임 개요
  • image_url — VARCHAR(500) — 장르 배열
  • description — TEXT — 가격 (USD)
  • genres — JSON — NOT NULL — 유저 평가 점수 (0~100)
  • price — DECIMAL(10, 2) — 유저 평가 수
  • review_score — DECIMAL(5, 2) — Steam 상점 링크
  • review_count — INT — NOT NULL — 전투 성향 벡터 (0~100)
  • steam_url — VARCHAR(500) — 전략 성향 벡터 (0~100)
  • battle_vec — DECIMAL(5, 2) — NOT NULL — 협동 성향 벡터 (0~100)
  • strategy_vec — DECIMAL(5, 2) — NOT NULL — 탐험 성향 벡터 (0~100)
  • cooperation_vec — DECIMAL(5, 2) — NOT NULL — 성장 성향 벡터 (0~100)
  • exploration_vec — DECIMAL(5, 2) — NOT NULL — 힐링 성향 벡터 (0~100)
  • growth_vec — DECIMAL(5, 2) — NOT NULL — 추천 후보 여부 (Soft Delete)
  • healing_vec — DECIMAL(5, 2) — NOT NULL — 적재 일시
  • is_active — BOOLEAN — NOT NULL — 수정 일시
  • created_at — TIMESTAMP — NOT NULL — 표준 태그 식별자
  • updated_at — TIMESTAMP — NOT NULL — 정규화된 표준 태그명 (예: Soulslike)

party_applications

  • id — INT — Primary key — NOT NULL — 작성자
  • post_id — INT — Foreign key → party_posts.id — NOT NULL — 리뷰 대상 게임
  • user_id — INT — Foreign key → users.id — NOT NULL — 평점 (1~5)
  • representative_stat_tag — VARCHAR(50) — 리뷰 본문
  • status — ENUM('pending', 'accepted', 'rejected', 'cancelled') — NOT NULL — 추천 여부
  • created_at — TIMESTAMP — NOT NULL — 리뷰 상태
  • updated_at — TIMESTAMP — NOT NULL — 작성 일시

party_posts

  • id — INT — Primary key — NOT NULL — 수정 일시
  • user_id — INT — Foreign key → users.id — NOT NULL — 파티 신청 식별자
  • game_id — INT — Foreign key → games.id — NOT NULL — 모집 게시글
  • title — VARCHAR(200) — NOT NULL — 신청자
  • content — TEXT — 신청자 대표 성향 태그
  • play_style — VARCHAR(200) — 신청 상태
  • schedule — VARCHAR(200) — 신청 일시
  • max_members — INT — NOT NULL — 수정 일시
  • current_members — INT — NOT NULL — 피드백 식별자
  • status — ENUM('open', 'closed', 'deleted') — NOT NULL — 회원 식별자
  • representative_stat_tag — VARCHAR(50) — 피드백 대상 추천 항목
  • created_at — TIMESTAMP — NOT NULL — 피드백 유형
  • updated_at — TIMESTAMP — NOT NULL — 피드백 일시

rag_documents

  • id — INT — NOT NULL

recommendation_feedbacks

  • id — INT — Primary key — NOT NULL — 챗봇 세션 식별자
  • user_id — INT — Foreign key → users.id — NOT NULL — 회원 식별자
  • item_id — INT — Foreign key → recommendation_items.id — NOT NULL — 세션 목적
  • feedback_type — ENUM('like', 'wishlist', 'not_interested') — NOT NULL — 세션 상태
  • created_at — TIMESTAMP — NOT NULL — 세션 시작 일시
  • =추천 — 게임

recommendation_items

  • id — INT — Primary key — NOT NULL — 게시글 제목
  • session_id — INT — Foreign key → recommendation_sessions.id — NOT NULL — 게시글 본문
  • game_id — INT — Foreign key → games.id — NOT NULL — 선호 플레이 방식
  • rank — INT — NOT NULL — 플레이 시간대
  • match_score — DECIMAL(5, 2) — NOT NULL — 최대 모집 인원
  • is_warning — BOOLEAN — NOT NULL — 현재 참여 인원
  • warning_reason — TEXT — 모집 상태
  • recommendation_reason — TEXT — 작성자 대표 성향 태그

recommendation_sessions

  • id — INT — Primary key — NOT NULL — 제외된 게임 ID 목록 (보유 게임 등)
  • user_id — INT — Foreign key → users.id — NOT NULL — 추천 실행 일시
  • user_stats_id — INT — Foreign key → user_stats.id — NOT NULL — 추천 게임 항목 식별자
  • source_type — ENUM('ONLY_SURVEY', 'HYBRID_STEAM') — NOT NULL — 추천 세션
  • snapshot_battle — INT — NOT NULL — 추천 게임
  • snapshot_strategy — INT — NOT NULL — 추천 순위
  • snapshot_cooperation — INT — NOT NULL — 코사인 유사도 매칭 점수 (0~100)
  • snapshot_exploration — INT — NOT NULL — 구매 전 주의 목록 여부
  • snapshot_growth — INT — NOT NULL — 주의 사유 (충돌 태그 설명)
  • snapshot_healing — INT — NOT NULL — LLM 생성 추천 이유 텍스트
  • excluded_game_ids — JSON — NOT NULL — 파티 모집 게시글 식별자
  • created_at — TIMESTAMP — NOT NULL — 작성자
  • =추천 — 실행

standard_tags

  • id — INT — Primary key — NOT NULL — 매핑 식별자
  • tag_name — VARCHAR(100) — NOT NULL — 게임 식별자
  • is_active — BOOLEAN — NOT NULL — 표준 태그 식별자
  • =정규화된 — 표준

steam_accounts

  • id — INT — Primary key — NOT NULL — 회원 식별자
  • user_id — INT — Foreign key → users.id — NOT NULL — Steam 고유 ID (64비트)
  • steam_id_64 — VARCHAR(30) — NOT NULL — Steam 닉네임
  • steam_nickname — VARCHAR(100) — Steam 아바타 URL
  • avatar_url — VARCHAR(500) — 프로필 공개 여부
  • profile_visibility — ENUM('public', 'private', 'friends_only') — 라이브러리 공개 여부
  • library_visibility — ENUM('public', 'private') — 동기화 상태
  • sync_status — ENUM('success', 'private', 'failed', 'empty') — NOT NULL — 마지막 동기화 일시
  • last_synced_at — TIMESTAMP — 연동 생성 일시
  • created_at — TIMESTAMP — NOT NULL — 수정 일시
  • updated_at — TIMESTAMP — NOT NULL — 게임 내부 식별자
  • =Steam — 계정

survey_questions

  • id — INT — Primary key — NOT NULL — 응답 식별자
  • question_text — TEXT — NOT NULL — 회원 식별자
  • stat_axis — ENUM('battle', 'strategy', 'cooperation', 'exploration', 'growth', 'healing') — NOT NULL — 설문 문항
  • display_order — INT — NOT NULL — 응답 점수 (-2 ~ +2)
  • is_active — BOOLEAN — NOT NULL — 응답 일시
  • created_at — TIMESTAMP — NOT NULL — 성향 스탯 이력 식별자

user_library_games

  • id — INT — Primary key — NOT NULL — 동기화 일시
  • user_id — INT — Foreign key → users.id — NOT NULL — 설문 문항 식별자
  • steam_app_id — BIGINT — NOT NULL — 질문 내용
  • playtime_minutes — INT — NOT NULL — 매핑된 성향 축
  • last_played_at — TIMESTAMP — 문항 표시 순서
  • synced_at — TIMESTAMP — NOT NULL — 사용 여부

user_negative_tags

  • id — INT — Primary key — NOT NULL — 실행 시점 협동 스탯
  • user_stats_id — INT — Foreign key → user_stats.id — NOT NULL — 실행 시점 탐험 스탯
  • standard_tag_id — INT — Foreign key → standard_tags.id — NOT NULL — 실행 시점 성장 스탯

user_stats

  • id — INT — Primary key — NOT NULL — 스탯 도출 방식
  • user_id — INT — Foreign key → users.id — NOT NULL — 설문 방식
  • battle — INT — NOT NULL — 산출 일시 (이력 Insert)
  • strategy — INT — NOT NULL — 비선호 태그 식별자
  • cooperation — INT — NOT NULL — 성향 스탯 이력
  • exploration — INT — NOT NULL — 비선호 표준 태그
  • growth — INT — NOT NULL — 추천 세션 식별자
  • healing — INT — NOT NULL — 회원 식별자
  • source_type — ENUM('ONLY_SURVEY', 'HYBRID_STEAM') — NOT NULL — 사용된 성향 스탯
  • survey_mode — ENUM('standard', 'chatbot') — 추천 데이터 출처
  • created_at — TIMESTAMP — NOT NULL — 실행 시점 전투 스탯
  • =사용자 — 성향

user_survey_responses

  • id — INT — Primary key — NOT NULL — 전투 스탯 (0~100)
  • user_id — INT — Foreign key → users.id — NOT NULL — 전략 스탯 (0~100)
  • question_id — INT — Foreign key → survey_questions.id — NOT NULL — 협동 스탯 (0~100)
  • score — TINYINT — NOT NULL — 탐험 스탯 (0~100)
  • created_at — TIMESTAMP — NOT NULL — 성장 스탯 (0~100)

users

  • id — INT — Primary key — NOT NULL — 회원 식별자
  • email — VARCHAR(255) — NOT NULL — 이메일 주소
  • password_hash — VARCHAR(255) — 비밀번호 해시 (소셜 로그인 시 NULL)
  • nickname — VARCHAR(30) — NOT NULL — 닉네임 (2~8자, 특수기호 불가)
  • login_provider — ENUM('email', 'steam') — NOT NULL — 로그인 방식
  • gender — ENUM('male', 'female', 'other') — 성별
  • birth_date — DATE — 생년월일
  • is_email_verified — BOOLEAN — NOT NULL — 이메일 인증 완료 여부
  • status — ENUM('active', 'inactive', 'withdrawn') — NOT NULL — 계정 상태
  • created_at — TIMESTAMP — NOT NULL — 계정 생성 일시
  • updated_at — TIMESTAMP — NOT NULL — 수정 일시