efub_toy_project

Tables (5)

comment (댓글)

  • 댓글ID (comment_id) — NOT NULL, AUTO_INCREMENT — Primary key — NOT NULL
  • 내용 (content) — NOT NULL
  • 트윗 아이디 (tweet_id) — NOT NULL — Foreign key → tweet.트윗 아이디 — NOT NULL
  • 사용자 아이디 (writer_id) — NOT NULL — Foreign key → user.사용자 아이디 — NOT NULL

follow (팔로우)

  • 팔로워 아이디 (follower_id) — NOT NULL — Foreign key → user.사용자 아이디 — NOT NULL
  • 팔로우 아이디 (following_id) — NOT NULL — Foreign key → user.사용자 아이디 — NOT NULL

tweet (트윗)

  • 트윗 아이디 (tweet_id) — NOT NULL, AUTO_INCREMENT — Primary key — NOT NULL
  • 내용 (content)
  • 생성일자 (created_at) — NOT NULL
  • 사용자 아이디 (user_id) — NOT NULL, — Foreign key → user.사용자 아이디 — NOT NULL

tweet_like (트윗 좋아요)

  • 트윗 좋아요ID (tweet_like_id) — NOT NULL, AUTO_INCREMENT — Primary key — NOT NULL
  • 사용자 아이디 (user_id) — UNIQUE(user_id, tweet_id) — Foreign key → user.사용자 아이디 — NOT NULL
  • 트윗 아이디 (tweet_id) — UNIQUE(user_id, tweet_id) — Foreign key → tweet.트윗 아이디 — NOT NULL

user (사용자)

  • 사용자 아이디 (user_id) — NOT NULL, AUTO_INCREMENT — Primary key — NOT NULL
  • 사용자 이름 (nickname) — NOT NULL
  • 사용자 핸들 (handle) — NOT NULL, UNIQUE
  • 소개 (bio)
  • 가입일 (join_at) — NOT NULL
  • 프로필이미지 (profile_image)