소곤소곤
테이블 (5)
감정기록 (DailyLog)
- 감정기록 id (id) — 기본 키 — NOT NULL
- 유저 id (user_id) — int — 외래 키 → 사용자.유저 id — NOT NULL
- 날짜 (date) — date
- 기분 라벨 (emotion_label) — string[] (nullable)
- 기분 점수 (emotion_score) — float
- 하루 대화 요약 (summary) — text
- 생성 날짜 (created_at) — datetime
사용자 (User)
- 유저 id (id) — int — 기본 키 — NOT NULL
- 유저이름 (username) — string
- 이메일 (email) — email
- 비밀번호 (password) — password
- 지정된 시간 메세지 (notification_time) — time (nullable)
- 현지 시간 (timezone) — string (nullable)
- 생성 날짜 (created_at) — datetime
- 생일 (birth) — date (nullable)
사용자 하루 사용량 (DailyUsage)
- 유저 id (id) — int — 외래 키 → 사용자.유저 id — NOT NULL
- 날짜 (date) — date
- 대화 횟수 (usage_count) — int
- 마지막 대화 (last_used_at) — datetime
익명 메시지 설정 (MessagePreference)
- 유저 id (user_id) — int — 외래 키 → 사용자.유저 id — NOT NULL
- 수신 허용 여부 (allow_anonymous_messages) — bool
- 위로 받고 싶은 감정 (preferred_emotions) — string (nullable)
- 마지막 수정일 (updated_at) — datetime
익명의 메세지 (AnonymousMessage)
- 익명 메세지 id (id) — 기본 키 — NOT NULL
- 보낸사람 (sender_id) — int — 외래 키 → 사용자.유저 id — NOT NULL
- 받은사람 (receiver_id) — int — 외래 키 → 사용자.유저 id — NOT NULL
- 본문 (content) — text
- 읽음 여부 (is_read) — bool (default=False)
- 욕설 필터링 (is_flagged) — bool (default=False)
- 생성 날짜 (created_at) — datetime
- 위로하고싶은 감정 (emotion_comfort) — string (nullable)