MVP IA

Tables (11)

food (Untitled2)

  • id (Key) — bigint — Primary key — NOT NULL
  • food_name (Field2) — varchar(15)

inquiry (Untitled7)

  • id (Key) — bigint — Primary key — NOT NULL
  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • title (Field) — varchar(100)
  • contents (Field2) — text
  • status (Field3) — varchar(15)
  • created_at (Field4) — datetime(6)
  • updated_at (Field5) — datetime(6)

inquiry_image (Untitled9)

  • id (Key) — bigint — Primary key — NOT NULL
  • inquiry_id (Key3) — bigint — Foreign key → inquiry.id — NOT NULL
  • inquiry_image_name (Field2) — varchar(15)
  • inquiry_image_url (Field) — text

member (Untitled)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field2) — varchar(10)
  • gender (Field3) — varchar(10)
  • birth (Field8) — Date
  • address (Field) — varchar(255)
  • nickname (Field10) — varchar(20)
  • created_at (Field4) — datetime(6)
  • updated_at (Field5) — datetime(6)
  • status (Field6) — varchar(15)
  • inactive_date (Field7) — datetime
  • total_point (Field9) — bigint

member_favorite_food (Untitled3)

  • food_id (Key2) — bigint — Foreign key → food.id — NOT NULL
  • member_id (Key3) — bigint — Foreign key → member.id — NOT NULL

member_mission (Untitled5)

  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • mission_id (Key) — bigint — Foreign key → mission.id — NOT NULL
  • created_at (Field) — datetime(6)
  • completed_at (Field2) — datetime(6)
  • status (Field3) — varchar(15)

mission (Untitled4)

  • id (Key) — bigint — Primary key — NOT NULL
  • store_id (Key2) — bigint — Foreign key → store.id — NOT NULL
  • mission_name (Field) — varchar(30)
  • created_at (Field2) — datetime(6)
  • finished_at (Field3) — datetime(6)
  • point (Field5) — int(10)
  • minimum_amount (Field4) — int(20)

region (Untitled10)

  • id (Key) — bigint — Primary key — NOT NULL
  • region_name (Field) — varchar(50)

store (CopyOfUntitled2)

  • id (Key) — bigint — Primary key — NOT NULL
  • region_id (Key2) — bigint — Foreign key → region.id — NOT NULL
  • food_id (Key3) — bigint — Foreign key → food.id — NOT NULL
  • store_name (Field2) — varchar(15)
  • store_adress (Field) — text
  • score (Field5) — float(5)
  • business_status (Field6) — varchar(15)
  • image_url (Field7) — text

store_review (Untitled6)

  • id (Key) — bigint — Primary key — NOT NULL
  • store_id (Key2) — bigint — Foreign key → store.id — NOT NULL
  • nickname (Field) — varchar(10)
  • score (Field2) — float(5)
  • created_at (Field3) — datetime(6)
  • updated_at (Field4) — datetime(6)
  • contents (Field5) — text
  • member_id (Key3) — bigint — Foreign key → member.id — NOT NULL

store_review_image (Untitled8)

  • id (Key) — bigint — Primary key — NOT NULL
  • store_review_id (Key2) — bigint — Foreign key → store_review.id — NOT NULL
  • store_review_image_name (Field) — varchar(15)
  • store_review_image_url (Field2) — text