UMC_CH01
Tables (7)
mission (Untitled5)
- mission_id (Key) — INT — Primary key — NOT NULL
- title (Field) — VARCHAR(100)
- decription (Field2) — TEXT
- reward (Field3) — INT
- created_at (Field4) — TIMESTAMP
- updated_at (Field5) — TIMESTAMP
- store_id (Key2) — INT — Foreign key → store.store_id — NOT NULL
region (Untitled3)
- region_id (Key) — INT — Primary key — NOT NULL
- name (Field) — VARCHAR(50)
review (Untitled7)
- review_id (Key) — INT — Primary key — NOT NULL
- rating (Field) — TINYINT
- content (Field2) — TEXT
- created_at (Field3) — TIMESTAMP
- updated_at (Field4) — TIMESTAMP
- store_id (Key3) — INT — Foreign key → store.store_id — NOT NULL
- user_id (Key2) — INT — Foreign key → user.user_id — NOT NULL
social_account (Untitled2)
- Key — Primary key — NOT NULL
- provider (Field) — VARCHAR(30)
- provider_user_id (Field2) — VARCHAR(100)
- created_at (Field3) — TIMESTAMP
- user_id (Key2) — INT — Foreign key → user.user_id — NOT NULL
store (Untitled4)
- store_id (Key) — INT — Primary key — NOT NULL
- name (Field) — VARCHAR(100)
- region_id (Key2) — INT — Foreign key → region.region_id — NOT NULL
user (Untitled)
- user_id (Key) — INT — Primary key — NOT NULL
- email (Field) — VARCHAR(100)
- password (Field2) — VARCHAR(255)
- nickname (Field3) — VARCHAR(50)
- created_at (Field4) — TIMESTAMP
- updated_at (Field5) — TIMESTAMP
user_mission (Untitled6)
- user_mission_id (Key) — INT — Primary key — NOT NULL
- mission_id (Key2) — INT — Foreign key → mission.mission_id — NOT NULL
- user_id (Key3) — INT — Foreign key → user.user_id — NOT NULL
- status (Field) — VARCHAR(20)
- created_at (Field2) — TIMESTAMP
- updated_at (Field3) — TIMESTAMP
- completed_at (Field4) — DATETIME NULL