instagram

Tables (6)

Comment (댓글)

  • 댓글ID (commentId) — Primary key — NOT NULL
  • 게시물ID (postId) — Foreign key → Post.게시물ID — NOT NULL
  • 내용 (content)
  • 생성일시 (createdAt)
  • 수정일시 (updatedAt)

Comment_Like (댓글_좋아요)

  • 좋아요ID (likeId) — Primary key — NOT NULL
  • 유저ID (userId) — Foreign key → User.유저ID — NOT NULL
  • 댓글ID (commentId) — Foreign key → Comment.댓글ID — NOT NULL

Follow (팔로우 정보)

  • 팔로잉 정보 ID (id) — Primary key — NOT NULL
  • 팔로잉유저ID (followingId) — Foreign key → User.유저ID — NOT NULL
  • 팔로워유저ID (followerId) — Foreign key → User.유저ID — NOT NULL

Post (게시물)

  • 게시물ID (postId) — Primary key — NOT NULL
  • 내용 (content)
  • 이미지 (image)
  • 생성일시 (createdAt)
  • 수정일시 (updatedAt)

Post_Like (게시물_좋아요)

  • 좋아요ID (likeId) — Primary key — NOT NULL
  • 게시물ID (postId) — Foreign key → Post.게시물ID — NOT NULL
  • 유저ID (userId) — Foreign key → User.유저ID — NOT NULL

User (사용자)

  • 유저ID (userId) — Primary key — NOT NULL
  • 닉네임 (nickname)
  • 이름 (name)
  • 성별 (gender)
  • 소개글 (intro)
  • 웹사이트 (link)