ume11 - 1week
Tables (8)
food_category
- food_category_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
member
- member_id — BIGINT — Primary key — NOT NULL
- nickname — VARCHAR(50) — NOT NULL
- gender — VARCHAR(10)
- birth_date — DATE
- address — VARCHAR(255)
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
- deleted_at — DATETIME
member_food_category
- member_food_category_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
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 — VARCHAR(20) — NOT NULL
- started_at — DATETIME
- completed_at — DATETIME
mission
- mission_id — BIGINT — Primary key — NOT NULL
- store_id — BIGINT — Foreign key → store.store_id — NOT NULL
- content — VARCHAR(255) — NOT NULL
- reward_point — INT — NOT NULL
- deadline — DATE
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
region
- region_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
social_account
- social_account_id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.member_id — NOT NULL
- provider — VARCHAR(20) — NOT NULL
- social_id — VARCHAR(255) — 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
- address — VARCHAR(255) — NOT NULL
- rating — DECIMAL(2,1)
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
- deleted_at — DATETIME