test

Tables (4)

comments

  • comment_id — BIGINT
  • post_id — BIGINT — Foreign key → posts.post_id — NOT NULL
  • user_id — BIGINT — Foreign key → users.user_id — NOT NULL
  • content — TEXT — NOT NULL
  • created_at — DATETIME — NOT NULL
  • updated_at — DATETIME

post_likes

  • like_id — BIGINT
  • post_id — BIGINT — NOT NULL
  • user_id — BIGINT — Foreign key → users.user_id — NOT NULL
  • created_at — DATETIME — Foreign key → posts.post_id — NOT NULL

posts

  • post_id — BIGINT
  • user_id — BIGINT — Foreign key → users.user_id — NOT NULL
  • title — VARCHAR(26) — NOT NULL
  • content — TEXT — NOT NULL
  • image — VARCHAR(500)
  • view_count — INT — NOT NULL
  • created_at — DATETIME — NOT NULL
  • updated_at — DATETIME

users

  • user_id — BIGINT
  • email — VARCHAR(255) — NOT NULL
  • password — VARCHAR(255) — NOT NULL
  • nickname — VARCHAR(20) — NOT NULL
  • profile_image — VARCHAR(500)