[포테] ERD
테이블 (5)
Question
- questionId (Key) — Long — 기본 키 — NOT NULL
- userId (Key2) — Long — 외래 키 → User.userId — NOT NULL
- statement (문제(텍스트)) — String — NOT NULL
- image (문제(그림)) — String
- category (문제유형) — String — NOT NULL
- answer (답) — String
- tags (태그) — Set<String>
- memo (답안,설명) — String
- createdAt (생성날짜) — TimeStamp — NOT NULL
- deletedAt (삭제날짜)
QuestionSet
- questionSetId (Key) — Long — 기본 키 — NOT NULL
- workbookId (Key2) — 외래 키 → WorkBook.workbookId — NOT NULL
- questionId (Key3) — Long — 외래 키 → Question.questionId — NOT NULL
- createdAt (생성 일시) — TimeStamp — NOT NULL
- deletedAt (삭제 일시) — TimeStamp
Tag
- tagId (Key) — 기본 키 — NOT NULL
- questionId (Key2) — Long — 외래 키 → Question.questionId — NOT NULL
- name (태그명) — NOT NULL
User
- userId (Key (기기번호)) — String — 기본 키 — NOT NULL
- createdAt (가입날짜) — TimeStamp
- deletedAt (탈퇴날짜) — TimeStamp
WorkBook
- workbookId (Key) — 기본 키 — NOT NULL
- userId (Key2) — String — 외래 키 → User.userId — NOT NULL
- title (문제집 제목) — String — NOT NULL
- description (문제집 설명) — String
- createdAt (생성 일시) — TimeStamp — NOT NULL
- deletedAt (삭제 일시) — TimeStamp