week2
Tables (11)
food_category (Untitled9)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(15)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
member (Untitled)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- gender (Field2)
- address (Field4) — varchar(40)
- spec_address (Field5) — varchar(40)
- status (Field6)
- inactive_date (Field7) — datetime
- created_at (Field9) — datetime(6)
- updated_at (Field10) — datetime(6)
- email (Field11) — varchar(50)
- point (Field12) — int
member_agree (Untitled6)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
- terms_id (Key3) — bigint — Foreign key → terms.id — NOT NULL
- created_at (Field) — datetime(6)
- updated_at (Field2) — datetime(6)
member_mission (Untitled11)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key3) — bigint — Foreign key → member.id — NOT NULL
- mission_id (Key2) — bigint — Foreign key → mission.id — NOT NULL
- id (Key22) — bigint — Foreign key → mission.store_id — NOT NULL
- status (Field) — varchar(15)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
member_prefer (Untitled8)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
- category_id (Key3) — bigint — Foreign key → food_category.id — NOT NULL
- created_at (Field) — datetime(6)
- updated_at (Field2) — datetime(6)
mission (Untitled10)
- id (Key) — bigint — Primary key — NOT NULL
- store_id (Key2) — bigint — Foreign key → store.id — NOT NULL
- reward (Field) — int
- deadline (Field2) — datetime
- mission_spec (Field3) — text
- created_at (Field4) — datetime(6)
- updated_at (Field5) — datetime(6)
region (Untitled3)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
review (Untitled4)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
- store_id (Key3) — bigint — Foreign key → store.id — NOT NULL
- body (Field) — text
- score (Field2) — float
review_image (Untitled5)
- id (Key) — bigint — Primary key — NOT NULL
- review_id (Key2) — bigint — Foreign key → review.id — NOT NULL
- image_url (Field) — text
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
store (Untitled2)
- id (Key) — bigint — Primary key — NOT NULL
- region_id (Key2) — bigint — Foreign key → region.id — NOT NULL
- name (Field) — varchar(50)
- address (Field2) — varchar(50)
- score (Field3) — float
- created_at (Field4) — datetime(6)
- updated_at (Field5) — datetime(6)
terms (Untitled7)
- id (Key) — bigint — Primary key — NOT NULL
- title (Field) — varchar(20)
- body (Field2) — text
- optional (Field3) — boolean
- created_at (Field4) — datetime(6)
- updated_at (Field5) — datetime(6)