week1

Tables (8)

food_category (Untitled4)

  • food_category_id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(50)

member (Untitled)

  • member_id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(50)
  • nickname — VARCHAR(50)
  • phone_number — VARCHAR(20)
  • gender — VARCHAR(20)
  • created_at — DATETIME
  • updated_at — DATETIME
  • deleted_at — DATETIME

member_food_category (Untitled5)

  • member_food_category_id (member_food_catergory_id) — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.member_id — NOT NULL
  • food_category_id — BIGINT — Foreign key → food_category.food_category_id — NOT NULL

member_mission (Untitled8)

  • member_mission_id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.member_id — NOT NULL
  • mission_id (mission_id2) — BIGINT — Foreign key → mission.mission_id — NOT NULL
  • status — VARCHAR(20)
  • assigned_at — DATETIME
  • started_at — DATETIME
  • completed_at — DATETIME

mission (Untitled7)

  • mission_id — BIGINT — Primary key — NOT NULL
  • store_id — BIGINT — Foreign key → store.store_id — NOT NULL
  • title — VARCHAR(50)
  • description — TEXT
  • created_at — DATETIME
  • updated_at — DATETIME

region (Untitled3)

  • region_id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(50)
  • created_at — DATETIME

social_account (Untitled2)

  • social_account_id — BIGINT — Primary key — NOT NULL
  • member_id (member_id2) — BIGINT — Foreign key → member.member_id — NOT NULL
  • provider — VARCHAR(20)
  • provider_user_id — VARCHAR(255)
  • created_at — DATETIME
  • member_id — BIGINT — NOT NULL

store (Untitled6)

  • store_id — BIGINT — Primary key — NOT NULL
  • region_id — BIGINT — Foreign key → region.region_id — NOT NULL
  • food_category_id — BIGINT — Foreign key → food_category.food_category_id — NOT NULL
  • name — VARCHAR(50)
  • address — VARCHAR(255)
  • description — TEXT
  • created_at — DATETIME
  • updated_at — DATETIME