ottduck

Tables (31)

Q&A (Untitled18)

  • qna_id (Key) — int — Primary key — NOT NULL — Q&A 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • qna_title (Field) — varchar(200) — NOT NULL — 제목
  • qna_content (Field2) — text — NOT NULL — 내용
  • qna_created_at (Field3) — datetime — NOT NULL — 작성 날짜
  • qna_updated_at (Field4) — datetime — NOT NULL — 수정 날짜
  • qna_status (Field5) — enum — NOT NULL — Q&A 답변 했는지 상태
  • qna_is_secret (Field6) — enum — NOT NULL — 공개/비공개 여부

Q&A_Comment (Untitled19)

  • qna_comment_id (Key) — int — Primary key — NOT NULL — Q&A 댓글 번호
  • qna_id (Key2) — int — Foreign key → Q&A.qna_id — NOT NULL — Q&A 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • qna_comment_content (Field2) — text — NOT NULL — 내용
  • qna_comment_created_at (Field3) — datetime — NOT NULL — 작성 날짜
  • qna_comment_updated_at (Field4) — datetime — NOT NULL — 수정 날짜

admin_answer (Untitled21)

  • admin_answer_id (Key) — int — Primary key — NOT NULL — 질문 답변 번호
  • qna_id (Key2) — int — Foreign key → Q&A.qna_id — NOT NULL — Q&A 번호
  • admin_answer_content (Field) — text — NOT NULL — 질문 답변 내용
  • admin_answer_created_at (Field2) — datetime — NOT NULL — 생성날짜
  • admin_answer_updated_at (Field3) — datetime — NOT NULL — 수정 날짜

bad_word (Untitled20)

  • bad_word_id (Key) — int — Primary key — NOT NULL — 각 비속어의 번호
  • bad_word_content (Field) — varchar(50) — NOT NULL — 비속어 내용

banner (Untitled24)

  • banner_id (Key) — int — Primary key — NOT NULL — 배너 번호
  • banner_title (Field) — varchar(100) — NOT NULL — 배너 제목
  • banner_content (Field2) — text — NOT NULL — 배너 내용
  • banner_img (Field3) — varchar(500) — NOT NULL — 배너 이미지

bookmark (Untitled23)

  • bookmark_id (Key) — int — Primary key — NOT NULL — 북마크 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • review_id (Key2) — int — Foreign key → review.review_id — NOT NULL — 리뷰게시판 번호
  • bookmark_created_at (Field) — datetime — NOT NULL — 북마크 등록 날짜

chat_member (Untitled11)

  • chat_member_id (key) — int — Primary key — NOT NULL — 채팅 멤버 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • chatroom_id (Key) — int — Foreign key → chatroom.chatroom_id — NOT NULL — 채팅방 번호
  • chat_member_role (Field) — enum — NOT NULL — 회원 권한
  • chat_member_status (Field2) — enum — NOT NULL — 회원 상태

chat_message (Untitled12)

  • chat_message_id (Key) — int — Primary key — NOT NULL — 채팅 메시지 번호
  • chatroom_id (Key2) — int — Foreign key → chatroom.chatroom_id — NOT NULL — 채팅방 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • chat_message_content (Field) — text — NOT NULL — 채팅 내용
  • chat_message_created_at (Field2) — datetime — NOT NULL — 채팅 작성 날짜

chat_warning (Untitled5)

  • chat_warning_id (Key) — int — Primary key — NOT NULL
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • chatroom_id (Key2) — int — Foreign key → chatroom.chatroom_id — NOT NULL — 채팅방 번호
  • chat_message_id (Key3) — int — Foreign key → chat_message.chat_message_id — NOT NULL — 문제가 된 채팅 번호
  • chat_warning_reason (Field) — varchar(200) — NOT NULL — 경고 사유
  • chat_warning_created_at (Field2) — datetime — NOT NULL — 경고날짜

