nownow

Tables (7)

CHAT_MESSAGES (채팅 메세지)

  • chat_id (채팅 아이디) — string — Primary key — NOT NULL
  • user_id (유저 아이디) — string — Foreign key → USERS.user_id — NOT NULL
  • chat_role (채팅 소유자) — NOT NULL
  • message (채팅 메세지) — NOT NULL
  • created_at (생성 일시) — timestampz — NOT NULL

CHAT_SUMMARIES (채팅 요약)

  • summary_id (채팅 요약 아이디) — string — Primary key — NOT NULL
  • chat_id (채팅 아이디) — string — Foreign key → CHAT_MESSAGES.chat_id — NOT NULL
  • user_id (유저 아이디) — string — Foreign key → CHAT_MESSAGES.user_id — NOT NULL
  • message_count (요약 메세지 수) — NOT NULL — 몇 개의 채팅을 요약할지
  • created_at (생성 일시) — timestampz — NOT NULL

HEALTH_RECORDS (건강 데이터)

  • health_record_id (건강 데이터 아이디) — string — Primary key — NOT NULL
  • user_id (유저 아이디) — string — Foreign key → USERS.user_id — NOT NULL
  • heart_rate (심박수)
  • systolic_bp (수축기 혈압)
  • diastolic_bp (이완기 혈압)
  • measured_at (측정 일시) — timestampz — NOT NULL
  • created_at (생성 일시) — timestampz — NOT NULL

HEALTH_REPORTS (건강 레포트)

  • health_report_id (건강 레포트 아이디) — string — Primary key — NOT NULL
  • health_record_id (건강 데이터 아이디) — string — Foreign key → HEALTH_RECORDS.health_record_id — NOT NULL
  • user_id (유저 아이디) — string — Foreign key → HEALTH_RECORDS.user_id — NOT NULL
  • max_heart_rate (최고 심박수)
  • max_heart_rate_time (최고 심박수 시각) — timestampz
  • min_heart_rate (최저 심박수)
  • min_heart_rate_time (최저 심박수 시각) — timestampz
  • max_systolic_bp (최고 혈압)
  • max_systolic_bp_time (최고 혈압 시각) — timestampz
  • analysis (분석 결과) — NOT NULL
  • created_at (생성 일시) — timestampz — NOT NULL

MEMORY_EMBEDDINGS (임베딩 데이터)

  • embedding_id (임베딩 아이디) — string — Primary key — NOT NULL
  • source_type (임베딩 소스 타입) — NOT NULL
  • content (내용) — NOT NULL
  • embedding (임베딩) — NOT NULL
  • created_at (생성 일시) — timestampz — NOT NULL

USERS (사용자)

  • user_id (유저 아이디) — string — Primary key — NOT NULL
  • email (이메일) — string — NOT NULL
  • auth_provider (인증 제공자) — NOT NULL
  • provider_id (소셜 인증 ID) — string — NOT NULL
  • passwork_hash (비밀번호 해시) — string — NOT NULL
  • updated_at (수정 일시) — ENUM('ISTJ', 'ISFJ', 'INFJ', 'INTJ', 'ISTP', 'ISFP', 'INFP', 'INTP', 'ESTP', 'ESFP', 'ENFP', 'ENTP', 'ESTJ', 'ESFJ', 'ENFJ', 'ENTJ') — NOT NULL
  • created_at (생성 일시) — timestampz — NOT NULL

USER_INFORMATIONS (사용자 정보)

  • user_information_id (유저 정보 아이디) — string — Primary key — NOT NULL
  • user_id (유저 아이디) — string — Foreign key → USERS.user_id — NOT NULL
  • character_type (캐릭터 타입) — string — NOT NULL
  • notification_enabled (알림 설정) — string — NOT NULL
  • created_at (생성 일시) — timestampz — NOT NULL
  • updated_at (수정 일시) — timestampz — NOT NULL
  • user_status (계정 상태) — ENUM('ISTJ', 'ISFJ', 'INFJ', 'INTJ', 'ISTP', 'ISFP', 'INFP', 'INTP', 'ESTP', 'ESFP', 'ENFP', 'ENTP', 'ESTJ', 'ESFJ', 'ENFJ', 'ENTJ') — NOT NULL
  • user_role (권한) — string — NOT NULL
  • nickname (닉네임) — string — NOT NULL