Knock2

Tables (45)

agree_terms_of_service (동의받은 거 저장하는 테이블)

  • terms_of_service_index (terms_of_service 테이블 PK) — INT — Foreign key → terms_of_service.terms_of_service_index — NOT NULL
  • user_index (user 테이블 PK) — BIG INT — Foreign key → users.user_index — NOT NULL
  • Key — Foreign key — NOT NULL
  • created_at (약관 동의 일시) — TIMESTAMP

alarm (알람)

  • alarm_index (알람 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • user_index (user table 인덱스) — BIG INT — Foreign key → users.user_index — NOT NULL
  • check (확인여부) — BOOLEAN
  • title (제목) — VARCHAR(50), NOT NULL
  • content (내용) — TEXT, NOT NULL
  • created_at (생성일자) — TIMESTAMP, NOT NULL

allotted_test (전문가에게 배정된 검사)

  • expert_index (전문가 인덱스) — BIG SERIAL, PRIMARY KEY — Foreign key → expert.expert_index — NOT NULL
  • test_payment_index (검사 결제 인덱스) — BIG SERIAL, PRIMARY KEY — Foreign key → test_payment.test_payment_index — NOT NULL
  • consultation_time (상담시간) — VARCHAR(30)

available_counseling_time (상담가능시간)

  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • Monday (월요일) — VARCHAR(20)
  • Tuesday (화요일) — VARCHAR(20)
  • Wednesday (수요일) — VARCHAR(20)
  • Thursday (목요일) — VARCHAR(20)
  • Friday (금요일) — VARCHAR(20)
  • Saturday (토요일) — VARCHAR(20)
  • Sunday (일요일) — VARCHAR(20)

banner (배너)

  • banner_index (테이블 인덱스) — SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • title_img_url (대표 이미지 url) — VARCHAR(255)
  • content_img_url (내용 이미지 url) — VARCHAR(255)

chatting

  • chatting_index (채팅 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • room_index (방 인덱스) — BIG INT — Foreign key → room.room_index — NOT NULL
  • sender_index (보낸사람 인덱스) — BIG INT — NOT NULL
  • message (내용) — TEXT
  • created_at (생성일) — DATETIME

counseling_method_1st (상담방식 1차분류)

  • counseling_method_1st_index (상담방식 인덱스) — SMALL SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • counseling_method (상담방식) — VARCHAR(20)

counseling_method_2nd (상담방식 2차분류)

  • counseling_method_2nd_index (상담방식 인덱스) — SMALL SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • counseling_method (상담방식) — VARCHAR(20)

counseling_method_3rd (상담방식 3차분류)

  • counseling_method_3rd_index (상담방식 인덱스) — SMALL SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • counseling_method (상담방식) — VARCHAR(20)

counseling_type (상담유형)

  • counseling_type_index (상담유형 인덱스) — SMALL SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • counseling_type (상담유형) — VARCHAR(10)

coupon (쿠폰)

  • coupon_index (테이블 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • coupon_name (쿠폰 이름) — VARCHAR(30)
  • coupon_type (적용 가능한 상담 종류) — VARCHAR(20)
  • coupon_description (쿠폰 설명) — VARCHAR(50)
  • available_period (유효기간) — VARCHAR(30)
  • coupon_code (쿠폰코드) — VARCHAR(100)

detailed_result (심층결과)

  • detailed_result (심층결과 인덱스) — Primary key — NOT NULL
  • test_index (검사 인덱스) — BIG INT — Foreign key → test_result.test_index — NOT NULL
  • result_content (Field)

emoticon (이모티콘)

  • emoticon_index (테이블 인덱스) — SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • Field (아무튼 이모티콘 내용) — VARCHAR(50)

expert (심리전문가)

  • expert_index (전문가 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • expert_status (전문가 처리상태) — VARCHAR(10), NOT NULL
  • name (이름) — VARCHAR(50), NOT NULL
  • email (이메일) — VARCHAR(50), NOT NULL
  • password (비밀번호) — VARCHAR(255), NOT NULL
  • phone_number (전화번호) — VARCHAR(20), NOT NULL
  • safety_number (안심번호) — VARCHAR(20)
  • profile_img_url (프로필 이미지 url) — VARCHAR(255), NOT NULL
  • id_card_img_url (신분증 이미지 url) — VARCHAR(255), NOT NULL
  • bankbook_copy_img_url (통장사본 이미지 url) — VARCHAR(255), NOT NULL
  • education (학력정보) — TEXT
  • qualification (주요 자격) — TEXT
  • career (주요 경력) — TEXT
  • introduction_title (소개글 제목) — TEXT
  • introduction_contents (소개글 내용) — TEXT
  • bank (은행) — VARCHAR(20)
  • account_number (계좌번호) — VARCHAR(30)
  • account_holder (예금주) — VARCHAR(15)
  • account_memo (계좌 관련 메모) — TEXT

expert_career_img (자격 및 경력 img)

  • expert_index (전문가 인덱스) — BIG SERIAL, PRIMARY KEY — Foreign key → expert.expert_index — NOT NULL
  • career_img_url (자격 및 경력 정보 이미지 URL) — VARCHAR(255)

expert_counseling_method_1st (전문가의 상담방식 1차분류)

  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • counseling_method_1st_index (상담방식 인덱스) — INT — Foreign key → counseling_method_1st.counseling_method_1st_index — NOT NULL

expert_counseling_method_2nd (전문가의 상담방식 2차분류)

  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • counseling_method_2nd_index (상담방식 인덱스) — INT — Foreign key → counseling_method_2nd.counseling_method_2nd_index — NOT NULL

expert_counseling_method_3rd (전문가의 상담방식 3차분류)

  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • counseling_method_3rd_index (상담방식 인덱스) — INT — Foreign key → counseling_method_3rd.counseling_method_3rd_index — NOT NULL

expert_counseling_type (전문가의 상담유형(채팅, 음성))

  • counseling_type_index (상담유형 인덱스) — INT — Foreign key → counseling_type.counseling_type_index — NOT NULL
  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL

expert_education_img (학력 정보 img)

  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • education_img_url (학력 정보 이미지 URL) — VARCHAR(255)

expert_review (상담 후기)

  • expert_reviews_index (테이블 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • user_index (유저 인덱스) — BIG INT — Foreign key → users.user_index — NOT NULL
  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • payment_info_index (결제 정보 인덱스) — BIG INT — Foreign key → payment_info.payment_info_index — NOT NULL
  • reviews (리뷰 내용) — TEXT
  • gpa (평점) — REAL
  • is_best (최고의 리뷰) — BOOLEAN
  • writed_at (작성일) — TIMESTAMP

expert_type (전문가 종류)

  • expert_type_index (상담가 종류 인덱스) — SMALL SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • expert_type (상담가 종류) — VARCHAR(30)

favorite_expert (찜한 상담사)

  • user_index (사용자 인덱스) — BIG INT — Foreign key → users.user_index — NOT NULL
  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL

gomin_knock (고민노크)

  • gomin_knock_index (테이블 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • user_index (user 테이블 PK) — BIG INT — Foreign key → users.user_index — NOT NULL
  • Key — Foreign key — NOT NULL
  • gomin_content (고민내용) — TEXT
  • writed_at (작성일시) — DATE

gomin_knock_reply (고민노트 댓글)

  • gomin_knock_reply_index (테이블 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • gomin_knock_index (gomin_knock 테이블 PK) — BIG INT — Foreign key → gomin_knock.gomin_knock_index — NOT NULL
  • Key — Foreign key → gomin_knock.Key — NOT NULL
  • 상담사 index FK임 (Field)
  • reply (고민노크 댓글) — TEXT
  • writed_at (작성일시) — TIMESTAMP

have_coupon (쿠폰 소유 여부)

  • user_index (user 테이블 PK) — BIG SERIAL, PRIMARY KEY — Foreign key → users.user_index — NOT NULL
  • coupon_index (coupon 테이블 PK) — BIG SERIAL, PRIMARY KEY — Foreign key → coupon.coupon_index — NOT NULL
  • is_used (사용여부) — BOOLEAN

have_expert_type (어떤 전문가인지를 나타냄)

  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • expert_type_index (상담가 종류 인덱스) — INT — Foreign key → expert_type.expert_type_index — NOT NULL

macro_message (자주 쓰는 메시지)

  • macro_message_index (메크로 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • expert_index (전문가 인덱스) — BIG SERIAL, PRIMARY KEY — Foreign key → expert.expert_index — NOT NULL
  • message (메시지 내용) — TEXT

monthly_pay_memo (정산처리 메모)

  • monthly_pay_memo_index (메모 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • expert_index (전문가 인덱스) — BIG SERIAL, PRIMARY KEY — Foreign key → expert.expert_index — NOT NULL
  • date (정산월) — DATE
  • memo (정산처리 메모) — TEXT

overall_result (종합결과)

  • overall_result_index (종합결과 인덱스) — Primary key — NOT NULL
  • test_index (검사 인덱스) — BIG INT — Foreign key → test_result.test_index — NOT NULL
  • result_content (Field)

participant

  • participant_index (참가자 인덱스) — BIG INT — Primary key
  • room_index (방 인덱스) — BIG INT — Foreign key → room.room_index — NOT NULL
  • not_read_chat — INT(10)
  • last_read_chat_id — INT(10)

payment_info (결제정보)

  • payment_info_index (결제 정보 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • payment_cancel (결제취소) — BOOLEAN

pre_question_answer (사전질문답변)

  • psychology_payment_index (상담 결제 인덱스) — BIG INT — Foreign key → psychology_payment.psychology_payment_index
  • question (문제) — VARCHAR(100)
  • question_answer (문제답변) — VARCHAR(100)

progress_message (진행 현황 메시지)

  • progress_message_index (진행 현황 메시지 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • message_title (메시지 제목) — VARCHAR(50), NOT NULL
  • message_content (메시지 내용) — TEXT, NOT NULL

psychology_payment (상담 결제)

  • psychology_payment_index (상담 결제 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key
  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • user_index (유저 인덱스) — BIG INT — Foreign key → users.user_index — NOT NULL
  • payment_info_index (결제 정보 인덱스) — Foreign key → payment_info.payment_info_index — NOT NULL
  • consultation_time (상담시간) — VARCHAR(30)
  • counseling_type (상담 진행 유형) — VARCHAR(15)

reply_emoticon (댓글에 대한 반응)

  • emoticon_index (emoticon 테이블 PK) — INT — Foreign key → emoticon.emoticon_index — NOT NULL
  • gomin_knock_reply_index (gomin_knock_reply 테이블 PK) — BIG INT — Foreign key → gomin_knock_reply.gomin_knock_reply_index — NOT NULL
  • Key — Foreign key → gomin_knock_reply.Key — NOT NULL

result_summary (결과요약)

  • result_summary_index (결과 요약 인덱스) — Primary key — NOT NULL
  • test_index (검사 인덱스) — BIG INT — Foreign key → test_result.test_index — NOT NULL
  • result_content (Field)

room

  • room_index (방 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • user_index (테이블 인덱스) — BIG INT — Foreign key → users.user_index — NOT NULL
  • expert_index (전문가 인덱스) — BIG INT — Foreign key → expert.expert_index — NOT NULL
  • last_chat (마지막 채팅내용) — TEXT
  • is_terminated (종료여부) — BOOLEAN
  • created_at (생성일) — DATETIME

room_payment_history (방-결제이력 테이블)

  • payment_info_index (결제 정보 인덱스) — BIG INT — Foreign key → payment_info.payment_info_index — NOT NULL
  • room_index (방 인덱스) — BIG INT — Foreign key → room.room_index — NOT NULL

service_progress (서비스 진행 현황)

  • payment_info_index (결제 정보 인덱스) — BIG INT — Foreign key → payment_info.payment_info_index — NOT NULL
  • progress_message_index (진행 현황 메시지 인덱스) — BIG INT — Foreign key → progress_message.progress_message_index — NOT NULL

simple_result (단순결과)

  • simple_result_index (단순결과 인덱스) — Primary key — NOT NULL
  • test_index (검사 인덱스) — BIG INT — Foreign key → test_result.test_index — NOT NULL
  • result_content (내용)

terms_of_service (이용약관)

  • terms_of_service_index (테이블 인덱스) — SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • terms_of_service_title (약관 제목) — VARCHAR(30)
  • terms_of_service_contents (약관 내용) — TEXT

test_payment (검사 결제)

  • test_payment_index (검사 결제 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • user_index (user 테이블 PK) — BIG INT — Foreign key → users.user_index — NOT NULL
  • payment_info_index (결제 정보 인덱스) — Foreign key → payment_info.payment_info_index — NOT NULL
  • expiration_date (만료일) — TIMESTAMP, NOT NULL

test_result (검사결과)

  • test_index (검사 인덱스) — BIG INT — Foreign key → test_payment.test_payment_index — NOT NULL
  • simple_result_index (단순결과 인덱스)
  • result_ summary_index (결과 요약 인덱스)
  • detailed_result_index (심층결과 인덱스)
  • overall_result_ index (종합결과 인덱스)
  • is_opened (검사결과 오픈여부) — BOOLEAN
  • testing_date (검사일시) — TIMESTAMP

users (서비스 이용자)

  • user_index (유저 인덱스) — BIG SERIAL, PRIMARY KEY — Primary key — NOT NULL
  • id (아이디(이메일)) — VARCHAR(50), NOT NULL
  • password (비밀번호) — VARCHAR(255)
  • nickname (닉네임) — VARCHAR(20), NOT NULL — NOT NULL
  • platform (로그인 플랫폼) — VARCHAR(15), NOT NULL
  • user_status (유저처리상태) — VARCHAR(10)
  • email_certification (이메일 인증) — BOOLEAN, NOT NULL
  • affiliates (제휴사) — VARCHAR(???)
  • created_at (계정 생성일) — TIMESTAMP, NOT NULL