umc
Tables (11)
food_category
- food_category_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
member
- member_id — BIGINT — Primary key — NOT NULL
- email — VARCHAR(255) — NOT NULL
- password_hash — VARCHAR(255)
- nickname — VARCHAR(50) — NOT NULL
- created_at — DATETIME — NOT NULL
- status — VARCHAR(20) — 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) — NOT NULL
- started_at — DATETIME
- completed_at — DATETIME
- proof_image_url — VARCHAR(500)
- awarded_point — INT
- UNIQUE(member_id, — mission_id)
member_preference
- preference_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — NOT NULL
- preferred_region_id — BIGINT
- preferred_food_category_id — BIGINT
- completed_at — DATETIME
mission
- mission_id — BIGINT — Primary key — NOT NULL
- region_id — BIGINT — Foreign key → region.region_id — NOT NULL
- store_id — BIGINT — Foreign key → store.store_id — NOT NULL
- title — VARCHAR(200) — NOT NULL
- description — TEXT — NOT NULL
- difficulty — VARCHAR(20) — NOT NULL
- reward_point — INT — NOT NULL
- mission_order — INT — NOT NULL
- is_active — BOOLEAN — NOT NULL
- UNIQUE(region_id, — mission_order)
mission_review
- review_id — BIGINT — Primary key — NOT NULL
- member_mission_id — BIGINT — NOT NULL
- rating — INT — NOT NULL
- content — TEXT
- created_at — DATETIME — NOT NULL
notification
- notification_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — NOT NULL
- type — VARCHAR(30) — NOT NULL
- title — VARCHAR(200) — NOT NULL
- message — TEXT — NOT NULL
- is_read — BOOLEAN — NOT NULL
- created_at — DATETIME — NOT NULL
point_history
- point_history_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — NOT NULL
- member_mission_id — BIGINT
- amount — INT — NOT NULL
- reason — VARCHAR(100) — NOT NULL
- created_at — DATETIME — NOT NULL
region
- region_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
- description — TEXT
- image_url — VARCHAR(500)
social_login
- social_login_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- provider — VARCHAR(30) — NOT NULL
- provider_user_id — VARCHAR(255) — NOT NULL
- created_at — DATETIME — NOT NULL
- UNIQUE(provider, — provider_user_id)
store
- store_id — BIGINT — Primary key — NOT NULL
- region_id — BIGINT — Foreign key → region.region_id — NOT NULL
- food_category_id — BIGINT — Foreign key → food_category.food_category_id
- name — VARCHAR(150) — NOT NULL
- address — VARCHAR(255) — NOT NULL
- description — TEXT
- image_url — VARCHAR(500)
- is_active — BOOLEAN — NOT NULL