SellingCommunity_ERD

Tables (6)

CommunityPost (Untitled2)

  • 아이디 (id) — not null — Primary key — NOT NULL
  • 유저 아이디 (user_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 제목 (title) — not null
  • 내용 (content) — not null
  • 사진 (image) — null

Like (Untitled6)

  • 아이디 (id) — not null — Primary key — NOT NULL
  • 유저아이디 (user_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 게시글아이디 (community_post_id) — not null — Foreign key → user.아이디 — NOT NULL

Purchase (Untitled5)

  • 아이디 (id) — not null — Primary key — NOT NULL
  • 유저아이디 (user_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 판매글아이디 (sale_post_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 구매일자 (purchase_date) — not null
  • 구매수량 (quantity) — not null

SalePost (Untitled3)

  • 아이디 (id) — not null — Primary key — NOT NULL
  • 사용자 아이디 (user_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 제목 (title) — not null
  • 내용 (content) — not null
  • 가격 (price) — not null
  • 사진 (image) — null

comment (Untitled4)

  • 아이디 (id) — not null — Primary key — NOT NULL
  • 작성자 유저 (user_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 게시글 아이디 (community_post_id) — not null — Foreign key → user.아이디 — NOT NULL
  • 내용 (content) — not null

user (Untitled)

  • 아이디 (id) — not null — Primary key — NOT NULL
  • 비밀번호 (password) — not null
  • 이름 (name) — not null
  • 나이 (age) — not null
  • 주소 (address) — not null
  • 회원 아이디 (username) — not null