week1_db
Tables (12)
Alarm (알람)
- alarm_id — bigint — Primary key — NOT NULL
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
- 알람유형 (dtype) — varchar(20)
Business Hours (영업시간)
- store_id — bigint — Foreign key → Store.store_id — NOT NULL
- food_category_id — bigint — Foreign key → Store.food_category_id — NOT NULL
- 영업 시간 (work_time) — datetime
FoodCategory (음식 카테고리)
- food_category_id — bigint — Primary key — NOT NULL
- 음식 분야 (food_category) — string
FoodPreference (선호 음식)
- food_preference_id — bigint — Primary key — NOT NULL
- user_id — bigint — Foreign key → User.user_id — NOT NULL
- food_category_id — bigint — Foreign key → FoodCategory.food_category_id — NOT NULL
Inquiry (문의)
- inquiry_id — bigint — Primary key — NOT NULL
- user_id — bigint — Foreign key → User.user_id — NOT NULL
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
- 제목 (title) — string
- 문의 내용 (inquiry_content) — string
- 문의 유형 (inquiry_type) — enum
- 문의 상태 (inquiry_status) — enum
- 문의 답변 (inquiry_reply) — string
- 문의 사진 (inquiry_image_url) — string
Member Alarm (사용자 알람)
- member_alarm_id — bigint — Primary key — NOT NULL
- user_id — bigint — Foreign key → User.user_id — NOT NULL
- alarm_id (alarm_id2) — bigint — Foreign key → Alarm.alarm_id — NOT NULL
- 알람 여부 (is_activated) — boolean
Mission (미션)
- mission_id — bigint — Primary key — NOT NULL
- store_id — bigint — Foreign key → Store.store_id — NOT NULL
- 내용 (contemt) — string
- 보상 (point) — int
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
Review (후기)
- review_id — bigint — Primary key — NOT NULL
- user_id — bigint — Foreign key → User.user_id — NOT NULL
- store_id — bigint — Foreign key → Store.store_id — NOT NULL
- food_category_id — bigint — Foreign key → Store.food_category_id — NOT NULL
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
- 별점 (rate) — float
- 후기 내용 (review_content) — string
- 후기 사진 (review_image_url) — string
Review Reply (후기 답변)
- review_reply_id — Primary key — NOT NULL
- review_id — bigint — Foreign key → Review.review_id — NOT NULL
- user_id — bigint — Foreign key → Review.user_id — NOT NULL
- store_id — bigint — Foreign key → Review.store_id — NOT NULL
- food_category_id — bigint — Foreign key → Review.food_category_id — NOT NULL
- 답변 내용 (reply_content) — string
Store (가게)
- store_id — bigint — Primary key — NOT NULL
- food_category_id — bigint — Foreign key → FoodCategory.food_category_id — NOT NULL
- 가게 이름 (store_name) — varcher(20)
- 가게 주소 (store_address) — string
- 가게 사진 (store_image_url) — string
User (사용자)
- user_id — bigint — Primary key — NOT NULL
- 이름 (user_name) — varchar(20)
- 성별 (gender) — enum
- 생년월일 (birth) — date
- 주소 (address) — string
- 이메일 (email) — varcher(20)
- 전화번호 (phone_number) — varchar(20)
- 14세 이상 여부 (is_over14) — boolean
- 보유 포인트 (user_point) — bigint
- 위치정보 제공 여부 (location_access) — boolean
- 마케팅 수신 여부 (serve_marketing_notice) — boolean
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
- 삭제 일시 (deleted_at) — datetime
UserMission (사용자 미션)
- user_mission_id — bigint — Primary key — NOT NULL
- user_id — bigint — Foreign key → User.user_id — NOT NULL
- mission_id — bigint — Foreign key → Mission.mission_id — NOT NULL
- food_category_id — bigint — Foreign key — NOT NULL
- 미션 상태 (mission_status) — enum
- 인증 번호 (verify_number) — int