voting schema

테이블 (4)

Untitled (Voting)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (title) — varchar
  • Field (description) — text
  • Field (end_date) — date
  • Field (is_ongoing) — boolean
  • Field (created_at) — datetime
  • Field (deleted_at) — datetime
  • Field (author) — varchar

Untitled (Vote_item)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (voting_id) — int — 외래 키 → Untitled.Key — NOT NULL
  • Field (name) — varchar

Untitled (Voting_User)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (user_id) — int — 외래 키 → 사용자.Key — NOT NULL
  • Key (voting_id) — int — 외래 키 → Untitled.Key — NOT NULL
  • Field (selected_item_id) — int

사용자 (User)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (email) — varchar
  • Field2 (password) — varchar