ybe_final
Tables (12)
comment (댓글)
- 댓글 아이디 (comment_id) — long — Primary key — NOT NULL
- 리뷰 아이디 (review_id) — long — Foreign key → review.리뷰 아이디 — NOT NULL
- 사용자 아이디 (user_id) — long — Foreign key → member.사용자 아이디 — NOT NULL
- 댓글 내용 (content) — string
- 생성 시간 (created_time) — localdatetime
keyword (키워드)
- 키워드 아이디 (keyword_id) — long — Primary key — NOT NULL
- 키워드 내용 (content) — string
- 타입 (type) — enum
like_item (관심 여행지)
- 관심 상품 아이디 (like_item_id) — long — Primary key — NOT NULL
- 사용자 아이디 (user_id) — long — Foreign key → member.사용자 아이디 — NOT NULL
- 여행 아이템 아이디 (tour_item_id) — long — Foreign key → tour_item.여행 아이템 아이디 — NOT NULL
member (사용자)
- 사용자 아이디 (member_id) — long — Primary key — NOT NULL
- 이메일 (email) — string
- 비밀번호 (password) — string
- 이름 (name) — string
- 프로필 사진 (profile_image) — string
- 설문 데이터 (survey) — json
- 로그인 방식 (login_type) — enum
- 생성 시간 (created_time) — localdatetime
review (리뷰)
- 리뷰 아이디 (review_id) — long — Primary key — NOT NULL
- 사용자 아이디 (user_id) — long — Foreign key → member.사용자 아이디 — NOT NULL
- 여행 아이템 아이디 (tour_item_id) — long — Foreign key → tour_item.여행 아이템 아이디 — NOT NULL
- 별점 (rating) — long
- 리뷰 글 (content) — string
- 생성 시간 (created_time) — localdatetime
review_keyword (리뷰 키워드)
- 리뷰 키워드 아이디 (review_keyword_id) — long — Primary key — NOT NULL
- 리뷰 아이디 (review_id) — long — Foreign key → review.리뷰 아이디 — NOT NULL
- 키워드 아이디 (keyword_id) — long — Foreign key → keyword.키워드 아이디 — NOT NULL
tour_item (음식점, 숙박 업소, 관광지 같은 관광 상품)
- 여행 아이템 아이디 (tour_item_id) — long — Primary key — NOT NULL
- api 아이디 (content_id) — long
- 여행 아이템 타입 아이디 (content_type_id) — long
- 지역 코드 (area_code) — long
- 시군구 코드 (sub_area_code) — long
- 주소 (address) — string
- 상세 주소 (detailed_address) — string
- 작은 썸네일 (small_thumbnail) — string
- 원본 썸네일 (original_thumbnail) — string
- 여행지 이름 (title) — string
- 우편번호 (zipcode) — string
- 전화번호 (tel) — string
- x 좌표 (map_x) — string
- y 좌표 (map_y) — string
tour_item_detail (관광상품 상세 데이터)
- 아이디 (tour_item_detail_id) — long — Primary key — NOT NULL
- 여행 아이템 아이디 (tour_item_id) — long — Foreign key → tour_item.여행 아이템 아이디 — NOT NULL
- 내용 (content) — json
tour_item_image (관광 상품 이미지)
- 아이디 (tour_item_image_id) — long — Primary key — NOT NULL
- 여행 아이템 아이디 (tour_item_id) — long — Foreign key → tour_item.여행 아이템 아이디 — NOT NULL
- 내용 (content) — json
trip (여정)
- 여정 아이디 (trip_id) — long — Primary key — NOT NULL
- 사용자 아이디 (user_id) — long — Foreign key → member.사용자 아이디 — NOT NULL
- 인원 수 (number_of_people) — long
- 여정 시작일 (start_date) — localdate
- 여정 종료일 (end_date) — localdate
- 출발지 (departure) — string
- 도착지 (destination) — string
trip_item (여정 방문 장소)
- 여정 장소 아이디 (trip_item_id) — long — Primary key — NOT NULL
- 여정 아이디 (trip_id) — long — Foreign key → trip.여정 아이디 — NOT NULL
- 여행 아이템 아이디 (tour_item_id) — long — Foreign key → tour_item.여행 아이템 아이디 — NOT NULL
- 사용자 아이디 (user_id) — long — Foreign key → member.사용자 아이디 — NOT NULL
- 이동수단 (transportation) — enum
- 방문 순서 (seq_num) — long
- 방문 날짜 (visit_date) — localdate
- 예상 비용 (price) — long
trip_user (여정 권한 관리 테이블)
- 여점 참여자 아이디 (trip_user_id) — long — Primary key — NOT NULL
- 사용자 아이디 (user_id) — long — Foreign key → member.사용자 아이디 — NOT NULL
- 여정 아이디 (trip_id) — long — Foreign key → trip.여정 아이디 — NOT NULL
- 권한 (authority) — enum