11

테이블 (5)

게시글 (Article)

  • 글번호 (id) — number — 기본 키 — NOT NULL
  • 유저번호 (user_id) — number — 외래 키 → 유저.유저번호 — NOT NULL
  • 게시글 제목 (title) — char(100)
  • 게시글 내용 (content) — text
  • 작성일 (created) — date
  • 수정일 (updated) — date

댓글 (Untitled2)

  • 댓글번호 (Key) — number — 기본 키 — NOT NULL
  • 글번호 (Key2) — number — 외래 키 → 게시글.글번호 — NOT NULL
  • 유저번호 (Key3) — number — 외래 키 → 유저.유저번호 — NOT NULL
  • 댓글내용 (Field) — char(200)

유저 (Untitled3)

  • 유저번호 (Key) — number — 기본 키 — NOT NULL
  • 유저아이디 (Field) — char(255)

좋아요 (Untitled4)

  • 글번호 (Key2) — number — 외래 키 → 게시글.글번호 — NOT NULL
  • 유저번호 (Key3) — number — 외래 키 → 유저.유저번호 — NOT NULL

팔로우 (Untitled5)

  • 프롬 (Key) — number — 외래 키 → 유저.유저번호 — NOT NULL
  • 투 (Key2) — number — 외래 키 → 유저.유저번호 — NOT NULL