hotel

Tables (21)

Admin (어드민)

  • adminNo (Key) — int — Primary key — NOT NULL — 관리자번호
  • userid (Field) — varchar(200) — NOT NULL — 관리자ID
  • password (Field2) — vharchar(200) — NOT NULL — 관리자PW
  • name (Field4) — 괸라자이름
  • phone (Field5) — 관리자연락처
  • email (Field3) — 관리자이메일

BaseEntity (베이스타임엔티티)

  • 등록일 (Field) — Datetime
  • 수정일 (Field2) — Datetime

cart (주문목록(장바구니))

  • cartNo (Key) — int — Primary key — NOT NULL — 주문목록번호
  • menuOptionNo (Key2) — int — Foreign key → menuOption.menuOptionNo — NOT NULL — 메뉴옵션번호
  • price (Field) — int — NOT NULL — 총가격
  • memo (Field2) — varcher(200) — 주문메모
  • userNo (Key3) — Long — Foreign key → user.userNo — NOT NULL — 회원번호
  • menuNo (Key22) — int — Foreign key → menu.menuNo — NOT NULL — 메뉴번호

company (회사)

  • companyNo (Key) — int — Primary key — NOT NULL — 회사어드민번호
  • userid (Field) — varcher(200) — NOT NULL — 회사ID
  • password (Field2) — varcher(200) — NOT NULL — 회사관리자PW
  • email (Field3) — varcher(200) — NOT NULL — 회사관리자이메일
  • phone (Field4) — varcher(200) — NOT NULL — 회사관리자전화번호
  • name (Field5) — varcher(200) — NOT NULL — 회사관리자이름
  • adminNo (Key2) — int — Foreign key → Admin.adminNo — NOT NULL — 관리자번호

faq (자주묻는질문)

  • faqNo (Key) — Primary key — NOT NULL — 질문번호
  • companyNo (Key2) — int — Foreign key → company.companyNo — NOT NULL — 회사번호(작성자)
  • title (Field) — 질문제목\
  • content (Field2) — 질문내용

hotel (호텔)

  • hotelNo (Key) — int — Primary key — NOT NULL — 호텔번호
  • name (Field9) — varcher(200) — NOT NULL — 호텔이름
  • address (Field2) — varcher(200) — NOT NULL — 호텔주소
  • postNumber (Field3) — varcher(200) — NOT NULL — 호텔우편번호
  • tel (Field4) — varcher(200) — NOT NULL — 호텔전화번호
  • startTime (Field5) — varcher(200) — NOT NULL — 영업시작시간
  • endTime (Field6) — varcher(200) — NOT NULL — 영업종료시간
  • type (Field8) — int — NOT NULL — 매장타입0직영1가맹
  • companyNo (Key3) — int — Foreign key → company.companyNo — NOT NULL — 회사어드민번호

menu (메뉴정보)

  • menuNo (Key2) — int — Primary key — NOT NULL — 메뉴번호
  • categotyNo (Key3) — int — Foreign key → menuCategory.categotyNo — NOT NULL — 메뉴카테고리번호
  • name (Field) — varcher(200) — NOT NULL — 메뉴이름
  • content (Field2) — varcher(200) — NOT NULL — 메뉴설명
  • price (Field3) — int — NOT NULL — 메뉴가격
  • soldout (Field4) — int — NOT NULL — 매진여부(판매여부)0판매가능1매진
  • Field5

menuCategory (메뉴카테고리)

  • categotyNo (Key) — int — Primary key — NOT NULL — 메뉴카테고리번호
  • categotyNo (Key2) — int — Foreign key → menuCategory.categotyNo — 상위카테고리번호(내부조인용)
  • name (Field) — 카테고리명
  • storeNo (Key3) — Foreign key → store.storeNo — NOT NULL — 매장번호
  • hotelNo (Key22) — int — Foreign key → store.hotelNo — NOT NULL — 호텔번호

menuOption (메뉴옵션)

  • menuOptionNo (Key) — int — Primary key — NOT NULL — 메뉴옵션번호
  • menuNo (Key2) — int — Foreign key → menu.menuNo — NOT NULL — 메뉴번호
  • name (Field) — varcher(200) — NOT NULL — 메뉴옵션이름
  • content (Field2) — varcher(200) — NOT NULL — 메뉴옵션설명
  • price (Field3) — int — NOT NULL — 메뉴옵션가격
  • adminNo (Key22) — int — Foreign key — NOT NULL — 관리자번호
  • companyNo (Key23) — int — Foreign key — NOT NULL — 회사어드민번호
  • adminNo (Key222) — int — Foreign key — NOT NULL — 관리자번호
  • hotelNo (Key24) — int — Foreign key — NOT NULL — 호텔번호

notice (공지사항)

  • noticeNo (Key) — Primary key — NOT NULL — 공지사항번호
  • companyNo (Key2) — int — Foreign key → company.companyNo — NOT NULL — 회사어드민번호
  • title (Field) — 제목
  • content (Field2) — 내용
  • hotelNo (Key3) — int — Foreign key → hotel.hotelNo — 호텔번호

