miview
테이블 (5)
가게 정보 (Store)
- id — ObjectId — 기본 키 — NOT NULL
- 가게명 (name) — string
- 위치 (location) — GeoJSON(Point)
- 카테고리 (category) — string
- 가게 설명 (description) — string
- 주소 (address) — string
- 영업시간 (operationHours) — string
- 대표 사진 (mainImage) — string[] — NOT NULL
- 추가 사진 (images) — string[] — NOT NULL
- QR 코드 (qrCodeBase64) — string
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
리뷰 정보 (Review)
- id — ObjectId — 기본 키 — NOT NULL
- 가게 ID (store) — ObjectId — 외래 키 → 가게 정보.id — NOT NULL
- 사용자 ID (user) — ObjectId — 외래 키 → 회원 정보.id — NOT NULL
- 긍정 여부 (isPositive) — boolean
- 평점 (score) — number
- 음식 리뷰 (foodReviews) — string[]
- 가게 리뷰 (storeReviews) — string[]
- 리뷰 사진 URL (imageUrls) — string[] — NOT NULL
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
메뉴 정보 (Menu)
- id — ObjectId — 기본 키 — NOT NULL
- 가게 ID (storeId) — ObjectId — 외래 키 → 가게 정보.id — NOT NULL
- 메뉴명 (name) — string
- 메뉴 사진 (image) — string — NOT NULL
- 메뉴 설명 (description) — string
- 가격 (price) — number
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
찜 정보 (Favorite)
- id — ObjectId — 기본 키 — NOT NULL
- 사용자 ID (user) — ObjectId — 외래 키 → 회원 정보.id — NOT NULL
- 가게 ID (store) — ObjectId — 외래 키 → 가게 정보.id — NOT NULL
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date
회원 정보 (User)
- id — ObjectId — 기본 키 — NOT NULL
- 닉네임 (nickname) — string
- 입맛 (tastePreferences) — string[] — NOT NULL
- 출생연도 (birthYear) — string
- 성별 (gender) — string
- 한줄소개 (introduction) — string — NOT NULL
- 프로필 이미지 URL (profileImageUrl) — string — NOT NULL
- 리뷰 수 (reviewCount) — number — NOT NULL
- 즐겨찾기 수 (favoriteCount) — number — NOT NULL
- 생성일시 (createdAt) — Date
- 수정일시 (updatedAt) — Date