glog
Tables (4)
likes
- id — uuid — Primary key — NOT NULL
- 사용자 ID (userId) — uuid — Foreign key → users.id — NOT NULL
- 게시글 ID (postId) — uuid — Foreign key → posts.id — NOT NULL
- id (id2) — uuid — Foreign key → posts.사용자 ID — NOT NULL
- 좋아요 시각 (createdAt) — timestampz
posts
- id — uuid — Primary key — NOT NULL
- 사용자 ID (userId) — uuid — Foreign key → users.id — NOT NULL
- 내용 (contents) — text
- 이미지 (images) — text
- 나라 (countryId) — text
- 지역 (regionId) — text
- 위도 (latitude) — float8
- 경도 (longitude) — float8
- 작성 시각 (createdAt) — timestampz
- 공개 여부 (private) — bool
- 주소 (address) — text
users
- id — uuid — Primary key — NOT NULL
- 이메일 (email) — text
- 이름 (name) — text
- 프로필 사진 (profileImg) — text