payment (결제정보)

  • paymentNo (Key2) — Primary key — NOT NULL — 결제번호
  • userNo (Key) — Long — Foreign key → user.userNo — NOT NULL — 회원번호
  • totalPrice (Field) — 총 가격
  • reserveNo (Key3) — int — Foreign key → reserve.reserveNo — NOT NULL — 객실예약번호
  • paymentStatus (Field2) — 결제상태(대기중완료)
  • paymentMethod (Field3) — Enum — 결제수단
  • Field4
  • storeNo (Key4) — Foreign key → store.storeNo — NOT NULL — 매장번호
  • hotelNo (Key22) — int — Foreign key → store.hotelNo — NOT NULL — 호텔번호

paymentItem (결제품목)

  • paymentItemNo (Key3) — Primary key — NOT NULL — 결제품목번호
  • menuNo (Key2) — int — Foreign key → menu.menuNo — NOT NULL — 메뉴번호
  • menuOptionNo (Key) — int — Foreign key → menuOption.menuOptionNo — NOT NULL — 메뉴옵션번호
  • paymentNo (Key22) — Foreign key → payment.paymentNo — NOT NULL — 결제번호
  • count (Field) — 갯수(숙박일수)
  • unitPrice (Field2) — 개당 가격
  • TotalPrice (Field3) — 총 가격
  • optionPrice (Field4)

registerType (가입타입)

  • registerTypeNo (Key) — Primary key — NOT NULL — 타입번호
  • userNo (Key2) — Long — Foreign key → user.userNo — NOT NULL — 회원번호
  • registerType (Field) — enum — 가입 타입
  • userId (Field2) — sns계정
  • Field3

reserve (객실예약)

  • reserveNo (Key) — int — Primary key — NOT NULL — 객실예약번호
  • roomNo (Key2) — int — Foreign key → room.roomNo — NOT NULL — 객실번호
  • reserveYn (Field) — int — 예약여부 0예약되지않음 1예약됨
  • startDate (Field2) — date — 예약시작날짜
  • endDate (Field3) — date — 예약종료날짜
  • userNo (Key3) — Long — Foreign key → user.userNo — NOT NULL — 회원번호

revenue (매출)

  • revenueNo (Key3) — Primary key — NOT NULL — 매출번호
  • fee (Field2) — 수수료
  • depositPrice (Field) — 정산금액
  • userCount (Field3) — 이용자 수
  • Field4
  • paymentItemNo (Key32) — Foreign key → paymentItem.paymentItemNo — NOT NULL — 결제품목번호

room (객실정보)

  • roomNo (Key) — int — Primary key — NOT NULL — 객실번호
  • hotelNo (Key2) — int — Foreign key → hotel.hotelNo — NOT NULL — 호텔번호
  • code2No (Key3) — Foreign key → roomCode2.code2No — NOT NULL — 하위코드번호
  • number (Field) — int — 객실호수
  • type (Field2) — varcher(200) — 객실타입
  • price (Field3) — int — 객실가격
  • name (Field4) — varcher(200) — 객실이름
  • content (Field5) — varcher(200) — 객실설명

roomCode (코드그룹)

  • codeNo (Key) — Primary key — NOT NULL — 코드그룹번호
  • name (Field) — 코드그룹명
  • code (Field2) — 코드그룹
  • order (Field3) — int — 코드순서
  • lowerCount (Field4) — 하위코드갯수
  • companyNo (Key2) — int — Foreign key → company.companyNo — NOT NULL — 회사어드민번호

roomCode2 (하위코드)

  • code2No (Key) — Primary key — NOT NULL — 하위코드번호
  • codeNo (Key2) — Foreign key → roomCode.codeNo — NOT NULL — 코드그룹번호
  • name (Field) — 하위코드명
  • code (Field2) — 하위코드
  • order (Field3) — 하위코드순서

roomCodeRepo (객실코드저장)

  • roomNo (Key) — int — Foreign key → room.roomNo — NOT NULL — 객실번호

store (매장)

  • storeNo (Key) — Primary key — NOT NULL — 매장번호
  • hotelNo (Key2) — int — Foreign key → hotel.hotelNo — NOT NULL — 호텔번호
  • name (Field) — 매장이름
  • type (Field2) — 매장타입(설정가능
  • startTime (Field3) — 매장영업시작시간
  • encTime (Field4) — 매장영업종료시간
  • tel (Field5) — 매장전화번호

user (회원(이용객))

  • userNo (Key) — Long — Primary key — NOT NULL — 회원번호
  • registerType (Field2) — varcher(200) — NOT NULL — 가입방식 (C일반 K카카오톡F페이스북G구글)
  • email (Field) — varcher(200) — NOT NULL — 회원이메일
  • password (Field4) — varcher(200) — NOT NULL — 회원비밀번호
  • nicnname (Field5) — varcher(200) — NOT NULL — 회원닉네임
  • birth (Field6) — date — NOT NULL — 회원생년월일
  • gender (Field7) — varcher(200) — NOT NULL — 회원성별
  • name (Field8) — varcher(200) — NOT NULL — 회원이름
  • number (Field9) — char — NOT NULL — 회원전화번호