airbnb database
테이블 (11)
고객 (customer)
- 전화번호 (phoneNumber) — Text — 기본 키
- 이름 (name) — Text
- 생년월일 (birth) — Date
- 아이디 (id) — Text
- 비밀번호 (password) — Text
관리자 (manager)
- 아이디 (id) — Text — 기본 키 — NOT NULL
- 비밀번호 (password) — Text
등록 (register)
- 전화번호 (phoneNumber) — Text — 외래 키 → 호스트.전화번호 — NOT NULL
- 숙소이름 (acc name) — Text — 외래 키 → 숙소.이름 — NOT NULL
숙소 (accomodation)
- 이름 (name) — Text — 기본 키 — NOT NULL
- 주소 (address) — Text
- 숙소 소개 (accomodation introduction) — Text
- 요금정책 (fee policy) — Text
- 할인정책 (discount policy) — Text
- 호스트id (hostid) — Text
숙소 후기 (review)
- 숙소 (acc name) — Text — 외래 키 → 숙소.이름 — NOT NULL
- 별점 (star score) — int
- 후기 (review) — Text
숙소수용정보 (Accommodation information)
- 이름 (name) — Text — 외래 키 → 숙소.이름 — NOT NULL
- 수용인원 (capacity) — int
- 침실 (bedroom) — int
- 침대 (bed) — int
- 화장실 (bathroom) — int
- Field
숙소편의시설 (accomodation amenities)
- 숙소이름 (name) — Text — 외래 키 → 숙소.이름 — NOT NULL
- 기본편의시설 (basic) — Text
- 많이검색하는편의시설 (frequently search) — Text
- 안전편의시설 (safe) — Text
- 접근성편의시설 (accessibility) — Text
승인 (approval)
- 승인자id (id) — Text — 외래 키 → 관리자.아이디 — NOT NULL
- 승인숙소이름 (acc name) — Text — 외래 키 → 숙소.이름 — NOT NULL
예약 (reservation)
- 전화번호 (phoneNumber2) — Text — 외래 키 → 고객.전화번호
- 예약 숙소 이름 (name) — Text — 외래 키 → 숙소.이름 — NOT NULL
호스트 (host)
- 전화번호 (phoneNumber) — Text — 기본 키 — NOT NULL
- 이름 (name) — Text
- 생년월일 (birth) — Date
- 아이디 (id) — Text
- 비밀번호 (password) — Text
- Field
후기 등록 (register review)
- 전화번호 (phoneNumber) — Text — 외래 키 → 고객.전화번호
- 이름 (name) — Text — 외래 키 → 숙소 후기.숙소 — NOT NULL