chatroom (Untitled10)

  • chatroom_id (Key) — int — Primary key — NOT NULL — 채팅방 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • chatroom_title (Field) — varchar(100) — NOT NULL — 채팅방 제목
  • chatroom_max_member (Field2) — int — NOT NULL — 채팅방 최대인원수
  • chatroom_created_at (Field3) — datetime — NOT NULL — 채팅방 생성날짜

comment (Untitled7)

  • comment_id (Key) — int — Primary key — NOT NULL — 댓글 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • review_id (Key2) — int — Foreign key → review.review_id — NOT NULL — 리뷰게시판 번호
  • parent_id (Key3) — int — Foreign key → comment.comment_id — 대댓글(자기참조)
  • comment_content (Field) — text — NOT NULL — 대글 내용
  • comment_created_at (Field2) — datetime — NOT NULL — 댓글 작성 날짜
  • comment_updated_at (Field3) — datetime — NOT NULL — 댓글 수정 날짜
  • comment_delete_status (Field4) — enum — NOT NULL — 소프트삭제

comment_like (Untitled8)

  • comment_like_id (Key) — int — Primary key — NOT NULL — 댓글 좋아요 번호
  • comment_id (Key2) — int — Foreign key → comment.comment_id — NOT NULL — 댓글 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호

comment_report (Untitled9)

  • comment_report_id (Key) — int — Primary key — NOT NULL — 신고 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • comment_report_reason (Field) — varchar(200) — NOT NULL — 신고 이유
  • comment_report_status (Field2) — enum — NOT NULL — 신고 상태
  • comment_report_created_at (Field3) — datetime — NOT NULL — 댓글 신고 날짜
  • comment_report_content (Field4) — text — NOT NULL — 댓글 신고 내용
  • comment_id (Key2) — int — Foreign key → comment.comment_id — NOT NULL — 댓글 번호

genre_category (Untitled2)

  • genre_category_id (Key) — int — Primary key — NOT NULL — 카테고리 번호
  • genre_category_name (Field) — varchar(20) — NOT NULL — 카테고리 이름

member (Untitled)

  • member_id (Member_id) — int — Primary key — NOT NULL — 회원 번호
  • member_loginid (Field) — varchar(20) — NOT NULL — 회원 아이디
  • member_pwd (Field2) — varchar(200) — NOT NULL — 회원 비밀번호
  • member_name (Field3) — varchar(20) — NOT NULL — 회원 이름
  • member_email (Field4) — varchar(100) — NOT NULL — 회원 이메일
  • member_phone (Field5) — varchar(20) — 회원 전화번호
  • member_grade (Field6) — enum — NOT NULL — 회원 등급
  • member_point (Field7) — int — 회원 포인트
  • member_delete_status (Field8) — enum — NOT NULL — 회원 상태
  • member_created_at (Field9) — datetime — NOT NULL — 회원가입 날짜
  • member_profile_img (Field10) — varchar(500) — 프로필 이미지
  • member_grade_status (Field11) — enum — NOT NULL — 등업신청
  • member_deleted_at (Field12) — datetime — 탈퇴 통계 대시보드용 탈퇴일시

member_mapping (다대다 관계를 연결하는 매핑 테이블)

  • preference_ mapping_id (Key) — int — Primary key — NOT NULL — 고유 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • genre_category_id (Key3) — int — Foreign key → genre_category.genre_category_id — NOT NULL — 카테고리 번호

member_social (Untitled22)

  • member_social_id (Key) — int — Primary key — NOT NULL — 회원 소셜 아이디(번호)
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • member_social_type (Field) — varchar(10) — 소셜 타입(카카오/구글)
  • member_social_key (Field2) — varchar(200) — NOT NULL — 회원 고유 id

member_withdrawal_log (Untitled29)

  • member_withdrawal_log_id (Key) — INT — Primary key — NOT NULL — 탈퇴 이력 번호
  • member_id (Field2) — INT — NOT NULL — 회원 번호 (FK 아님 — 탈퇴 시 member row 자체가 완전삭제되므로 참조 안 걸음)
  • member_name (Field) — VARCHAR(20) — NOT NULL — 탈퇴 당시 이름 스냅샷
  • withdrawn_at (Field3) — DATETIME — NOT NULL — 탈퇴 승인(완전삭제) 시각

