ybe_mini_proj

Tables (10)

accommodate (숙박 상품)

  • 아이디 (accommodation_id) — long — Primary key — NOT NULL
  • 카테고리 아이디 (category_id) — long — Foreign key → category.아이디 — NOT NULL
  • 지역 아이디 (region_id) — long — Foreign key → region.아이디 — NOT NULL
  • 상품명 (name) — string
  • 상품 이미지 (accomodation_image) — JSON
  • 상품 설명 (desciption) — string
  • 썸네일 이미지 (thumbnail_image_url) — string
  • 주소 (address) — string

accommodation_image (상품 이미지)

  • 상세 페이지 메인 이미지 (main_image_urls) — list of string

cart_product (장바구니 상품)

  • 아이디 (cart_product_id) — long — Primary key — NOT NULL
  • 상품 아이디 (accommodation_id) — long — Foreign key → accommodate.아이디 — NOT NULL
  • 유저 아이디 (user_id) — long — Foreign key → user.아이디 — NOT NULL — 유저 아이디
  • 룸 옵션 아이디 (room_option_id) — long — Foreign key → room_option.아이디 — NOT NULL
  • 예약 정보 (reservation_info) — embedded_class

category (카테고리)

  • 아이디 (category_id) — long — Primary key — NOT NULL
  • 카테고리 이름 (name) — string

region (지역)

  • 아이디 (region_id) — long — Primary key — NOT NULL
  • 지역 이름 (name) — string

reservation (예약 내역)

  • 아이디 (reservation_id) — long — Primary key — NOT NULL
  • 유저 아이디 (user_id) — long — Foreign key → user.아이디 — NOT NULL — 유저 아이디
  • 숙박 상품 아이디 (accommodation_id) — long — Foreign key → accommodate.아이디 — NOT NULL
  • 예약 정보 (reservation_info) — embedded_class
  • 결제 금액 (payment_amount) — int
  • 예약 상태 (status) — enum
  • 룸 옵션 이름 (room_option_name) — string
  • 1박 가격 (price) — int
  • 룸 옵션 이미지 (room_option_image) — JSON
  • 방문 수단 (transportation) — enum
  • 예약 번호 (reservation_number) — string

reservation_info (예약 정보)

  • 숙박 인원 수 (number_of_guest) — int
  • 예약 시작 시간 (reservation_start_time) — localDateTime
  • 예약 종료 시간 (reservation_end_time) — localDateTime
  • 숙박 일시 (stay_duration) — integer

room_option (룸 옵션)

  • 아이디 (room_option_id) — long — Primary key — NOT NULL
  • 숙박 상품 아이디 (accommodation_id) — long — Foreign key → accommodate.아이디 — NOT NULL
  • 1박 가격 (price) — int
  • 룸 옵션 이미지 (room_option_image) — JSON
  • 룸 옵션 설명 (description) — string
  • 썸네일 이미지 (thumbnail_image) — string
  • 체크인 가능 시간 (check_in_time) — string
  • 체크아웃 마감 시간 (check_out_time) — string
  • 룸 옵션 방 개수 (total_room) — integer
  • 룸 옵션 이름 (name) — string
  • 방 별 최대 인원 수 (capacity) — int

room_option_image (룸 옵션 이미지)

  • 룸 옵션 메인 이미지 (main_image_urls) — list of string

user (사용자)

  • 아이디 (user_id) — long — Primary key — NOT NULL — 유저 아이디
  • 유저 이름 (name) — string — 유저 이름
  • 이메일 (email) — string — 유저 이메일
  • 비밀번호 (password) — string
  • 유저 권한 (authority) — enum
  • 프로필 사진 (profile_image_url) — string