트리플 API
테이블 (5)
Photo (첨부이미지)
- photoId (Key) — 기본 키 — NOT NULL
- reviewId (Key2) — 외래 키 → Review.reviewId — NOT NULL
Place (장소)
- placeId (Key) — 기본 키 — NOT NULL
PointHistory (포인트 히스토리)
- id (Key) — 기본 키 — NOT NULL
- reviewId (Key3) — 외래 키 → Review.reviewId — NOT NULL
- userId (Key4) — 외래 키 → User.userId — NOT NULL
- point (Field)
- state (Field2)
Review (리뷰)
- reviewId (PK) — 기본 키 — NOT NULL
- content (Field)
- isUse (Field4)
- insDate (Field2)
- updDate (Field3)
- userId (Key2) — 외래 키 → User.userId — NOT NULL
- placeId (Key3) — 외래 키 → Place.placeId — NOT NULL
User (사용자)
- userId (PK) — 기본 키 — NOT NULL
- username (Field)