Ildan's word
Tables (14)
admin_note (관리자 노트)
- id — BIGINT — Primary key — NOT NULL
- 제목 (title) — VARCHAR(100) — NOT NULL
- 내용 (content) — VARCHAR(255) — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
board (게시판)
- id — BIGINT — Primary key — NOT NULL
- 공지사항 여부 (is_notice) — BOOLEAN — NOT NULL
- 제목 (title) — VARCHAR(40) — NOT NULL
- 좋아요 수 (like_count) — BIGINT — NOT NULL
- 댓글 수 (comment_count) — BIGINT — NOT NULL
- user_id — BIGINT — Foreign key → user.id — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
board_comment (게시판 댓글)
- id — BIGINT — Primary key — NOT NULL
- 내용 (content) — VARCHAR(255) — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
- 게시판 ID (board_id) — BIGINT — Foreign key → board.id — NOT NULL
board_content
- id — BIGINT — Primary key — NOT NULL
- content — BLOB — NOT NULL
- create_at — DATETIME — NOT NULL
- modified_at — DATETIME — NOT NULL
- board_id — BIGINT — Foreign key → board.id — NOT NULL
board_like (게시판 좋아요)
- id — BIGINT — Primary key — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
- 게시판 ID (board_id) — BIGINT — Foreign key → board.id — NOT NULL
frequently_question (자주 묻는 질문)
- id — BIGINT — Primary key — NOT NULL
- 제목 (title) — VARCHAR(100) — NOT NULL
- 답변 (reply) — BLOB — NOT NULL
- 카테고리 (category) — VARCHAR(50) — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
game_history (게임 전적)
- id — BIGINT — Primary key — NOT NULL
- 승리한 유저 (winner_id) — BIGINT — Foreign key → user.id — NOT NULL
- 패배한 유저 (looser_id) — BIGINT — Foreign key → user.id — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
user (회원)
- id — BIGINT — Primary key — NOT NULL
- 이메일 (username) — VARCHAR(100) — NOT NULL
- 비밀번호 (password) — VARCHAR(255) — NOT NULL
- 닉네임 (nickname) — VARCHAR(20) — NOT NULL
- 이미지 URL (profile_image) — VARCHAR(255) — NOT NULL
- OAuth 공급자 (provider) — VARCHAR(20)
- 권한 (role) — ENUM('admin', 'user') — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
user_advice (1:1 문의)
- id — BIGINT — Primary key — NOT NULL
- 카테고리 (category) — VARCHAR(50) — NOT NULL
- 제목 (title) — VARCHAR(100) — NOT NULL
- 내용 (content) — VARCHAR(255) — NOT NULL
- 증거 이미지 URL (evidence_image) — VARCHAR(255)
- 개인정보 동의여부 (personal_consent) — TINYINT — NOT NULL
- 처리 여부 (is_clear) — TINYINT — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
word_storage (단어장)
- id — BIGINT — Primary key — NOT NULL
- 단어장 제목 (title) — VARCHAR(40) — NOT NULL
- 단어장 설명 (description) — VARCHAR(255) — NOT NULL
- 카테고리 ID (category_id) — BIGINT — Foreign key → word_storage_category.id — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
- 좋아요 수 (like_count) — BIGINT — NOT NULL
- 마지막 시험일 (last_test_at) — DATETIME
- 단어장 생성일 (create_at) — DATETIME — NOT NULL
- 단어장 수정일 (modified_at) — DATETIME — NOT NULL
- 단어장 타입 (status) — ENUM('public', 'private', 'official') — NOT NULL
word_storage_category (단어장 카테고리)
- id — BIGINT — Primary key — NOT NULL
- 카테고리명 (name) — VARCHAR(20) — NOT NULL
- 생성일 (create_at) — DATETIME — NOT NULL
- 수정일 (modified_at) — DATETIME — NOT NULL
word_storage_like (단어장 좋아요)
- id — BIGINT — Primary key — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL
- 단어장 ID (word_storage_id) — BIGINT — Foreign key → word_storage.id — NOT NULL
- 좋아요 생성일 (create_at) — DATETIME — NOT NULL
word_storage_wrong_answer (오답노트 안에 들어있는 단어장)
- id — BIGINT — Primary key — NOT NULL
- 단어장 ID (word_storage_id) — BIGINT — Foreign key → word_storage.id — NOT NULL
- 오답노트 ID (wrong_answer_id) — BIGINT — Foreign key → wrong_answer.id — NOT NULL
wrong_answer (오답노트)
- id — BIGINT — Primary key — NOT NULL
- 시험 타입 (test_type) — VARCHAR(45) — NOT NULL
- 걸린 시간 (time) — BIGINT — NOT NULL
- 유저 ID (user_id) — BIGINT — Foreign key → user.id — NOT NULL