umc_8th_week1
Tables (14)
BaseEntity (공통 엔티티)
- 생성 일시 (created_at) — datetime
- 수정 일시 (updated_at) — datetime
- 삭제 일시 (deleted_at) — datetime
FoodPreference (유저 선호 음식)
- food_preference_id — int — Primary key — NOT NULL
- user_id (userId) — int — Foreign key → User.user_id — NOT NULL
- 음식 종류 (food_category) — string
Inquiry (문의)
- inquiry_id — int — Primary key — NOT NULL
- user_id (userId) — int — Foreign key → User.user_id — NOT NULL
- 제목 (title) — string
- 문의 내용 (content) — string
- 문의 유형 (inquiry_type) — enum
- 문의 상태 (inquiry_status) — enum
- 문의 답변 (inquiry_answer) — string
InquiryImage (문의 이미지)
- inquiry_image_id — int — Primary key — NOT NULL
- inquiry_id — int — Foreign key → Inquiry.inquiry_id — NOT NULL
- 이미지 경로 (image_url) — string
Mission (미션)
- mission_id — int — Primary key — NOT NULL
- store_id — int — Foreign key → Store.store_id — NOT NULL
- 조건 (condition) — string
- 보상 (reward) — int
Review (리뷰)
- review_id — int — Primary key — NOT NULL
- user_id (userId) — int — Foreign key → User.user_id — NOT NULL
- store_id — int — Foreign key → Store.store_id — NOT NULL
- 별점 (rating) — float
- 리뷰 내용 (content) — string
- 사장님 답변 (review_answer) — string
ReviewImage (리뷰 이미지)
- review_image_id — int — Primary key — NOT NULL
- review_id — int — Foreign key → Review.review_id — NOT NULL
- 이미지 경로 (image_url) — string
Store (가게)
- store_id — int — Primary key — NOT NULL
- 가게 이름 (store_name) — string
- 식당 분류 (store_type)
- 가게 주소 (address)
StoreBusinessHours (가게 영업 정보)
- store_business_hours_id — int — Primary key — NOT NULL
- store_id — int — Foreign key → Store.store_id — NOT NULL
- 영업 요일 (dayOfWeek) — enum
- 영업 시작 시간 (start_time) — datetime
- 영업 종료 시간 (end_time) — datetime
StoreImage (가게 이미지)
- store_image_id — string — Primary key — NOT NULL
- store_id — int — Foreign key → Store.store_id — NOT NULL
- 이미지 경로 (image_url) — string
User (유저)
- user_id (userId) — int — Primary key — NOT NULL
- 이름 (username) — string
- 성별 (gender) — enum
- 생년월일 (birth_date) — date
- 주소 (address) — string
- 소셜 로그인 방식 (social_login_type) — enum
- 이메일 (email) — string
- 휴대폰 번호 (phone_number) — string
UserMission (유저 미션)
- user_mission_id — int — Primary key — NOT NULL
- user_id (userId) — int — Foreign key → User.user_id — NOT NULL
- mission_id (mission_id2) — int — Foreign key → Mission.mission_id — NOT NULL
- 미션 상태 (mission_status) — enum
- 인증 번호 (verification_code) — string
UserNotice (유저 알림)
- user_id (userId) — int — Foreign key → User.user_id — NOT NULL
- 리뷰 답변 알림 (receive_review_notice) — boolean
- 문의 내역 답변 알림 (receive_inquiry_notice) — boolean
UserPermission (유저 권한)
- user_id (userId) — int — Foreign key → User.user_id — NOT NULL
- 14세 이상 여부 (age_over_fourteen) — boolean
- 위치 제공 여부 (provide_location) — boolean
- 마케팅 수신 여부 (receive_marketing_notice) — boolean
- 새로운 이벤트 수신 여부 (receive_event_notice) — boolean