방구석게임방_ERD

테이블 (10)

conference (컨퍼런스)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 유저id (owner) — Integer — 외래 키 → user.Key — NOT NULL
  • 카테고리id (game_category) — Integer — 외래 키 → game_category.Key — NOT NULL
  • 시작시간 (call_start_time) — DateTime
  • 종료시간 (call_end_time) — DateTime
  • 방제목 (title) — String
  • 활성화여부 (is_active) — Boolean
  • 비밀번호 (password) — String
  • 최대인원 (max_user) — Integer

conference_history (컨퍼런스 이력)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 유저id (user) — Integer — 외래 키 → user.Key — NOT NULL
  • 컨퍼런스id (conference) — Integer — 외래 키 → conference.Key — NOT NULL
  • 액션 (action) — smallInteger
  • 생성시간 (inserted_time) — DateTime

game (게임)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • Key (conference) — Integer — 외래 키 → conference.Key — NOT NULL
  • Key (game_category) — Integer — 외래 키 → game_category.Key — NOT NULL
  • 게임시작시간 (game_start_time) — DateTime
  • 게임종료시간 (game_end_time) — DateTime

game_category (게임 종류)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 게임종류 (name) — String
  • 게임설명 (summary) — String

game_history (게임 히스토리)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 게임아이디 (game) — String — 외래 키 → game.Key — NOT NULL
  • 유저아이디 (user) — Integer — 외래 키 → user.Key — NOT NULL
  • 액션 (action) — smallInteger
  • 생성시간 (inserted_time) — DateTime
  • 순위 (ranking) — Integer

game_keyword (게임제시어)

  • Key — Integer — 기본 키 — NOT NULL
  • Key (game_category) — Integer — 외래 키 → game_category.Key — NOT NULL
  • 제시어 (keyword) — String

user (사용자)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 닉네임 (nickname) — String
  • 아이디 (user_id) — String
  • 패스워드 (password) — String
  • 경험치 (exp) — Integer

user_conference (사용자_컨퍼런스)

  • key (id) — Integer — 기본 키 — NOT NULL
  • Key (conference) — Integer — 외래 키 → conference.Key — NOT NULL
  • Key (user) — Integer — 외래 키 → user.Key — NOT NULL

user_game (유저_게임)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 유저아이디 (user) — Integer — 외래 키 → user.Key — NOT NULL
  • 게임아이디 (game) — Integer — 외래 키 → game.Key — NOT NULL

win_rate (1등)

  • Key (id) — Integer — 기본 키 — NOT NULL
  • 유저아이디 (user) — Integer — 외래 키 → user.Key — NOT NULL
  • 게임종류 (game_category) — Integer — 외래 키 → game_category.Key — NOT NULL
  • 1등한횟수 (first_ranked) — Integer
  • 게임횟수 (game_count) — Integer