SNS_Project

Tables (6)

Comment (Untitled3)

  • 댓글 id (id) — Primary key — NOT NULL
  • 작성자 아이디 (user_id) — Foreign key → User.아이디 — NOT NULL
  • 게시물 id (post_id) — Foreign key → Post.게시물 id — NOT NULL
  • 댓글 (comment)
  • 생성날짜 (created_date)

Follow (Untitled4)

  • 팔로우 id (id) — Primary key — NOT NULL
  • 팔로잉 id (to_id)
  • 팔로워 id (from_id)

Hashtag (Untitled5)

  • 해시태그 id (tag_id) — Primary key — NOT NULL
  • 태그 (tag)

Post (Untitled2)

  • 게시물 id (post_id) — Primary key — NOT NULL
  • 아이디 (user_id) — Foreign key → User.아이디 — NOT NULL
  • 내용 (context)
  • 생성날짜 (created_date)

Post_tag (Untitled6)

  • Key (post_tag_id) — Primary key — NOT NULL
  • 게시물 id (post_id) — Foreign key → Post.게시물 id — NOT NULL
  • 해시태그 id (tag_id) — Foreign key → Hashtag.해시태그 id — NOT NULL

User (Untitled)

  • 아이디 (user_id) — Primary key — NOT NULL
  • 비밀번호 (password)
  • 이름 (name)
  • 계정 생성 날짜 (created_date)