모여밥
테이블 (8)
메시지 (messages(subcollection))
- 메시지id (messageId) — string — 기본 키 — NOT NULL
- 채팅방 id (roodId) — string — 외래 키 → 채팅방.채팅방 id — NOT NULL
- 모집글id (postId) — string — 외래 키 → 채팅방.모집글id — NOT NULL
- 보낸 사용자id (senderId) — string
- 메시지 본문 (text) — string
- 메시지 타입 (type) — string
- 전송시간 (sentAt) — timestamp
- 읽은사용자 목록 (isReadBy) — string[]
모집글 (posts)
- 모집글id (postId) — string — 기본 키 — NOT NULL
- 사용자 id (userId) — string — 외래 키 → 사용자.사용자 id — NOT NULL
- 제목 (title) — string
- 작성자id (hostId) — string
- 상세설명 (content) — string
- 장소명 (placeName) — string
- 모임위치 (location) — GeoPoint
- 최대인원 (maxParticipants) — number
- 모임시간 (meetTime) — timestamp
- 제한 (Limit) — string
- 작성일 (createdAt) — timestamp
- 상태 (status) — string
- 참가자 리스트 (participantIds) — string[]
사용자 (users)
- 사용자 id (userId) — string — 기본 키 — NOT NULL
- 닉네임 (nickname) — string
- 프로필이미지 url (photoUrl) — string
- 이메일 (email) — string
- 자기소개 (intro) — string
- 위치정보 (location) — GeoPoint
- 선호음식 리스트 (preferredFoods) — string[]
- 식사스타일 (eatingStyle) — string
- 가입일 (createAt) — timestamp
신고 (reports)
- 신고id (reportId) — string — 기본 키 — NOT NULL
- 신고자id (userId) — string — 외래 키 → 사용자.사용자 id — NOT NULL
- 신고대상id (targetUserId) — string
- 대상타입 (targetType) — string
- 대상의 id (targetRefId) — string
- 신고사유 (reason) — string
- 생성시간 (createdAt) — timestamp
신청자 (applicants(subcollection))
- 신청자id (applicantId) — string — 기본 키 — NOT NULL
- 신청시간 (appliedAt) — timestamp
- 신청상태 (status) — string
알림 (notificarions)
- 알림id (notificationId) — string — 기본 키 — NOT NULL
- 사용자 id (userId) — string — 외래 키 → 사용자.사용자 id — NOT NULL
- 알람종류 (type) — string
- 알람 본문 (message) — string
- 읽음여부 (isRead) — boolean
- 생성시간 (createdAt) — timestamp
차단 (blockedUsers(subcollection))
- 차단한 사용자 (blockedUsers) — string — /user/{userId}/blockedUser
채팅방 (chatRooms)
- 채팅방 id (roodId) — string — 기본 키 — NOT NULL
- 사용자 id (userId) — string — 외래 키 → 사용자.사용자 id — NOT NULL
- 모집글id (postId) — string — 외래 키 → 모집글.모집글id — NOT NULL
- 참가자id list (participantIds) — string[]
- 생성시간 (createdAt) — timestamp
- 최근 메시지 내용 (lastMessage) — string
- 마지막 메시지 시간 (lastMessageAt) — timestamp