umc-week1
Tables (7)
food_category
- id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
member
- id — BIGINT — Primary key — NOT NULL
- email — VARCHAR(255) — NOT NULL
- nickname — VARCHAR(50) — NOT NULL
- created_at — DATETIME
- updated_at — DATETIME
- 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(20) — NOT NULL
- completed_at — DATETIME
- created_at — DATETIME
mission
- id — BIGINT — Primary key — NOT NULL
- store_id — BIGINT — Foreign key → store.id — NOT NULL
- title — VARCHAR(100) — NOT NULL
- description — TEXT — NOT NULL
- reward_point — INT — NOT NULL
region
- id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
social_account
- id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.id — NOT NULL
- provider — VARCHAR(20) — NOT NULL
- provider_user_id — VARCHAR(255) — NOT NULL
- created_at — DATETIME
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(100) — NOT NULL
- address — VARCHAR(255) — NOT NULL