triple
Tables (4)
Place (장소)
- id (장소 아이디) — Primary key — NOT NULL
- name (장소명)
Point log (포인트 이력)
- id (로그 아이디) — Primary key — NOT NULL
- review_id (리뷰 아이디)
- user_id (작성자 아이디)
- event_type (이벤트 타입)
Review (리뷰)
- id (리뷰 아이디) — Primary key — NOT NULL
- place_id (장소 아이디) — Foreign key → Place.id — NOT NULL
- user_id (사용자 아이디) — Foreign key → User.id — NOT NULL
- content (내용)
- photo_ids (사진)
- status (상태)
User (사용자)
- id (사용자 아이디) — Primary key — NOT NULL
- point (포인트)