sdsd
테이블 (5)
유저 (USER)
- 유저 id (user_id) — 기본 키 — NOT NULL
- 이메일 (email)
- 비번 (password)
- 플랫폼 타입 (platform_type)
- 액세스 토큰 (access_token)
- 전화번호 (phone)
- 이름 (user_name)
- 생년월일 (date_of_birth)
- is_consent
- is_phone_auth
- is_email_auth
- created_at
- modified_at
- 디바이스 토큰 (device token)
채팅 메세지 (CHAT_MESSAGE)
- 채팅 메세지id (chat_message_id) — 기본 키 — NOT NULL
- 유저 id (user_id) — 외래 키 → 유저.유저 id — NOT NULL
- 채팅방id (chat_room_id) — 외래 키 → 채팅방.채팅방id — NOT NULL
- 메세지 내용 (content)
- created_at
- modified_at
채팅 참가 (CHAT_PARTICIPATION)
- 채팅 참가id (chat_participation_id) — 기본 키 — NOT NULL
- 유저id (user_id) — 외래 키 → 유저.유저 id — NOT NULL
- 채팅방id (chat_room_id) — 외래 키 → 채팅방.채팅방id — NOT NULL
- 알람이 켜져 있는지 여부 (alarm_enabled)
- 채팅방에 남았는지 여부 (left_chatroom)
- created_at
- modified_at
채팅방 (CHAT_ROOM)
- 채팅방id (chat_room_id) — 기본 키 — NOT NULL
- created_at
- modified_at
프로필 (PROFILE)
- 프로필 id (profile_id) — 기본 키 — NOT NULL
- 유저 id (user_id) — 외래 키 → 유저.유저 id — NOT NULL
- 프로필 이미지 url (profile_image_url)
- 닉네임 (nickname)
- 소개 (introduction)
- created_at
- modified_at