kfriend

Tables (39)

basic (기본)

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_ai_chat_report

  • PK (id) — Primary key — NOT NULL
  • 총점수 (total_score) — NOT NULL
  • 상세 설명 (description) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 결과세부 (ai_session_id) — Foreign key → c_ai_session.PK — NOT NULL

c_ai_chat_report_detail

  • PK (id) — Primary key — NOT NULL
  • 점수 (score) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 결과 리포트 (ai_chat_report_id) — Foreign key → c_ai_chat_report.PK — NOT NULL
  • 항목 (report_type_id) — Foreign key → c_report_type.PK — NOT NULL

c_ai_config

  • PK (id) — Primary key — NOT NULL
  • 모델명 (name) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_ai_message

  • PK (id) — Primary key — NOT NULL
  • 내용 (content)
  • 순서 (order) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 세션 (ai_session_id) — Foreign key → c_ai_session.PK — NOT NULL

c_ai_message_word

  • PK (id) — Primary key — NOT NULL
  • 내용 (content)
  • 발음 (pronunciation)
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 메시지 (ai_messeage_id) — Foreign key → c_ai_message.PK — NOT NULL

c_ai_request_log

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 메시지 (messege_id) — Foreign key → c_ai_message.PK

c_ai_session

  • PK (id) — Primary key — NOT NULL
  • 요약 (summary) — NOT NULL
  • Field
  • 채팅 시작 일시 (chat_started_at) — NOT NULL
  • 채팅 끝 일시 (chat_ended_at)
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 사용 AI (ai_config_id) — Foreign key → c_ai_config.PK — NOT NULL

c_community_challenge

  • PK (id) — Primary key — NOT NULL
  • 문장 (senetence) — NOT NULL
  • 발음 (pronunciation) — NOT NULL
  • 설명 (description) — NOT NULL
  • 포인트 (point) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 주제 (topic_id) — Foreign key → c_community_topic.PK — NOT NULL

c_community_challenge_i18n

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 챌린지 (challenge_id) — Foreign key → c_language.PK — NOT NULL
  • 언어 (language_id) — Foreign key → c_community_challenge.PK — NOT NULL

c_community_topic

  • PK (id) — Primary key — NOT NULL
  • 이름 (name) — NOT NULL
  • 깊이 (depth) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 부모 (parent_id) — Foreign key → c_community_topic.PK

c_language

  • PK (id) — Primary key — NOT NULL
  • 코드 (code) — KO,EN,JA,ZH,CH — NOT NULL
  • 이름 (name) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_level

  • PK (id) — Primary key — NOT NULL
  • 코드 (code) — A0, A1, A2, B1, B2, C1, C2 — NOT NULL
  • 이름 (name) — None,Beginner, Elementary, Advanced — NOT NULL
  • 설명 (desc ription) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 언어 (level_id) — Foreign key → c_language.PK — NOT NULL
  • 상위 레벨 (parent_level) — Foreign key → c_level.PK — NOT NULL

c_level_test

  • PK (id) — Primary key — NOT NULL
  • 이름 (name)
  • 설명 (description)
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 테스트 언어 (target_language_id) — Foreign key → c_language.PK — NOT NULL
  • 레벨 (level_id) — Foreign key → c_level.PK — NOT NULL

c_matching_choice

  • PK (id) — Primary key — NOT NULL
  • 타입 (type) — SOURCE,TARGET — NOT NULL
  • 내용 (content) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 문제 (question_id) — Foreign key → c_meatching_question.PK — NOT NULL

c_matching_choice_answer

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 문제 (question_id) — Foreign key → c_meatching_question.PK — NOT NULL
  • 선택지1 (source_choice_id) — Foreign key → c_matching_choice.PK — NOT NULL
  • 선택지2 (target_choice_id) — Foreign key → c_matching_choice.PK — NOT NULL

c_matching_choice_i18n

  • PK (id) — Primary key — NOT NULL
  • 내용(번역) (translated_content) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 선택지 (choice_id) — Foreign key → c_matching_choice.PK — NOT NULL

c_meaning_choice

  • PK (id) — Primary key — NOT NULL
  • 내용 (content) — NOT NULL
  • 정답 여부 (is_correct) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 문제 (question_id) — Foreign key → c_meaning_question.PK — NOT NULL

c_meaning_choice_i18n

  • PK (id) — Primary key — NOT NULL
  • 내용(번역) (translated_content) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 언어 (language_id) — Foreign key → c_language.PK — NOT NULL — Unique(language_id, choice_id)
  • 선택지 (choice_id) — Foreign key → c_meaning_choice.PK — NOT NULL — Unique(language_id, choice_id)

c_meaning_question

  • PK (id) — Foreign key → c_question.PK — NOT NULL
  • 목적 (target) — NOT NULL
  • 발음 (pronunciation) — NOT NULL
  • 타입 (type) — WORD,SENTENCE — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_meatching_question

  • PK (id) — Foreign key → c_question.PK — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_ordering_choice

  • PK (id) — Primary key — NOT NULL
  • 내용 (content) — NOT NULL
  • 맞는 순서 (correct_order) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 문제 (question_id) — Foreign key → c_ordering_question.PK — NOT NULL

