무비

테이블 (7)

Movie (Untitled2)

  • id (Key2) — 기본 키 — NOT NULL
  • genre (Key) — 외래 키 → 장르.id — NOT NULL
  • user (Key3) — 외래 키 → 좋아요.id — NOT NULL
  • 제목 (Field) — char
  • 평점 (Field2) — int
  • 포스터 (Field3) — image
  • adult (Field4) — boolean
  • overview (Field6) — text

User (Untitled)

  • id (Key3) — 기본 키 — NOT NULL
  • genre (Key) — 외래 키 → 장르.id — NOT NULL
  • movie (Key2) — 외래 키 → 좋아요.id — NOT NULL
  • username (Field) — char
  • password (Field2) — int
  • is_adult (Field4) — boolean

article (Untitled3)

  • id (Key2) — 기본 키 — NOT NULL
  • user (Key3) — 외래 키 → User.id — NOT NULL
  • title (Field) — char
  • content (Field2) — text
  • created_at (Field3) — datetime
  • updated_at (Field4) — datetime

comment (Untitled4)

  • id (Key) — 기본 키 — NOT NULL
  • article (Key2) — 외래 키 → article.id — NOT NULL
  • user (Key32) — 외래 키 → User.id — NOT NULL
  • content (Field) — text
  • created_at (Field2) — datetime
  • updated_at (Field3) — datetime

영화평점 (Untitled5)

  • id (Key) — 기본 키 — NOT NULL
  • user (Key3) — 외래 키 → User.id — NOT NULL
  • Movie (Key2) — 외래 키 → Movie.id — NOT NULL
  • 평점 (Field) — int
  • content (Field2) — char
  • created_at (Field3) — datetime
  • updated_at (Field4) — datetime

장르 (Untitled6)

  • id (Key) — 기본 키 — NOT NULL
  • movie (Key2) — 외래 키 → Movie.id — NOT NULL
  • user (Key3) — 외래 키 → User.id — NOT NULL
  • name (Field) — char

좋아요 (Untitled7)

  • id (Key) — 기본 키 — NOT NULL
  • created_at (Field) — date