UMC
Tables (6)
Missions
- 미션 식별자 (mission_id) — BIGINT — Primary key — NOT NULL
- 가계 식별자 (store_id) — BIGINT — Foreign key → Stores.가계 식별자 — NOT NULL
- 미션 제목 (title) — VARCHAR(100)
- 미션 설정 (description) — TEXT
- 보상 표인트 (reward_points)
Notifications
- 알림 식별자 (notification_id) — BIGINT — Primary key — NOT NULL
- 고객 식별자 (user_id) — BIGINT — Foreign key → Users.고객 식별자 — NOT NULL
- 알림 내용 (message) — VARCHAR(255)
- 읽음 여부 (is_read) — BOOLEAN
- 생성일시 (created_at) — DATETIME
Reviews
- 리뷰 식별자 (review_id) — BIGINT — Primary key — NOT NULL
- 수행미션 식별자 (user_mission_id) — BIGINT — Foreign key → User_Missions.수행미션 식별자 — NOT NULL
- 리뷰 내용 (content) — TEXT
- 별점 (rating) — TINYINT
- 작성일시 (created_at) — DATETIME
- Field
Stores
- 가계 식별자 (store_id) — BIGINT — Primary key — NOT NULL
- 가게 이름 (name) — VARCHAR(100)
- 주소 (address) — VARCHAR(255)
- 위도 (latitude) — DECIMAL(10, 8)
- 경도 (longtitude) — DECIMAL(11, 8)
User_Missions
- 수행미션 식별자 (user_mission_id) — BIGINT — Primary key — NOT NULL
- 고객 식별자 (user_id) — BIGINT — Foreign key → Users.고객 식별자 — NOT NULL
- 미션 식별자 (mission_id) — BIGINT — Foreign key → Missions.미션 식별자 — NOT NULL
- 미션 상태 (status) — VARCHAR(20)
- 미션 할당일시 (assigned_at) — DATETIME
- 미션 완료일시 (completed_at) — DATETIME
Users
- 고객 식별자 (user_id) — BIGINT — Primary key — NOT NULL
- 이메일 (email) — VARCHAR(255)
- 비밀번호 (password) — VARCHAR(255)
- 닉네임 (nickname) — VARCHAR(255)
- 보유 포인트 (points) — INT
- 가입일시 (created_at) — DATETIME
- 계정 상태 (status) — VARCHAR(20)