week1
Tables (9)
food_category
- category_id — BIGINT — Primary key — NOT NULL
- category_name — VARCHAR(30) — NOT NULL
member
- member_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
- gender — VARCHAR(10)
- birth_date — DATE
- address — VARCHAR(200)
- email — VARCHAR(100)
- phone — VARCHAR(20)
- nickname — VARCHAR(50)
- point — INT
- created_at — DATETIME
member_food_preference
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- category_id — BIGINT — Foreign key → food_category.category_id — NOT NULL
member_mission
- member_mission_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- mission_id — BIGINT — Foreign key → mission.mission_id — NOT NULL
- status — VARCHAR(20)
- verification_code — VARCHAR(20)
- completed_at — DATETIME
mission
- mission_id — BIGINT — Primary key — NOT NULL
- store_id — BIGINT — Foreign key → store.store_id — NOT NULL
- title — VARCHAR(100) — NOT NULL
- condition_amount — INT
- reward_point — INT — NOT NULL
- end_date — DATE
region
- region_id — BIGINT — Primary key — NOT NULL
- region_name — VARCHAR(50) — NOT NULL
review
- review_id — BIGINT — Primary key — NOT NULL
- member_mission_id — BIGINT — Foreign key → member_mission.member_mission_id — NOT NULL
- rating — TINYINT — NOT NULL
- content — VARCHAR(1000)
- photo_url — VARCHAR(300)
- created_at — DATETIME
social_login
- social_login_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- provider — VARCHAR(20) — NOT NULL
- social_uid — VARCHAR(100) — NOT NULL
store
- store_id — BIGINT — Primary key — NOT NULL
- region_id — BIGINT — Foreign key → region.region_id — NOT NULL
- category_id — BIGINT — Foreign key → food_category.category_id — NOT NULL
- store_name — VARCHAR(100) — NOT NULL
- address — VARCHAR(200)
- phone — VARCHAR(20)