everytime

테이블 (5)

게시글 (posts)

  • 게시글아이디 (id) — long — 기본 키 — NOT NULL — auto_increment
  • 유저아이디 (user_id) — long — 외래 키 → 유저.유저아이디 — NOT NULL — auto_increment
  • 제목 (title) — string — NOT NULL
  • 내용 (content) — string — NOT NULL
  • 익명여부 (is_anonymous) — boolean — NOT NULL
  • 유형 (type) — string — NOT NULL

게시글좋아요 (post_likes)

  • 게시글좋아요아이디 (id) — 기본 키 — NOT NULL
  • 유저아이디 (user_id) — long — 외래 키 → 유저.유저아이디 — NOT NULL — auto_increment
  • 게시글아이디 (post_id) — long — 외래 키 → 게시글.게시글아이디 — NOT NULL — auto_increment
  • 삭제여부 (is_deleted) — boolean — NOT NULL

댓글 (comments)

  • 댓글아이디 (id) — long — 기본 키 — NOT NULL — auto_increment
  • 게시글아이디 (post_id) — long — 외래 키 → 게시글.게시글아이디 — NOT NULL — auto_increment
  • 유저아이디 (user_id) — long — 외래 키 → 유저.유저아이디 — NOT NULL — auto_increment
  • 내용 (content) — string — NOT NULL
  • 익명여부 (is_anonymous) — boolean — NOT NULL

댓글 좋아요 (comment_likes)

  • Key (id) — long — 기본 키 — NOT NULL — auto_increment
  • 유저아이디 (user_id) — long — 외래 키 → 유저.유저아이디 — NOT NULL — auto_increment
  • 댓글아이디 (comment_id) — long — 외래 키 → 댓글.댓글아이디 — NOT NULL — auto_increment
  • 삭제여부 (is_deleted) — boolean — NOT NULL

유저 (users)

  • 유저아이디 (id) — long — 기본 키 — NOT NULL — auto_increment
  • 이메일 (username) — string — NOT NULL
  • 비밀번호 (password) — string — NOT NULL
  • 이름 (name) — string — NOT NULL
  • 리프레시토큰 (refresh_token) — string
  • 생성일자 (created_at) — date — NOT NULL
  • 수정일자 (modified_at) — date