UMC-11

Tables (11)

food_category

  • id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(15) — NOT NULL

member

  • id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(20) — NOT NULL
  • gender — VARCHAR(10) — NOT NULL
  • birth — DATE — NOT NULL
  • address — VARCHAR(40) — NOT NULL
  • email — VARCHAR(50)
  • phone_number — VARCHAR(20)
  • point — INT — NOT NULL
  • status — VARCHAR(15) — NOT NULL
  • inactive_date — DATETIME
  • social_type — VARCHAR(10) — NOT NULL
  • social_id — VARCHAR(100) — NOT NULL
  • created_at — DATETIME — NOT NULL
  • updated_at — DATETIME — NOT NULL

member_agree

  • id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.id — NOT NULL
  • terms_id — BIGINT — Foreign key → terms.id — NOT NULL
  • created_at — DATETIME — NOT NULL
  • Field

member_mission

  • id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.id — NOT NULL
  • mission_id — BIGINT — Foreign key → mission.id — NOT NULL
  • status — VARCHAR(15) — NOT NULL
  • created_at — DATETIME — NOT NULL
  • completed_at — DATETIME

member_prefer

  • id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.id — NOT NULL
  • food_category_id — BIGINT — Foreign key → food_category.id — NOT NULL

mission

  • id — BIGINT — Primary key — NOT NULL
  • store_id — BIGINT — Foreign key → store.id — NOT NULL
  • reward — INT — NOT NULL
  • mission_spec — TEXT — NOT NULL
  • deadline — DATETIME — NOT NULL
  • created_at — DATETIME — NOT NULL

region

  • id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(20) — NOT NULL

review

  • id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.id — NOT NULL
  • store_id — BIGINT — Foreign key → store.id — NOT NULL
  • body — TEXT — NOT NULL
  • score — FLOAT — NOT NULL
  • created_at — DATETIME — NOT NULL

review_image

  • id — BIGINT — Primary key — NOT NULL
  • review_id — BIGINT — Foreign key → review.id — NOT NULL
  • image_url — VARCHAR(255) — NOT NULL

store

  • id — BIGINT — Primary key — NOT NULL
  • region_id — BIGINT — Foreign key → region.id — NOT NULL
  • food_category_id — BIGINT — Foreign key → food_category.id
  • name — VARCHAR(50) — NOT NULL
  • address — VARCHAR(50) — NOT NULL
  • score — FLOAT — NOT NULL
  • created_at — DATETIME — NOT NULL

terms

  • id — BIGINT — Primary key — NOT NULL
  • title — VARCHAR(30) — NOT NULL
  • body — TEXT — NOT NULL
  • is_required — BOOLEAN — NOT NULL