umc5th-Chapter4
Tables (11)
food_category (Untitled2)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(15)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
member (Member)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- gender (Field2) — varchar(10)
- age (Field3) — int
- address (Field4) — varchar(40)
- spec_address (Field5) — varchar(40)
- status (Field6) — varchar(15)
- inactive_date (Field7) — datetime
- social_type (Field8) — varchar(10)
- created_at (Field9) — datetime(6)
- updated_at (Field10) — datetime(6)
- email (Field11) — varchar(50)
- point (Field12) — int
member_agreee (Untitled3)
- 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 (Field3) — datetime(6)
- updated_at (Field4) — datetime(6)
member_mission (Untitled5)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
- mission_id (Key3) — bigint — Foreign key → mission.id — NOT NULL
- status (Field3) — varchar(15)
- created_at (Field4) — datetime(6)
- updated_at (Field5) — datetime(6)
member_prefer (Untitled)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
- category_id (Key4) — bigint — Foreign key → food_category.id — NOT NULL
- member_id (Field) — bigint
- category_id (Field2) — bigint
- created_at (Field3) — datetime(6)
- updated_at (Field4) — datetime(6)
mission (Untitled10)
- id (Key) — bigint — Primary key — NOT NULL
- store_id (Key2) — bigint — Foreign key → store.id — NOT NULL
- reward (Field2) — int
- deadline (Field3) — datetime
- mission_spec (Field4) — text
- created_at (Field5) — datetime(6)
- updated_at (Field6) — datetime(6)
region (Untitled8)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
review (Untitled6)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key3) — bigint — Foreign key → member.id — NOT NULL
- store_id (Key2) — bigint — Foreign key → store.id — NOT NULL
- body (Field3) — text
- score (Field4) — float
review_image (Untitled7)
- id (Key) — bigint — Primary key — NOT NULL
- review_id (Key2) — bigint — Foreign key → review.id — NOT NULL
- review_id (Field) — bigint
- image_url (Field2) — text
- created_at (Field3) — datetime(6)
- updated_at (Field4) — datetime(6)
store (Untitled9)
- id (Key) — bigint — Primary key — NOT NULL
- region_id (Key2) — bigint — Foreign key → region.id — NOT NULL
- name (Field2) — varchar(50)
- address (Field3) — varchar(50)
- score (Field4) — float
- created_at (Field5) — datetime(6)
- updated_at (Field6) — datetime(6)
terms (Untitled4)
- 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)