홈페이지ERD

테이블 (4)

Likes (Untitled4)

  • like_id (좋아요) — INT — 기본 키 — NOT NULL
  • post_id (포스트아이디) — INT — 외래 키 → post.post_id — NOT NULL
  • user_id (유저테이블아이디) — INT — 외래 키 → post.user_id — NOT NULL
  • createdAt (Field) — DATE — NOT NULL
  • updatedAt (Field2) — DATE — NOT NULL

comment (Untitled3)

  • comment_id (코멘트아이디) — INT — 기본 키 — NOT NULL
  • post_id (포스트아이디) — INT — 외래 키 → post.post_id — NOT NULL
  • user_id (유저테이블아이디) — INT — 외래 키 → post.user_id — NOT NULL
  • user_id (유저테이블아이디2) — INT — 외래 키 → user.user_id — NOT NULL
  • comment (코멘트) — string — NOT NULL
  • createdAt (Field) — DATE — NOT NULL
  • updatedAt (Field2) — DATE — NOT NULL

post (Untitled2)

  • post_id (포스트아이디) — INT — 기본 키 — NOT NULL
  • user_id (유저테이블아이디) — INT — 외래 키 → user.user_id — NOT NULL
  • title (게시판 제목) — string — NOT NULL
  • content (게시판 내용) — string — NOT NULL
  • createdAt (Field) — DATE — NOT NULL
  • updatedAt (Field2) — DATE — NOT NULL

user (Untitled)

  • user_id (유저테이블아이디) — INT — 기본 키 — NOT NULL
  • login_id (아이디) — string — NOT NULL
  • password (비밀번호) — string — NOT NULL
  • email (이메일) — string — NOT NULL
  • nickname (유저닉네임) — string — NOT NULL
  • mySNS (SNS) — string
  • myphoto (사진) — string
  • introduction (자기소개) — string
  • createdAt (Field) — DATE — NOT NULL
  • updatedAt (Field2) — DATE — NOT NULL