c_ordering_question

  • PK (id) — Foreign key → c_question.PK — NOT NULL
  • 정답 문장 (answer) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_question

  • PK (id) — Primary key — NOT NULL
  • 문제난이도 (difficulty) — NOT NULL
  • 설명 (prompt) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_question_i18n

  • PK (id) — Primary key — NOT NULL
  • 설명(번역) (translated_description) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 언어 (language_id) — Foreign key → c_language.PK — NOT NULL — Unique(language_id, question_id)
  • 문제 (question_id) — Foreign key → c_question.PK — NOT NULL — Unique(language_id, question_id)

c_report_type

  • PK (id) — Primary key — NOT NULL
  • 이름 (name) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)

c_user

  • PK (id) — Primary key — NOT NULL
  • 이메일 (email) — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 닉네임 (nickname)
  • 프로필 (profile_url)
  • 역할 (role) — GUEST, FREE, PREMIUM, ADMIN — NOT NULL
  • 상태 (status) — ACTIVE, INACTIVE — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)

c_user_ai_serssion_category

  • PK (id) — Primary key — NOT NULL
  • 이름 (name) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 부모 (parent_id) — Foreign key → c_user_ai_serssion_category.PK

c_user_ai_session

  • PK (id) — Primary key — NOT NULL
  • 대화모드 (mode) — FREE, SITUATION
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL
  • 세션 (ai_session_id) — Foreign key → c_ai_session.PK — NOT NULL
  • 결과 (ai_chat_report_id) — Foreign key → c_ai_chat_report.PK — NOT NULL
  • 카테고리 (category_id) — Foreign key → c_user_ai_serssion_category.PK — NOT NULL
  • 레벨 (level_id) — Foreign key → c_level.PK

c_user_chat_sentence

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 메시지 (message_id) — Foreign key → c_ai_message.PK — NOT NULL
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL

c_user_chat_sentence_i18n

  • PK (id) — Primary key — NOT NULL
  • 내용(번역) (content) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 사용자문장 (user_chat_sentence_id) — Foreign key → c_user_chat_sentence.PK — NOT NULL
  • 언어 (language_id) — Foreign key → c_language.PK — NOT NULL

c_user_chat_word

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL
  • 단어 (word_id) — Foreign key → c_ai_message_word.PK — NOT NULL

c_user_chat_word_i18n

  • PK (id) — Primary key — NOT NULL
  • 내용(번역) (content) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 사용자단어 (user_chat_word_id) — Foreign key → c_user_chat_word.PK — NOT NULL
  • 언어 (language_id) — Foreign key → c_language.PK — NOT NULL

c_user_community_challenge

  • PK (id) — Primary key — NOT NULL
  • 사용자 입력 (practice_sentence) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 삭제 일시 (deleted_at)
  • 삭제자 (deleted_by)
  • 참여자 (user_id) — Foreign key → c_user_community_topic.PK — NOT NULL
  • 챌린지 (challenge_id) — Foreign key → c_community_challenge.PK — NOT NULL
  • 언어 (language_id) — Foreign key → c_language.PK — NOT NULL

c_user_community_topic

  • PK (id) — Primary key — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정일시 (updated_at)
  • 수정자 (updated_by)
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL
  • 커뮤니티토픽 (topic_id) — Foreign key → c_community_topic.PK — NOT NULL

c_user_language

  • PK (id) — Primary key — NOT NULL
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 배우고자 하는 언어 (target_language_id) — Foreign key → c_language.PK — NOT NULL
  • 사용 언어 (native_language_id) — Foreign key → c_language.PK — NOT NULL

c_user_level

  • PK (id) — Primary key — NOT NULL
  • 변경 이유 (change_reason)
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL
  • 이전레벨 (previous_level_id) — Foreign key → c_level.PK — NOT NULL
  • 현재레벨 (current_level_id) — Foreign key → c_level.PK — NOT NULL

c_user_level_test

  • PK (id) — Primary key — NOT NULL
  • 상태 (status)
  • 시작일시 (started_at) — NOT NULL
  • 종료일시 (ended_at)
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 사용자 (user_id) — Foreign key → c_user.PK — NOT NULL
  • 레벨테스트 (level_test_id) — Foreign key → c_level_test.PK — NOT NULL
  • 판정 레벨 (level_id) — Foreign key → c_level.PK — NOT NULL
  • 결과 (ai_report_id) — Foreign key → c_ai_chat_report.PK — NOT NULL

c_user_level_test_ai_session

  • PK (id) — Primary key — NOT NULL
  • 제시문 (topic) — NOT NULL
  • 생성 일시 (created_at) — NOT NULL
  • 생성자 (created_by) — NOT NULL
  • 수정 일시 (updated_at)
  • 수정자 (updated_by)
  • 사용자레벨테스트 (user_level_test_id) — Foreign key → c_user_level_test.PK — NOT NULL
  • AI대화세션 (ai_session_id) — Foreign key → c_ai_session.PK — NOT NULL