cipher_quest

Tables (6)

comment (댓글)

  • 댓글 구분 id (commentid) — long — Primary key — NOT NULL
  • 게시물 구분 id (postid) — long — Foreign key → post.게시물 구분 id — NOT NULL
  • 게시물 생성 유저 (postwriterid) — long — Foreign key → post.생성 유저 — NOT NULL
  • 댓글 내용 (content) — String
  • 댓글 생성 날짜 (createddate) — String
  • 좋아요 수 (likecount) — long
  • 싫어요 수 (dislikecount) — long
  • 부모 댓글 확인 (parent) — comment — Foreign key → comment.댓글 구분 id — NOT NULL

notification (알람)

  • 알람 구분 id (id) — long — Primary key — NOT NULL
  • 알람 받은 사용자 (receiver) — long — Foreign key → user.사용자 구분 id — NOT NULL
  • 알람 유형 (type) — Enum
  • 알람 메시지 (message) — String
  • 읽음 여부 (isRead) — Boolean
  • 생성 시간 (createdAt) — String

post (게시물)

  • 게시물 구분 id (postid) — long — Primary key — NOT NULL
  • 생성 유저 (writerid) — long — Foreign key → user.사용자 구분 id — NOT NULL
  • 게시물 제목 (title) — String
  • 게시물 내용 (content) — String
  • 생성 날짜 (createdate) — String
  • 최근 수정 날짜 (updatedate) — String
  • 좋아요 수 (likecount) — long
  • 싫어요 수 (dislikecount) — long
  • 삭제 여부 (isdeleted) — boolean
  • 카테고리 (category) — Category

user (사용자)

  • 사용자 구분 id (id) — long — Primary key — NOT NULL
  • 로그인 시 id (userid) — String
  • 회원 이름 (username) — String
  • 로그인 시 비밀번호 (userpassword) — String
  • 생성 날짜 (createdate) — String
  • 유저 역할 (role) — Role
  • 유저 티어 (tier) — Tier
  • 유저 점수 (score) — long

user-comment like (댓글 좋아요)

  • 사용자 구분 id (id) — long — Foreign key → user.사용자 구분 id — NOT NULL
  • 댓글 구분 id (commentid) — long — Foreign key → comment.댓글 구분 id — NOT NULL
  • 게시물 구분 id (postid) — long — Foreign key → comment.게시물 구분 id — NOT NULL
  • 게시물 생성 유저 (postwriterid) — long — Foreign key → comment.게시물 생성 유저 — NOT NULL

user-post emotion (게시물 감정표현)

  • 사용자 구분 id (id) — long — Foreign key → user.사용자 구분 id — NOT NULL
  • 게시물 구분 id (postid) — long — Foreign key → post.게시물 구분 id — NOT NULL
  • 게시물 생성 유저 (writerid) — long — Foreign key → post.생성 유저 — NOT NULL