UMC - 7th 1-Week

Tables (9)

food_category (Untitled5)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field) — varchar(6)
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

member (Untitled)

  • id (Key) — Primary key — NOT NULL
  • gender (Field) — varchar(10)
  • brithday (Field2) — varchar(10)
  • status (Field5) — varchar(20)
  • inactive_date (Field6) — datatime
  • created_at (Field7) — datetime(6)
  • updated_at (Field8) — datetime(6)
  • point (Field9) — int
  • email (Field10) — varchar(20)
  • phone_number (Field3) — varchar(20)
  • address (Field4) — varchar(100)

member_agree (Untitled3)

  • id (Key) — bigint — Primary key — NOT NULL
  • created_at (Field) — datetime(6)
  • updated_at (Field2) — datetime(6)
  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • terns_id (Key3) — bigint — Foreign key → terms.id — NOT NULL

member_mission (Untitled4)

  • id (Key) — bigint — Primary key — NOT NULL
  • created_at (Field3) — datetime(6)
  • updated_at (Field4) — datetime(6)
  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • mission_id (Key3) — bigint — Foreign key → mission.id — NOT NULL

member_review (Untitled8)

  • id (Key) — bigint — Primary key — NOT NULL
  • store_id (Field2) — bigint
  • body (Field3) — text
  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • score (Field) — float

mission (Untitled6)

  • id (Key) — bigint — Primary key — NOT NULL
  • stroe_id (Field) — bigint
  • score (Field2) — int
  • limited_date (Field3) — datetime(6)
  • misson_details (Field4) — text
  • created_at (Field5) — datetime(6)
  • updated_at (Field6) — datetime(6)
  • status (Field7) — int

prefer (Untitled2)

  • id (Key) — bigint — Primary key — NOT NULL
  • created_at (Field3) — datetime(6)
  • updated_at (Field4) — datetime(6)
  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • food_catagory_id (Key3) — bigint — Foreign key → food_category.id — NOT NULL

review_image (Untitled9)

  • id (Key) — bigint — Primary key — NOT NULL
  • image_url (Field2) — text
  • review_id (Key2) — bigint — Foreign key → member_review.id — NOT NULL
  • created_at (Field) — datetime(6)
  • updated_at (Field3) — datetime(6)

terms (Untitled7)

  • id (Key) — bigint — Primary key — NOT NULL
  • title (Field) — varchar(20)
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)