kors

테이블 (6)

계정 (account)

  • 유저 아이디 (id) — text — 기본 키 — NOT NULL
  • 주막id (restaurant) — int — 외래 키 → 주막.id — NOT NULL
  • 비밀번호 (password) — varchar(256) — NOT NULL

로그 (log)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 주막 (restaurant) — int — 외래 키 → 주막.id — NOT NULL
  • 음식 (food) — text — 외래 키 → 메뉴.id — NOT NULL
  • 개수 (count) — int — NOT NULL

메뉴 (menu)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 주막id (restaurant) — int — 외래 키 → 주막.id — NOT NULL
  • 음식명 (food) — text — NOT NULL
  • 품절여부 (sold_out) — bool — NOT NULL

식탁 (table)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 주막id (restaurant) — int — 외래 키 → 주막.id — NOT NULL
  • 고유 해시값 (hash) — varchar(256) — NOT NULL

음식 큐 (queue)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 식탁 (table) — int — 외래 키 → 식탁.id — NOT NULL
  • 음식 (food) — int — 외래 키 → 메뉴.id — NOT NULL
  • 개수 (count) — int — NOT NULL

주막 (restaurant)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 주막명 (name) — text — NOT NULL