step04_mini

테이블 (4)

게시판 (Board)

  • id (Key) — Integer — 기본 키 — NOT NULL
  • cat_id (Key2) — Integer — 외래 키 → 카테고리.id — NOT NULL
  • user_id (Key3) — Integer — 외래 키 → 사용자.id — NOT NULL
  • name (Field) — String
  • context (Field2) — String
  • viewCount (Field3) — Integer
  • image (Field4) — String

댓글 (Comment)

  • id (Key) — Integer — 기본 키 — NOT NULL
  • user_id (Key3) — Integer — 외래 키 → 사용자.id — NOT NULL
  • board_id (Key2) — Integer — 외래 키 → 게시판.id — NOT NULL
  • context (Field) — String

사용자 (User)

  • id (Key) — Integer — 기본 키 — NOT NULL
  • name (Field) — String
  • email (Field2) — String
  • grade (Field3) — String

카테고리 (Category)

  • id (Key) — Integer — 기본 키 — NOT NULL
  • name (Field) — String