snackvote
Tables (7)
Issue (건의사항)
- Key (주키) — int — Primary key — NOT NULL
- authorId (작성 유저 Id) — int — Foreign key → user.Key — NOT NULL
- createdAt (생성날짜) — Datetime(6) — NOT NULL
- updatedAt (수정 날짜) — Datetime(6) — NOT NULL
- deletedAt (삭제 날짜) — Datetime(6)
- subject (제목) — VARCHAR(255) — NOT NULL
- hasAnswer (운영자 답변 여부) — Tinyint — NOT NULL
- contentCount (답변 개수) — ENUMint — NOT NULL
agenda (투표 안건)
- Key (주키) — int — Primary key — NOT NULL
- authorId (작성한 유저 주키) — int — Foreign key → user.Key — NOT NULL
- createdAt (생성날짜) — Datetime(6) — NOT NULL
- updatedAt (수정 날짜) — Datetime(6) — NOT NULL
- deletedAt (삭제 날짜) — Datetime(6)
- subject (주제) — VARCHAR(255) — NOT NULL
- category (카테고리) — ENUM — NOT NULL
- seriousness (투표의 심각한 정도) — int — NOT NULL
comments (댓글)
- Key (주키) — int — Primary key — NOT NULL
- agendaId (댓글이 작성된 투표 주키) — int — Foreign key → agenda.Key — NOT NULL
- authorId (댓글을 작성한 유저 주키) — int — Foreign key → user.Key — NOT NULL
- createdAt (생성날짜) — Datetime(6) — NOT NULL
- updatedAt (수정 날짜) — Datetime(6) — NOT NULL
- deletedAt (삭제 날짜) — Datetime(6)
- content (댓글 내용) — VARCHAR(255) — NOT NULL
- bundleId (댓글 인식번호 (대댓글 인식용)) — int — NOT NULL
- depth (대댓글 여부) — int — NOT NULL
issueContent (건의사항 내 MD 코멘트)
- Key (주키) — int — Primary key — NOT NULL
- issueId (종속된 건의사항 주키) — int — Foreign key → Issue.Key — NOT NULL
- authorId (작성한 유저 주키) — int — Foreign key → user.Key — NOT NULL
- createdAt (생성날짜) — Datetime(6) — NOT NULL
- updatedAt (수정 날짜) — Datetime(6) — NOT NULL
- deletedAt (삭제 날짜) — Datetime(6)
- content (md 텍스트) — VARCHAR(255) — NOT NULL
opinion (안건 내 의견)
- Key (주키) — int — Primary key — NOT NULL
- agendaId (종속된 투표 안건 주키) — int — Foreign key → agenda.Key — NOT NULL
- createdAt (생성날짜) — Datetime(6) — NOT NULL
- updatedAt (수정 날짜) — Datetime(6) — NOT NULL
- deletedAt (삭제 날짜) — Datetime(6)
- opinionText (의견 내용) — VARCHAR(255) — NOT NULL
- opiniontype (의견 타입 (좌, 우)) — Tinyint — NOT NULL
- voteUserCount (투표한 유저 수) — int — NOT NULL
user (유저)
- Key (주키) — int — Primary key — NOT NULL
- createdAt (생성날짜) — Datetime(6) — NOT NULL
- updatedAt (수정 날짜) — Datetime(6) — NOT NULL
- deletedAt (삭제 날짜) — Datetime(6)
- email (이메일) — VARCHAR(255) — NOT NULL
- name (별명) — VARCHAR(255) — NOT NULL
- role (권한) — ENUM — NOT NULL
- password (비밀번호) — VARCHAR(255)_ — NOT NULL
- sex (성별) — VARCHAR(255) — NOT NULL
- birth (출생일) — Datetime(6) — NOT NULL
vote (투표)
- id (투표 주키) — int — Primary key — NOT NULL
- userId (투표한 유저 주키) — int — Foreign key → user.Key — NOT NULL
- opinionId (투표한 의견 주키) — int — Foreign key → opinion.Key — NOT NULL
- createdAt (생성날짜) — Datetime(6)