WEEK1

Tables (7)

food_category

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

member

  • member_id — BIGINT — Primary key — NOT NULL
  • name — VARCHAR(50) — NOT NULL
  • point — INT — NOT NULL
  • status — ENUM('ACTIVE', 'INACTIVE') — NOT NULL
  • created_at — TIMESTAMP — NOT NULL
  • updated_at — TIMESTAMP

member_mission

  • member_mission_id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.member_id — NOT NULL
  • mission_id — BIGINT — Foreign key → mission.mission_id — NOT NULL
  • status — ENUM('CHALLENGING', 'COMPLETE') — NOT NULL
  • created_at — TIMESTAMP — NOT NULL
  • updated_at — TIMESTAMP

mission

  • mission_id — BIGINT — Primary key — NOT NULL
  • reward_point — INT — NOT NULL
  • deadline — TIMESTAMP — NOT NULL
  • spec — TEXT — NOT NULL
  • store_id — BIGINT — Foreign key → store.store_id — NOT NULL

region

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

social_login

  • social_login_id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key → member.member_id — NOT NULL
  • social_uid — VARCHAR(255) — NOT NULL
  • created_at — TIMESTAMP — NOT NULL
  • updated_at — TIMESTAMP
  • social_provider — ENUM('KAKAO','NAVER','APPLE') — NOT NULL

store

  • 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) — NOT NULL
  • address — VARCHAR(255) — NOT NULL
  • score — FLOAT — NOT NULL