말랑일기

테이블 (4)

user

  • id — int — 기본 키 — NOT NULL
  • nickname (phone) — string — NOT NULL

user_diary

  • id (Key) — int — 기본 키 — NOT NULL
  • user_id (Key2) — int — 외래 키 → user.id — NOT NULL
  • date (Field) — string — NOT NULL — 일기 날짜 (UTC)
  • title (Field3) — string — NOT NULL — 제목 (30자 이하)
  • original_context (Field4) — string — NOT NULL — 사용자 입력 내용 (1000자 이하)
  • ai_context (Field5) — string — NOT NULL — AI가 요약한 내용 (1000자 이하)
  • created_at (Field2) — string — NOT NULL — UTC 일기 생성 일시 (YYYY-MM-DD HH:mm:ss)
  • updated_at (Field6) — string — NOT NULL — UTC 일기 수정 일시 (YYYY-MM-DD HH:mm:ss)

user_diary_picture

  • id (Key) — int — 기본 키 — NOT NULL
  • user_diary_id (Key2) — int — 외래 키 → user_diary.id — NOT NULL
  • picture (Field3) — blob — NOT NULL

user_diary_record_file

  • id (Key) — int — 기본 키 — NOT NULL
  • user_diary_id (Key2) — int — 외래 키 → user_diary.id — NOT NULL
  • record_path (Field3) — string — NOT NULL — 녹음 파일 경로