notice (Untitled17)

  • notice_id (Key) — int — Primary key — NOT NULL — 공지사항 번호
  • notice_title (Field) — varchar(200) — NOT NULL — 제목
  • notice_content (Field2) — text — NOT NULL — 내용
  • notice_created_at (Field3) — datetime — NOT NULL — 작성날짜
  • notice_updated_at (Field4) — datetime — NOT NULL — 수정 날짜
  • notice_hit (Field5) — int — NOT NULL — 조회수

notifications (Untitled28)

  • notifications_id (Key) — int — Primary key — NOT NULL
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • notifications_type (Field2) — varchar(50) — NOT NULL — '댓글', '대댓글', '좋아요', '경고', 'QNA답변' 등
  • notifications_content (Field) — varchar(200) — NOT NULL — 알림내용
  • notifications_target_type (Field3) — varchar(20) — 'review', 'comment', 'qna', 'admin_notice', 'warning' 등
  • notifications_read_status (Field5) — enum — NOT NULL — 알림 읽었는지 안읽었는지 상태 표시
  • notifications_created_at (Field6) — datetime — NOT NULL — 알림이 만들어진 시각

point_history (Untitled16)

  • point_history_id (Key) — int — Primary key — NOT NULL — 포인트 변동사항 번호(변동 이력)
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • point_history_amount (Field) — int — NOT NULL — 포인트 변동 숫자
  • point_history_type (Field2) — enum — NOT NULL — 포인트를 얻은 타입
  • point_history_created_at (Field3) — datetime — NOT NULL — 포인트 얻은 날짜
  • point_history_updated_at (Field4) — datetime — NOT NULL — 포인트 사용 날짜
  • point_history_reason (Field5) — varchar(100) — NOT NULL — 좋아요/퀴즈/경고차감/하이라이트 등 사유 구분

qna_comment_report (Untitled26)

  • qna_comment_report_id (Key) — int — Primary key — NOT NULL
  • qna_comment_id (Key2) — int — Foreign key → Q&A_Comment.qna_comment_id — NOT NULL — Q&A 댓글 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • qna_comment_report_reason (Field) — varchar(200) — NOT NULL — Q&A 댓글 신고 이유
  • qna_comment_report_status (Field2) — enum — NOT NULL — Q&A 댓글 신고 상태
  • qna_comment_report_created_at (Field3) — datetime — NOT NULL — Q&A 댓글 신고 날짜
  • qna_comment_report_content (Field4) — varchar(200) — NOT NULL — Q&A 댓글 신고 내용

qna_report (Untitled25)

  • qna_report_id (Key) — int — Primary key — NOT NULL — Q&A 댓글 번호
  • qna_id (Key2) — int — Foreign key → Q&A.qna_id — NOT NULL — Q&A 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • qna_report_reason (Field) — varchar(200) — NOT NULL — Q&A 신고 이유
  • qna_report_status (Field2) — enum — NOT NULL — Q&A 신고 상태
  • qna_report_created_at (Field4) — datetime — NOT NULL — Q&A 신고 날짜
  • qna_report_content (Field3) — varchar(200) — NOT NULL — Q&A 신고 내용

quiz (Untitled13)

  • quiz_id (Key) — int — Primary key — NOT NULL — 퀴즈 번호
  • quiz_content (Field) — text — NOT NULL — 퀴즈 내용
  • quiz_type (Field2) — enum — NOT NULL — 퀴즈 타입
  • quiz_option1 (Field3) — varchar(200) — 객관식 1번 내용
  • quiz_option2 (Field4) — varchar(200) — 객관식 2번 내용
  • quiz_option3 (Field5) — vharchar(200) — 객관식 3번 내용
  • quiz_option4 (Field6) — varchar(200) — 객관식 4번 내용
  • quiz_answer (Field7) — int — (객관식)퀴즈 정답
  • quiz_explanation (Field8) — text — NOT NULL — 정답설명
  • quiz_ox (Field9) — text — ox퀴즈 문제
  • quiz_ox_answer (Field10) — int — ox퀴즈 정답
  • quiz_point (Field11) — int — NOT NULL — 퀴즈 포인트

