mission1
Tables (9)
category (Untitled9)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
mission (Untitled2)
- id (Key) — bigint — Primary key — NOT NULL
- title (Field) — VARCHAR(50)
- description (Field2) — Text
- start_date (Field4) — datetime(6)
- end_date (Field5) — datetime(6)
- status (Field6) — VARCHAR(20)
- created_at (Field7) — datetime(6)
- updated_at (Field8) — datetime(6)
- store_id (Key2) — bigint — Foreign key → store.id — NOT NULL
prefer (Untitled4)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- type (Field2) — VARCHAR(20)
- created_at (Field3) — datetime(6)
region (Untitled8)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
review (Untitled6)
- id (Key) — bigint — Primary key — NOT NULL
- rating (Field4) — TINYINT
- content (Field) — Text
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
- user_mission_id (Key4) — bigint — Foreign key → user_mission.id — NOT NULL
store (Untitled3)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(50)
- adress (Field2) — VARCHAR(255)
- description (Field3) — Text
- created_at (Field5) — datetime(6)
- updated_at (Field6) — datetime(6)
- region_id (Key2) — bigint — Foreign key → region.id — NOT NULL
- category_id (Key3) — bigint — Foreign key → category.id — NOT NULL
user (Untitled)
- id (Key) — bigint — Primary key — NOT NULL
- email (Field) — VARCHAR(20)
- password (Field2) — VARCHAR(255)
- nickname (Field3) — varchar(20)
- phone (Field4) — VARCHAR(20)
- status (Field5) — VARCHAR(20)
- created_at (Field6) — datetime(6)
- updated_at (Field7) — datetime(6)
user_mission (Untitled7)
- id (Key) — bigint — Primary key — NOT NULL
- status (Field) — VARCHAR(20)
- assigned_at (Field2) — datetime(6)
- completed_at (Field3) — datetime(6)
- created_at (Field4) — datetime(6)
- updated_at (Field5) — datetime(6)
- user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
- mission_id (Key3) — bigint — Foreign key → mission.id — NOT NULL
user_prefer (Untitled5)
- id (Key) — bigint — Primary key — NOT NULL
- created_at (Field) — datetime(6)
- user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
- prefer_id (Key3) — bigint — Foreign key → prefer.id — NOT NULL