미니프로젝트

테이블 (8)

comment

  • comment_id — int — 기본 키 — NOT NULL
  • content — varchar(200)
  • user_id — int — 외래 키 → user.user_id — NOT NULL
  • post_id — int — 외래 키 → post.post_id — NOT NULL

company

  • company_id — 기본 키 — NOT NULL
  • company_info
  • Recruitment

follow

  • follow_id — int — 기본 키 — NOT NULL
  • follower_id — int — 외래 키 → user.user_id — NOT NULL
  • following_id — int — 외래 키 → user.user_id — NOT NULL

image

  • image_id — int — 기본 키 — NOT NULL
  • file_name — varchar(200)
  • post_id — int — 외래 키 → post.post_id — NOT NULL

post

  • post_id — int — 기본 키 — NOT NULL
  • content — blob
  • user_id — int — 외래 키 → user.user_id — NOT NULL

post_hashtag

  • post_hashtag_id — int — 기본 키 — NOT NULL
  • post_id — int — 외래 키 → post.post_id — NOT NULL
  • hashtag

user

  • user_id — int — 기본 키 — NOT NULL
  • email — varchar(50)
  • password — varchar(200)
  • phone — varchar(11)
  • gender — enum
  • birth — timestamp
  • name — varchar(10) — NOT NULL
  • nickname — varchar(10)
  • website — varchar(50)
  • introduce — varchar(100)
  • profile_image — blob

user_post_like

  • user_post_like_id — int — 기본 키 — NOT NULL
  • user_id — int — 외래 키 → user.user_id — NOT NULL
  • post_id — int — 외래 키 → post.post_id — NOT NULL