week4
테이블 (6)
가게 (Untitled2)
- id — BigInt — 기본 키 — NOT NULL
- 이름 (name) — Varchar
- 주소 (address) — Varchar
- 위치 (location) — Varchar
- 평점 (star) — float
- 카테고리 (category) — Enum
댓글 (Comment)
- id — BigInt — 기본 키 — NOT NULL
- 내용 (content) — text
- 리뷰id (review_id) — BigInt
리뷰 (Review)
- id — BigInt — 기본 키 — NOT NULL
- 내용 (content) — text
- 평점 (star) — float
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
- 유저id (user_id) — BigInt
- 가게id (store_id) — BigInt
멤버 (member)
- id — Bigint — 기본 키 — NOT NULL
- 이름 (name) — Varchar
- 성별 (gender) — Enum
- 생년월일 (birth) — date
- 주소 (address) — Varchar
- 포인트 (point) — Varchar
- 이메일 (email) — Varchar
- 전화번호 (phone) — Varchar
- 생성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
- 삭제일 (deleted_at) — timestamp
미션 (Untitled)
- id — BigInt — 기본 키 — NOT NULL
- 조건금액 (price) — Int
- 마감기한 (end_date) — date
- 획득포인트 (point) — Int
- 가게id (store_id) — BigInt
유저미션 (UserMission)
- id — BigInt — 기본 키 — NOT NULL
- 도전여부 (is_possible)
- 성공여부 (is_success)
- 미션id (mission_id) — BigInt
- 유저id (user_id) — BigInt