Pop

Tables (5)

Comments (댓글)

  • 아아디 (id) — integer — Primary key — NOT NULL
  • 사용자이름 (username) — character — Foreign key → Users.아이디 — NOT NULL
  • 게시글이름 (postId) — integer — Foreign key → Posts.사용자이름 — NOT NULL
  • 생성날짜 (createdAt) — timestamp — NOT NULL
  • 수정날짜 (updatedAt) — timestamp — NOT NULL
  • 식별자 (identifier) — character — NOT NULL
  • 내용 (body) — character — NOT NULL

Posts (게시글)

  • 아아디 (id) — integer — Primary key — NOT NULL
  • 사용자이름 (username) — FK — Foreign key → Users.아이디 — NOT NULL
  • 커뮤니티이름 (subName) — character — Foreign key → Subs.아이디 — NOT NULL
  • 생성날짜 (createdAt) — timestamp — NOT NULL
  • 수정날짜 (updatedAt) — timestamp — NOT NULL
  • 식별자 (identifier) — character — NOT NULL
  • 주제 (title) — charcater — NOT NULL
  • 제목 (slug) — character — NOT NULL
  • 내용 (body) — character
  • 이미지경로 (imageUrn) — character

Subs (커뮤니티)

  • 아이디 (id) — integer — Primary key — NOT NULL
  • 사용자이름 (username) — character — Foreign key → Users.아이디 — NOT NULL
  • 생성날짜 (createdAt) — timestamp — NOT NULL
  • 수정날짜 (updatedAt) — timestamp — NOT NULL
  • 이름 (name) — character — NOT NULL
  • 주제 (title) — character — NOT NULL
  • 설명 (description) — text
  • 이미지경로 (imageUrn) — character
  • 배너경로 (bannerUrn) — character

Users (사용자)

  • 아이디 (id) — PK — Primary key
  • 생성날짜 (createdAt) — timestamp — NOT NULL
  • 수정날짜 (updatedAt) — timestamp — NOT NULL
  • 이메일 (email) — character — NOT NULL
  • 사용자이름 (username) — character — NOT NULL
  • 비밀번호 (password) — character — NOT NULL

Votes (투표)

  • 아아디 (id) — integer — Primary key — NOT NULL
  • 사용자이름 (username) — character — Foreign key → Users.아이디 — NOT NULL
  • 게시글아이디 (postId) — integer — Foreign key → Posts.아아디
  • 댓글아아디 (commentId) — integer — Foreign key → Comments.아아디
  • 생성날짜 (createdAt) — timestamp — NOT NULL
  • 수정날짜 (updatedAt) — timestamp — NOT NULL
  • 값 (value) — integer — NOT NULL