Mission1_reward
Tables (10)
food_category
- food_category_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
- created_at — DATETIME — NOT NULL
member
- member_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
- nickname — VARCHAR(50) — NOT NULL
- gender — ENUM('NONE', 'MALE', 'FEMALE') — NOT NULL
- birth_date — DATE
- phone_number — VARCHAR(20)
- email — VARCHAR(100)
- address — VARCHAR(255)
- point_balance — BIGINT — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
- deleted_at — DATETIME
member_food_preference
- member_food_preference_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
- created_at — DATETIME — NOT NULL
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('NOT_STARTED', 'IN_PROGRESS', 'COMPLETED') — NOT NULL
- started_at — DATETIME
- completed_at — DATETIME
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
mission
- mission_id — BIGINT — Primary key — NOT NULL
- store_id — BIGINT — Foreign key → store.store_id — NOT NULL
- title — VARCHAR(100) — NOT NULL
- description — TEXT — NOT NULL
- reward_point — BIGINT — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
point_history
- point_history_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- member_mission_id — BIGINT — Foreign key → member_mission.member_mission_id
- point_type — ENUM('EARN', 'USE') — NOT NULL
- amount — BIGINT — NOT NULL
- description — VARCHAR(255)
- created_at — DATETIME — NOT NULL
region
- region_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
- description — VARCHAR(255)
- created_at — DATETIME — NOT NULL
review
- review_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- store_id — BIGINT — Foreign key → store.store_id — NOT NULL
- member_mission_id — BIGINT — Foreign key → member_mission.member_mission_id
- rating — INT — NOT NULL
- content — TEXT — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
- deleted_at — DATETIME
social_account
- social_account_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- provider — ENUM('KAKAO', 'NAVER', 'GOOGLE', 'APPLE') — NOT NULL
- provider_user_id — VARCHAR(100) — NOT NULL
- created_at — DATETIME — 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(100) — NOT NULL
- description — TEXT
- address — VARCHAR(255) — NOT NULL
- image_url — VARCHAR(500)
- phone_number — VARCHAR(20)
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL