Agricola_Team4

테이블 (23)

가족말 위치 (family_position)

  • 플레이어 ID (player_id) — ForeignKey — 외래 키 → 플레이어.플레이어 ID — NOT NULL — Integer
  • 행동칸 ID (action_id) — ForeignKey — 외래 키 → 행동 칸 (주기카드 포함).행동칸 ID — NOT NULL
  • 턴 (turn) — IntegerField — NOT NULL — Integer

게임 상태 (보류) (game_status)

  • 상태 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 턴 (turn) — IntegerField — NOT NULL
  • 라운드 (Field) — IntegerField — NOT NULL

계정 (account)

  • 이메일 (email) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 이름 (name) — CharField — NOT NULL — Char
  • 아이디 (user_id) — CharField — NOT NULL — Char
  • 비밀번호 (user_pw) — CharField — NOT NULL — Char

넘버링된 울타리 (numbering_fence)

  • 넘버링 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 플레이어 ID (player_id) — IntegerField — NOT NULL
  • 울타리 정보 (fence_info) — CharField — NOT NULL

보조설비카드 (sub_facility_card)

  • 보조설비카드 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 카드 ID (card_id) — ForeignKey — 외래 키 → 카드.카드 ID — NOT NULL — Integer
  • 카드 타입 (type) — CharField — NOT NULL — Char

선플레이어/RoundArray (origin_fstplayer)

  • id — PrimaryKey — 기본 키 — NOT NULL
  • 선플레이어 id/RoundArrayIndex (player_id) — IntegerField

우리 포지션 (pen_position)

  • 우리 포지션 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 보드 ID (board_id) — ForeignKey — 외래 키 → 플레이어 판 상태.상태 ID — NOT NULL — Integer
  • 가축 종류 (animal_type) — IntegerField — NOT NULL
  • 최대 마리수 (max_num) — IntegerField — NOT NULL
  • 현재 마리수 (current_num) — IntegerField — NOT NULL
  • 포지션 배열 (position_list) — CharField — NOT NULL

울타리 포지션 (fence_position)

  • 울타리 포지션 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 포지션 ID (position_id) — ForeignKey — 외래 키 → 판 포지션.판 포지션 ID — NOT NULL
  • 플레이어 ID (player_id) — IntegerField — NOT NULL
  • 좌 (left) — BooleanField — NOT NULL
  • 상 (top) — BooleanField — NOT NULL
  • 우 (right) — BooleanField — NOT NULL
  • 하 (bottom) — BooleanField — NOT NULL

자원 (resource)

  • 자원 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 자원 이름 (name) — CharField — NOT NULL

자원 이미지 (resource_img)

  • 파일 ID (file_id) — ForeignKey — 외래 키 → 파일.파일 ID — NOT NULL
  • 자원 ID (resource_id) — ForeignKey — 외래 키 → 자원.자원 ID — NOT NULL

주기카드 (period_card)

  • 주기카드 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 카드 ID (card_id) — ForeignKey — 외래 키 → 카드.카드 ID — NOT NULL — Integer
  • 주기 (period) — IntegerField — NOT NULL — Integer

주요설비카드 (main_facility_card)

  • 주요설비카드 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 카드 ID (card_id) — ForeignKey — 외래 키 → 카드.카드 ID — NOT NULL — Integer
  • 카드 타입 (type) — CharField — NOT NULL — Char
  • 플레이어 ID (player_id) — IntegerField — NOT NULL

직업카드 (job_card)

  • 직업카드 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 카드 ID (card_id) — ForeignKey — 외래 키 → 카드.카드 ID — NOT NULL — Integer
  • 카드 타입 (type) — CharField — NOT NULL — Char

카드 (card)

  • 카드 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 카드 이미지 (card_img) — ForeignKey — 외래 키 → 파일.파일 ID — NOT NULL
  • 카드이름 (cardname) — CharField — NOT NULL — Char

