valanse
Tables (6)
Comment (댓글)
- 댓글 id (id) — Not null — Primary key — NOT NULL
- 댓글 모음 id (id2) — Not null — Foreign key → CommentGroup.댓글 모음 id — NOT NULL
- 투표 id (id22) — Not null — Foreign key → CommentGroup.투표 id — NOT NULL
- 회원 id (id222) — Not null — Foreign key → CommentGroup.회원 id — NOT NULL
- 투표 옵션 id (id4) — Not null — Foreign key → CommentGroup.투표 옵션 id — NOT NULL
- 회원 id (id23) — Not null — Foreign key → CommentGroup.회원 id — NOT NULL
- 투표 옵션 id (id2222) — Not null — Foreign key → CommentGroup.투표 옵션 id — NOT NULL
- 제목 (title) — Not null
- 내용 (content) — Not null
- 좋아요 개수 (likecount) — Not null
- 대댓글 개수 (replyCount) — Not null
- 삭제 시간 (deletedAt) — Not null
CommentGroup (댓글 모음집)
- 댓글 모음 id (id) — Not null — Primary key — NOT NULL
- 투표 id (id2) — Not null — Foreign key → Vote.투표 id — NOT NULL
- 회원 id (id22) — Not null — Foreign key → Vote.회원 id — NOT NULL
- 투표 옵션 id (id4) — Not null — Foreign key → Vote.투표 옵션 id — NOT NULL
- 회원 id (id23) — Not null — Foreign key → Vote.회원 id — NOT NULL
- 투표 옵션 id (id222) — Not null — Foreign key → Vote.투표 옵션 id — NOT NULL
- 총 댓글 개수 (totalCommmentCount) — Not null
Member (회원)
- 회원 id (id) — Not null — Primary key — NOT NULL
- 카카오 소셜 id (socialId) — Not null
- 카카오 이메일 (email) — Nullable
- 카카오 이름 (name) — Not null
- 프로필 이미지 (profile_image_url) — Not null
- 회원 role (role) — Not null
- 회원 타입 (socialType) — Not null
- 카카오 접근 토큰 (kakaoAccessToken) — Not null
- 카카오 리프래시 토큰 (kakaoRefreshToken) — Not null
- 닉네임 (nickName) — nullable
- Field
MemberProfile (회원 프로필)
- 회원 id (id) — Not null — Foreign key → Member.회원 id — NOT NULL
- 투표 옵션 id (id2) — Not null — Foreign key → VoteOption.투표 옵션 id — NOT NULL
- 회원 id (id22) — Not null — Foreign key → VoteOption.회원 id — NOT NULL
- 투표 옵션 id (id222) — Not null — Foreign key → VoteOption.투표 옵션 id — NOT NULL
- 닉네임 (nickname) — nullable
- 성별 (gender) — nullable
- MBTI E/I (mbtiIe) — nullable
- MBTI T/F (mbtiTf) — nullable
- Mbti (mbti) — nullable
Vote (투표)
- 투표 id (id) — Not null — Primary key — NOT NULL
- 회원 id (id2) — Not null — Foreign key → Member.회원 id — NOT NULL
- 투표 옵션 id (id4) — Not null — Foreign key → VoteOption.투표 옵션 id — NOT NULL
- 회원 id (id23) — Not null — Foreign key → VoteOption.회원 id — NOT NULL
- 투표 옵션 id (id222) — Not null — Foreign key → VoteOption.투표 옵션 id — NOT NULL
- 카테고리 (voteCategory) — Not null
- 제목 (title) — Not null
- 상세 내용 (content) — Not null
- 총 투표 수 (totalVoteCount) — Not null
- 마지막 계산 시점 (reactivityUpdatedAt) — Not null
- 반응성 계산 점수 (reactivityScore) — Not null
- 고정 상태 (pinType) — Not null
- Field
- 투표 id (id3) — Not null — Foreign key → Vote.투표 id — NOT NULL
- 회원 id (id22) — Not null — Foreign key → Vote.회원 id — NOT NULL
- 투표 옵션 id (id42) — Not null — Foreign key → Vote.투표 옵션 id — NOT NULL
VoteOption (투표 옵션)
- 투표 옵션 id (id) — Not null — Primary key — NOT NULL
- 회원 id (id2) — Not null — Foreign key → MemberProfile.회원 id — NOT NULL
- 투표 옵션 id (id22) — Not null — Foreign key → MemberProfile.투표 옵션 id — NOT NULL
- 내용 (content) — Not null
- 투표 개수 (voteCount) — Not null
- 투표 선택지 (label) — Not null
- Field