예약

테이블 (4)

reservation

  • id — bigint
  • biz_item_id — bigint — naver 예약 상품 ID
  • type — VARCHAR(30) — NOT NULL — 예약 업종 (ex, BEAUTY, NAIL, ...)
  • name — VARCHAR(255) — NOT NULL — 예약 상품 이름
  • color — VARCHAR(10) — 예약 상품 색깔
  • image_url — VARCHAR(255) — 예약상품 대표 사진
  • description — VARCHAR(255) — 예약 상품 소개
  • amount — bigint — NOT NULL — 예약 가능 금액
  • memo — VARCHAR(255) — 예약 상품 유의 사항
  • created_at — datetime
  • created_by — varchar(20)
  • updated_at — datetime
  • updated_by — varchar(20)

reservation_payment_detail_product_mapping

  • id — bigint
  • reservation_payment_detail_id — bigint — NOT NULL — reservation payment detail table id
  • product_id — bigint — NOT NULL — product table id
  • created_at — datetime
  • updated_at — datetime

reservation_product_mapping

  • id — bigint
  • reservation_id — bigint — NOT NULL — reservation table id
  • product_id — bigint — NOT NULL — product table id
  • created_at — datetime
  • updated_at — datetime

reservation_schedule

  • id — bigint
  • created_at — datetime
  • created_by — varchar(20)
  • updated_at — datetime
  • updated_by — varchar(20)
  • customer_memo — varchar(255) — 사용자 요청 사항
  • naver_schedule_id — bigint — naver에 schedule 생성 이후 받는 id 값
  • reservation_id — bigint — NOT NULL — reservation id (Foreign Key)
  • reservation_type — varchar(50) — NOT NULL — 예약 상태 (WAIT, ACCEPT)
  • reservation_route — varchar(50) — NOT NULL — 예약 경로 (ANDROID, N_RESERVATION, ...)
  • start_time — datetime — NOT NULL — 예약 시작 시간 (yyyy-MM-dd hh:mm:ss)
  • end_time — datetime — NOT NULL — 예약 종료 시간 (yyyy-MM-dd hh:mm:ss)
  • registered_time — datetime — NOT NULL — 예약 등록 시간 (yyyy-MM-dd hh:mm:ss)
  • confirmed_time — datetime — 예약 확정 시각 (yyyy-MM-dd hh:mm:ss), 무조건 예약이 잡히면 예약 확정 됨 (registered_time)
  • cancel_time — datetime — 예약 취소 시각 (yyyy-MM-dd hh:mm:ss)' ) COMMENT = '상품 판매자의 schedule'; create table reservation_holiday_schedule ( id bigint A…
  • created_at — datetime
  • created_by — varchar(20)
  • updated_at — datetime
  • updated_by — varchar(20)
  • naver_holiday_schedule_id — bigint — naver에 휴무일 생성 이후 받는 id 값
  • reservation_id — bigint — NOT NULL — reservation id (Foreign Key)
  • start_date — date — NOT NULL — 쉬는 날짜 시작하는 날짜, yyyy-MM-dd
  • end_date — date — NOT NULL — 쉬는 날짜 끝나는 날짜, yyyy-MM-dd' ) COMMENT = '상품 판매자의 휴일 schedule'; create table reservation_holiday_excluded_schedule ( id bi…
  • created_at — datetime
  • created_by — varchar(20)
  • updated_at — datetime
  • updated_by — varchar(20)
  • reservation_holiday_schedule_id — bigint — NOT NULL — foreign key
  • excluded_date — date — NOT NULL — 쉬는 날짜 기간 중, 쉬지 않는 날짜' ) COMMENT = '상품 판매자의 휴일 schedule 중 빠지는 table'; create table reservation_payment_detail ( id bigin…
  • created_at — datetime
  • created_by — varchar(20)
  • updated_at — datetime
  • updated_by — varchar(20)
  • reservation_id — bigint — NOT NULL — reservation id (Foreign Key)
  • naver_booking_id — bigint — NOT NULL — naver booking id
  • naver_payment_id — bigint — NOT NULL — naver payment id
  • status — varchar(50) — NOT NULL — 결제 상태
  • expected_amount — bigint — NOT NULL — 결제 예정 금액 (바뀔수 있는지 유무는 체크..)
  • payment_time — datetime — NOT NULL — 결제 시각 (yyyy-MM-dd hh:mm:ss)