Assignment

Tables (3)

Likes (Untitled3)

  • id (Key) — bigint — Primary key — NOT NULL
  • post_id (게시글 아이디) — bigint — Foreign key → Post.id — NOT NULL
  • user_id (사용자 아이디) — bigint — Foreign key → Users.id — NOT NULL

Post (Untitled2)

  • id (게시글 아이디) — bigint — Primary key — NOT NULL
  • title (게시글 제목) — varchar
  • content (게시글 내용) — text
  • like_count (게시글 좋아요 수) — int
  • created_at (작성 시각) — datetime
  • updated_at (수정 시각) — datetime
  • user_id (사용자 아이디) — bigint — Foreign key → Users.id — NOT NULL

Users (Untitled)

  • id (사용자 아이디) — bigint — Primary key — NOT NULL
  • nickname (닉네임) — varchar
  • email (Field2) — varchar