파일 (file)

  • 파일 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 파일 경로 (path) — CharField — NOT NULL
  • 파일 이름 (name) — CharField — NOT NULL

판 포지션 (board_position)

  • 판 포지션 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 보드 ID (board_id) — ForeignKey — 외래 키 → 플레이어 판 상태.상태 ID — NOT NULL — Integer
  • 포지션 (position) — IntegerField — NOT NULL
  • 타입 (position_type) — IntegerField — NOT NULL
  • 가족 유무 (is_fam) — BooleanField — NOT NULL
  • 채소 종류 (vege_type) — IntegerField — NOT NULL
  • 채소 개수 (vege_num) — IntegerField — NOT NULL
  • 가축 마리 수 (animal_num) — IntegerField — NOT NULL

플레이어 (player)

  • 플레이어 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 유저 (user_id) — ForeignKey — 외래 키 → 계정.이메일 — NOT NULL — Integer
  • 어른수 (adult_num) — IntegerField — NOT NULL — Integer
  • 신생아수 (baby_num) — IntegerField — NOT NULL
  • 선공 (fst_player) — IntegerField — NOT NULL — Integer
  • 점수 (score) — IntegerField — NOT NULL
  • 남은 말 수 (ramain_num) — IntegerField — NOT NULL

플레이어 자원 (player_resource)

  • 플레이어 ID (player_id) — ForeignKey — 외래 키 → 플레이어.플레이어 ID — NOT NULL — Integer
  • 자원 ID (resource_id) — ForeignKey — 외래 키 → 자원.자원 ID — NOT NULL
  • 보유 자원 개수 (resource_num) — IntegerField — NOT NULL

플레이어 카드 (player_card)

  • 플레이어 ID (player_id) — ForeignKey — 외래 키 → 플레이어.플레이어 ID — NOT NULL — Integer
  • 카드 ID (card_id) — ForeignKey — 외래 키 → 카드.카드 ID — NOT NULL — Integer
  • 활성화 (activate) — IntegerField — NOT NULL

플레이어 판 상태 (player_board_status)

  • 상태 ID (id) — PrimaryKey — 기본 키 — NOT NULL — Integer
  • 플레이어 ID (player_id) — ForeignKey — 외래 키 → 플레이어.플레이어 ID — NOT NULL — Integer
  • 집개수 (house_num) — IntegerField — NOT NULL
  • 집종류 (house_type) — IntegerField — NOT NULL
  • 외양간 개수 (cowshed_num) — IntegerField — NOT NULL
  • 울타리 개수 (fence_num) — IntegerField — NOT NULL
  • 우리 개수 (pen_num) — IntegerField — NOT NULL

행동 칸 (주기카드 포함) (action_box)

  • 행동칸 ID (id) — PrimaryKey — 기본 키 — NOT NULL
  • 주기카드 ID (card_id) — ForeignKey — 외래 키 → 주기카드.주기카드 ID — Integer
  • 이름 (name) — CharField
  • 누적 자원 양 (acc_resource) — IntegerField
  • 자원 누적 개수 (add_resource) — IntegerField
  • 라운드 (round) — IntegerField — NOT NULL
  • 자원칸인지아닌지 (is_res) — BooleanField — NOT NULL
  • 이미누군가존재 (is_occupied) — BooleanField — NOT NULL

행동칸 자원 (action_resource)

  • 행동칸 ID (action_id) — ForeignKey — 외래 키 → 행동 칸 (주기카드 포함).행동칸 ID — NOT NULL
  • 자원 ID (resource_id) — ForeignKey — 외래 키 → 자원.자원 ID — NOT NULL
  • 개수 (num) — IntegerField

활성화 비용 (activation_cost)

  • 카드 ID (card_id) — ForeignKey — 외래 키 → 카드.카드 ID — NOT NULL — Integer
  • 자원 ID (resource_id) — ForeignKey — 외래 키 → 자원.자원 ID — NOT NULL
  • 개수 (resource_num) — IntegerField — NOT NULL