Spotly
테이블 (11)
게시글 댓글 (PT_POST_COMMENTS)
- idx — numeric — 기본 키 — NOT NULL — PK
- post_idx — numeric — 외래 키 → 게시글 목록.idx — NOT NULL — 게시글 PK
- place_idx — numeric — 외래 키 → 게시글 목록.place_idx — NOT NULL — 장소 PK
- user_idx — numeric — 외래 키 → 게시글 목록.user_idx — NOT NULL — 사용자 PK
- parent comment idx (parent cmnt_idx) — numeric — NOT NULL — 부모 댓글 PK
- content — TEXT — NOT NULL — 댓글 내용
- create_date — timestamp — NOT NULL — 생성일자
- delete_date — timestamp — 삭제일자
게시글 목록 (TB_BOARD_POSTS)
- idx — numeric — 기본 키 — NOT NULL — PK
- place_idx — numeric — 외래 키 → 장소 목록.idx — NOT NULL — 장소 PK
- user_idx — numeric — 외래 키 → 장소 목록.user_idx — NOT NULL — 사용자 PK
- caption — TEXT — NOT NULL — 게시글 설명
- like count (like_cnt) — numeric — NOT NULL — 게시글 좋아요
- view count (view_cnt) — numeric — NOT NULL — 조회수
- comment count (cmnt_cnt) — numeric — NOT NULL — 댓글 수
- create_date — timestamp — NOT NULL — 생성일자
- update_date — timestamp — 수정일자
- delete_date — timestamp — 삭제일자
게시글 이미지 목록 (PT_POST_IMAGES)
- idx (PK) — numeric — 기본 키 — NOT NULL — PK
- post_idx — numeric — 외래 키 → 게시글 목록.idx — NOT NULL — 게시글 PK
- place_idx — numeric — 외래 키 → 게시글 목록.place_idx — NOT NULL — 장소 PK
- user_idx — numeric — 외래 키 → 게시글 목록.user_idx — NOT NULL — 사용자 IDX
- post image url (post_img_url) — TEXT — NOT NULL — 이미지 URL
- order code (order_code) — numeric — NOT NULL — 정렬 번호
- create_date — timestamp — NOT NULL — 생성일자
- delete_date — timestamp — 삭제일자
게시글 좋아요 목록 (TB_POST_LIKES)
- post_idx — numeric — 외래 키 → 게시글 목록.idx — NOT NULL — 게시글 PK
- place_idx — numeric — 외래 키 → 게시글 목록.place_idx — NOT NULL — 장소 PK
- user_idx — numeric — 외래 키 → 게시글 목록.user_idx — NOT NULL — 사용자 PK
- create_date — timestamp — NOT NULL — 생성일자
게시글 태그 (TB_POST_TAGS)
- idx (PK) — numeric — 외래 키 → 게시글 목록.idx — NOT NULL — PK
- place_idx — numeric — 외래 키 → 게시글 목록.place_idx — NOT NULL — 장소 PK
- user_idx — numeric — 외래 키 → 게시글 목록.user_idx — NOT NULL — 사용자 PK
- tag_idx — numeric — 외래 키 → 태그 목록.idx — NOT NULL — 태그 PK
- create_date — timestamp — NOT NULL — 생성일자
북마크 (TB_BOOKMARKS)
- post_idx — numeric — 외래 키 → 게시글 목록.idx — NOT NULL — PK
- place_idx — numeric — 외래 키 → 게시글 목록.place_idx — NOT NULL — 장소 PK
- user_idx — numeric — 외래 키 → 게시글 목록.user_idx — NOT NULL — 사용자 IDX
- create_date — timestamp — NOT NULL — 생성일자
사용자 정보 (TB_USER_INFO)
- idx — numeric — 기본 키 — NOT NULL — PK
- id — varchar(30) — NOT NULL — 사용자 아이디
- password (pwd) — varchar(100) — NOT NULL — 비밀번호(암호화
- email — varchar(30) — NOT NULL — 이메일
- phone_number — varchar(20) — NOT NULL — 전화번호
- name — varchar(20) — NOT NULL — 이름
- nike_name (n_name) — varchar(30) — NOT NULL — 사용자명
- profile image (profile_img) — varchar(50) — 사용자 프로필
- profile desc (profile_desc) — TEXT — 사용자 설명
- login date (login_date) — timestamp — 로그인 일자
- create_date — timestamp — NOT NULL — 생성일자
- update_date — timestamp — 수정일자
- delete_date — timestamp — 삭제일자
장소 목록 (TB_PLACES)
- idx — numeric — 기본 키 — NOT NULL — PK
- user_idx (user idx) — numeric — 외래 키 → 사용자 정보.idx — NOT NULL — 사용자 IDX
- title — varchat(255) — NOT NULL — 장소명
- description (desc) — TEXT — 장소 설명
- latitude — numeric(10,7) — NOT NULL — 위도
- longitude — numeric(10,7) — NOT NULL — 경도
- geom — GEOGRAPHY(POINT, 4326) — NOT NULL — 좌표계
- address (addr) — TEXT — 주소
- thumnail_img — varchar(225) — 장소사진
- post count (post_cnt) — numeric — NOT NULL — 게시글 수
- like count (like_cnt) — numeric — NOT NULL — 좋아요 수
- bookmark count (bookmark_cnt) — numeric — NOT NULL — 북마크 수
- average_score — numeric — NOT NULL — 평균 평점
- create_date — timestamp — NOT NULL — 생성일자
- update_date — timestamp — 수정일자
- delete_date — timestamp — 삭제일자
장소 좋아요 목록 (TB_PLACES_LIKES)
- place_idx — numeric — 외래 키 → 장소 목록.idx — NOT NULL — PK
- user_idx — numeric — 외래 키 → 장소 목록.user_idx — NOT NULL — 사용자 IDX
- create_date — timestamp — NOT NULL — 생성일자
태그 목록 (TB_TAGS)
- idx — numeric — 기본 키 — NOT NULL — PK
- name — varchar(30) — NOT NULL — 태그명
- create_date — timestamp — NOT NULL — 생성일자
팔로우 관리 (TB_FOLLOWS)
- idx — numeric — 기본 키 — NOT NULL — PK
- user_idx — numeric — 외래 키 → 사용자 정보.idx — NOT NULL — 사용자 IDX
- target_user_idx — numeric — NOT NULL — 팔로우 대상자
- create_date — timestamp — NOT NULL — 생성일자
- delete_date — teimstamp — 삭제 일자