ㅇㅇ
Tables (11)
ai_interventions
- id — BIGINT — Primary key — NOT NULL — 세션 ID
- session_id — BIGINT — Foreign key → user_sessions.id — NOT NULL — 중재 시점(초)
- intervention_timestamp — DECIMAL(10, 3) — NOT NULL — 중재 시점 감정 상황
- trigger_type — ENUM('automatic_emotion_threshold', 'manual_request', 'pattern_detected', 'escalation_risk') — NOT NULL
- intervention_type — ENUM('de_escalation', 'emotional_validation', 'structured_dialogue', 'break_suggestion') — NOT NULL
- emotional_context — JSON — 대화 맥락
- conversation_context — JSON — AI 중재 메시지
- ai_message — TEXT — 제안된 행동
- suggested_actions — JSON — 후속 질문
- follow_up_questions — JSON — 중재 효과성 점수
- effectiveness_score — DECIMAL(3, 1) — 사용자 피드백
- user_feedback — JSON
comments
- id — BIGINT — NOT NULL — 댓글 고유 ID
- post_id — BIGINT — Foreign key → community_posts.id — NOT NULL — 게시글 ID
- user_id — BIGINT — Foreign key → users.mno — NOT NULL — 사용자 ID
- parent_comment_id — BIGINT — Foreign key → comments.id — 부모 댓글 ID (대댓글)
- content — TEXT — NOT NULL
- like_count — INT
- dislike_count — INT
- is_deleted — BOOLEAN
- created_at — DATETIME
- updated_at — DATETIME
- S — PRIMARY
community_posts
- id — BIGINT — Primary key — NOT NULL — 게시글 고유 ID
- user_id — BIGINT — Foreign key → users.mno — NOT NULL — 사용자 ID
- category — ENUM('conflict_sharing', 'success_stories', 'advice_request', 'general') — NOT NULL
- title — VARCHAR(200) — NOT NULL
- content — TEXT — NOT NULL
- like_count — INT — 좋아요 수
- dislike_count — INT — 싫어요 수
- tags — JSON — 태그 배열
- view_count — INT — 조회수
- comment_count — INT — 댓글 수
- is_deleted — BOOLEAN
- created_at — DATETIME
- updated_at — DATETIME
conflicts
- id — BIGINT — Primary key — NOT NULL — 갈등 기록 고유 ID
- user_id — BIGINT — Foreign key → users.mno — NOT NULL — 사용자 ID
- title — VARCHAR(200) — NOT NULL
- description — TEXT — NOT NULL
- conflict_type — ENUM('직장', '가족', '친구', '연인', '이웃', '금전', '온라인', '기타') — NOT NULL
- conflict_when — ENUM('today', 'yesterday', 'this-week', 'this-month', 'ongoing') — NOT NULL
- participants — JSON — 갈등 참여자 정보
- location — VARCHAR(200) — 갈등 발생 장소
- desired_outcome — TEXT — 원하는 결과
- priority — ENUM('relationship', 'solution', 'self', 'prevention')
- talk_willingness — ENUM('yes', 'maybe', 'no')
- intensity — INT — NOT NULL — 갈등 강도 1-10
- resolution_status — ENUM('pending', 'in_progress', 'resolved', 'failed')
- resolution_notes — TEXT — 해결 과정 메모
- created_at — DATETIME
- updated_at — DATETIME
email_verifications
- id — BIGINT — Primary key — NOT NULL — 인증 기록 고유 ID
- email — VARCHAR(100) — NOT NULL
- verification_code — VARCHAR(10) — NOT NULL — 인증번호
- expires_at — DATETIME — NOT NULL — 만료시간
- verified — BOOLEAN
- created_at — DATETIME
emotion_analysis_logs
- id — BIGINT — Primary key — NOT NULL — 세션 ID
- session_id — BIGINT — Foreign key → user_sessions.id — NOT NULL — 사용자 ID
- user_id — BIGINT — Foreign key → users.mno — 세션 시작 기준 시간(초)
- analysis_timestamp — DECIMAL(10, 3) — NOT NULL — 음성 감정 분석 결과
- audio_analysis — JSON — 영상 감정 분석 결과
- video_analysis — JSON — 종합 감정 분석 결과
- combined_analysis — JSON — 감정 강도
- dominant_emotion — VARCHAR(50)
- emotion_intensity — DECIMAL(3, 1) — 진정성 점수
- authenticity_score — DECIMAL(3, 2) — AI 중재 기록 고유 ID
- created_at — DATETIME
notices
- id — BIGINT — Primary key — NOT NULL — 작성 사용자 ID
- user_id — BIGINT — Foreign key → users.mno — NOT NULL — 중요 공지
- title — VARCHAR(200) — NOT NULL
- content — TEXT — NOT NULL
- category — ENUM('system', 'update', 'maintenance', 'announcement')
- is_important — BOOLEAN — 팝업 노출
- is_popup — BOOLEAN — 게시 일시
- view_count — INT
- publish_date — DATETIME — 만료 일시
- expire_date — DATETIME — STT 기록 고유 ID
- is_active — BOOLEAN
- created_at — DATETIME
- updated_at — DATETIME
session_summaries
- id — BIGINT — Primary key — NOT NULL — 세션 요약 고유 ID
- session_id — BIGINT — Foreign key → user_sessions.id — NOT NULL — 세션 ID
- duration_seconds — INT — NOT NULL — 총 세션 시간
- total_words — INT — 총 발화 단어 수
- speaking_ratio — JSON — 발화 비율
- topic_progression — JSON — 주제 진행 과정
- emotional_timeline — JSON — 감정 변화 타임라인
- key_moments — JSON — 주요 순간들
- critical_moments — JSON — 중요 전환점
- intervention_count — INT — AI 중재 횟수
- resolution_outcome — JSON — 해결 결과
- agreed_actions — JSON — 합의된 행동
- follow_up_date — DATE — 후속 미팅 일정
- ai_analysis — JSON — AI 종합 분석
- success_factors — JSON — 성공 요인
- improvement_areas — JSON — 개선 영역
- participant_satisfaction — JSON — 참여자 만족도
- created_at — DATETIME
stt_transcripts
- id — BIGINT — Primary key — NOT NULL — 세션 ID
- session_id — BIGINT — Foreign key → user_sessions.id — NOT NULL — 사용자 ID
- user_id — BIGINT — Foreign key → users.mno — 발화자 이름
- speaker_name — VARCHAR(50) — NOT NULL — 변환된 텍스트
- text — TEXT — NOT NULL — STT 신뢰도
- confidence — DECIMAL(3, 2) — 시작 시간(초)
- start_time — DECIMAL(10, 3) — NOT NULL — 종료 시간(초)
- end_time — DECIMAL(10, 3) — NOT NULL — 단어별 상세 정보
- words_detail — JSON — 감정 분석 로그 고유 ID
- created_at — DATETIME
user_sessions
- id — BIGINT — Primary key — NOT NULL — 세션 고유 ID
- session_id — VARCHAR(255) — NOT NULL — 세션 ID
- user_id — BIGINT — Foreign key → users.mno — NOT NULL — 사용자 ID
- expires_at — DATETIME — NOT NULL
- last_activity — DATETIME
- is_active — BOOLEAN
- created_at — DATETIME
users
- mno — BIGINT — Primary key — NOT NULL — 사용자 고유 번호
- user_id — VARCHAR(50) — NOT NULL — 사용자 아이디
- name — VARCHAR(50) — NOT NULL — 이름
- email — VARCHAR(100) — NOT NULL — 이메일
- password — VARCHAR(255) — NOT NULL — 암호화된 비밀번호
- address — VARCHAR(500) — 주소
- age — INT — 나이
- profile_image — VARCHAR(500) — 프로필 이미지 URL
- role — ENUM('USER', 'ADMIN')
- email_verified — BOOLEAN — 이메일 인증 여부
- is_active — BOOLEAN — 계정 활성화 여부
- created_at — DATETIME
- updated_at — DATETIME
- deleted_at — DATETIME — 탈퇴일시