UMC_task2

Tables (8)

category (Untitled5)

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

member (Untitled)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field) — varchar(10)
  • gender (Field2) — enum('M','F','O')
  • birthday (Field3) — date
  • address (Field4) — text
  • phone_num (Field5) — varchar(15)
  • point (Field6) — bigint
  • created_at (Field7) — datetime(6)
  • updated_at (Field8) — datetime(6)
  • status (Field9) — varchar(15)
  • inactive_date (Field10) — datetime(6)

member_mission (Untitled8)

  • 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
  • mission_status (Field) — enum('진행중','완료')
  • mission_no (Field2) — int
  • due_date (Field4) — date
  • created_at (Field5) — datetime(6)
  • updated_at (Field6) — datetime(6)

mission (Untitled4)

  • id (Key) — bigint — Primary key — NOT NULL
  • reward (Field) — int
  • mission_spec (Field2) — text
  • created_at (Field5) — datetime(6)
  • updated_at (Field3) — datetime(6)
  • store_id (Key2) — bigint — Foreign key → store.id — NOT NULL

preference (Untitled6)

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

region (Untitled7)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field) — verchar(20)

review (Untitled3)

  • id (Key) — bigint — Primary key — NOT NULL
  • member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
  • body (Field) — text
  • rating (Field2) — float
  • created_at (Field3) — datetime(6)
  • store_id (Key3) — bigint — Foreign key → store.id — NOT NULL

store (Untitled2)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field) — varchar(30)
  • address (Field2) — text
  • rating (Field3) — float
  • created_at (Field4) — datetime(6)
  • updated_at (Field5) — datetime(6)
  • category_id (Key2) — bigint — Foreign key → category.id — NOT NULL
  • region_id (Key3) — bigint — Foreign key → region.id — NOT NULL