Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

makes made by

User Booking has

PK username PK booking_id
can use Credit Card has
password owned by is used in check_in_date
PK credit_card_num
f_name check_out_date
date_of_expiree
l_name total_amount_to_be_paid
cvc
email_address

mobile_number can host hosted by


Listing
id_type
belongs to
PK listing_ID
id_number
can write
writeup
has has
Feedback images
is written by
Assumptions
PK feedback_id price_per_night
1. A user can host zero or many listings
2. A listing can be hosted by only one user comment num_bedrooms
3. A user can make zero or many bookings
4. A booking can only be made by one user rating num_bathrooms
5. A user can use one or many credit cards
6. A credit card is owned by only one user feedback_date max_num_guests
7. A user can write zero or many feedbacks
8. A feedback comment can only be written by one user
9. A booking is only for one listing location (number,
10. A listing can be booked by zero or many street, city, province,
11. A listing can have zero or many feedback comments country, zip code)
12. A feedback comment can only be given to one listing
availability

You might also like