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