UMC
Tables (9)
food_category
- id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
member
- id — BIGINT — Primary key — NOT NULL
- email — VARCHAR(255) — NOT NULL
- password — VARCHAR(255)
- nickname — VARCHAR(50) — NOT NULL
- created_at — DATETIME — NOT NULL
- deleted_at — DATETIME
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(30) — NOT NULL
- started_at — DATETIME
- completed_at — DATETIME
member_preferred_category
- id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.id — NOT NULL
- food_category_id — BIGINT — Foreign key → food_category.id — NOT NULL
member_social_login
- id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.id — NOT NULL
- provider — VARCHAR(30) — NOT NULL
- provider_user_id — VARCHAR(255) — NOT NULL
- created_at — DATETIME — NOT NULL
mission
- id — BIGINT — Primary key — NOT NULL
- store_id — BIGINT — Foreign key → store.id — NOT NULL
- title — VARCHAR(150) — NOT NULL
- content — VARCHAR(500) — NOT NULL
- is_active — TINYINT(1) — NOT NULL
- created_at — DATETIME — NOT NULL
region
- id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
- created_at — DATETIME — NOT NULL
review
- id — BIGINT — Primary key — NOT NULL
- member_mission_id — BIGINT — Foreign key → member_mission.id — NOT NULL
- content — VARCHAR(1000) — NOT NULL
- created_at — DATETIME — NOT NULL
store
- id — BIGINT — Primary key — NOT NULL
- region_id — BIGINT — Foreign key → region.id — NOT NULL
- food_category_id — BIGINT — Foreign key → food_category.id — NOT NULL
- name — VARCHAR(150) — NOT NULL
- address — VARCHAR(255) — NOT NULL
- description — VARCHAR(500)
- created_at — DATETIME — NOT NULL