quiz_attempt (Untitled14)

  • quiz_attempt (Key) — int — Primary key — NOT NULL — 퀴즈 풀이 내역 번호
  • quiz_id (Key2) — int — Foreign key → quiz.quiz_id — NOT NULL — 퀴즈 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • quiz_attempt_check (Field) — int — NOT NULL — 퀴즈 3번 풀었는지 확인
  • quiz_attempt_attempted_at (Field2) — datetime — NOT NULL — 퀴즈 푼 날짜
  • quiz_attempt_date (Field3) — DATE — NOT NULL — 매일 제한 체크용

review (Untitled3)

  • review_id (Key) — int — Primary key — NOT NULL — 리뷰게시판 번호
  • review_title (Field) — varchar(200) — NOT NULL — 제목
  • review_content (Field2) — text — NOT NULL — 내용
  • review_hit (Field3) — int — NOT NULL — 조회수
  • review_rating (Field4) — DECIMAL — NOT NULL — 별점
  • review_ platform (Field7) — varchar(50) — NOT NULL — 플랫폼 설정
  • review_highlighted (Field5) — int — NOT NULL — 하이라이트 적용 여부
  • review_created_at (Field6) — datetime — NOT NULL — 리뷰글 작성 날짜
  • genre_category_id (Key2) — int — Foreign key → genre_category.genre_category_id — NOT NULL — 카테고리 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • review_related (Field8) — varchar(50) — NOT NULL — 관련작품 이름
  • review_img (Field9) — varchar(500) — 관련작품 이미지
  • review_updated_at (Field10) — datetime — NOT NULL — 리뷰글 수정 날짜
  • review_highlight_started_at (Field11) — datetime — 하이라이트 시작 시간
  • review_highlight_expired_at (Field12) — datetime — 하이라이트 만료 시간

review_draft (임시저장)

  • review_draft_id (Key) — int — Primary key — NOT NULL — 임시저장 번호
  • review_draft_title (Field) — varchar(200) — 제목
  • review_draft_content (Field2) — text — 내용
  • review_draft_saved_at (Field3) — datetime — NOT NULL — 저장 날짜
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • genre_category_id (Key2) — int — Foreign key → genre_category.genre_category_id — NOT NULL — 카테고리 번호

review_like (Untitled4)

  • review_like_id (Key) — int — Primary key — NOT NULL — 리뷰글 좋아요 번호
  • review_id (Key2) — int — Foreign key → review.review_id — NOT NULL — 리뷰게시판 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호

review_mapping (Untitled27)

  • review_id (Key) — int — Primary key — NOT NULL — 리뷰글 번호
  • genre_category_id (Key2) — int — Foreign key → genre_category.genre_category_id — NOT NULL — 카테고리 번호

review_report (Untitled6)

  • review_report_id (Key) — int — Primary key — NOT NULL — 신고 번호
  • review_id (Key2) — int — Foreign key → review.review_id — NOT NULL — 리뷰게시판 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • review_report_reason (Field) — int — NOT NULL — 리뷰 신고 이유
  • review_report_status (Field2) — enum — NOT NULL — 신고 상태
  • review_report_created_at (Field3) — datetime — NOT NULL — 신고 날짜
  • review_report_content (Field4) — NOT NULL — 리뷰 신고 내용

warning (Untitled15)

  • warning_id (Key) — int — Primary key — NOT NULL — 경고 번호
  • member_id (Member_id) — int — Foreign key → member.member_id — NOT NULL — 회원 번호
  • warning_reason (Field) — varchar(200) — NOT NULL — 경고 이유
  • warning_created_at (Field2) — datetime — NOT NULL — 경고 날짜
  • warning_status (Field3) — enum — NOT NULL — 포인트로 차감된 경고 구분