https://github.com/manjit-baishya-datascience/homestay-database-management-system
This Accommodation Booking System is designed to facilitate the booking and management of listings, guests, hosts, bookings, amenities, and reviews.
https://github.com/manjit-baishya-datascience/homestay-database-management-system
database-design schema sql sqlite
Last synced: about 1 month ago
JSON representation
This Accommodation Booking System is designed to facilitate the booking and management of listings, guests, hosts, bookings, amenities, and reviews.
- Host: GitHub
- URL: https://github.com/manjit-baishya-datascience/homestay-database-management-system
- Owner: manjit-baishya-datascience
- Created: 2024-05-09T02:59:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-11T14:09:19.000Z (about 2 years ago)
- Last Synced: 2025-01-13T09:46:27.819Z (over 1 year ago)
- Topics: database-design, schema, sql, sqlite
- Homepage:
- Size: 455 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Homestay - Databse Management System** 🏡📅

This Accommodation Booking System is designed to facilitate the booking and management of listings, guests, hosts, bookings, amenities, and reviews. It provides a comprehensive solution for users to find and book accommodations while also allowing hosts to manage their listings and interact with guests. 🛌✨
## **Table of Contents** 📋
- [**Database Schema**](#database-schema) 🗄️
- [**Schema Diagram**](#schema-diagram) ❇️
- [**Tables**](#tables) 📄
- [**Functionalities**](#functionalities) ⚙️
- [**Contributing**](#contributing) 🤝
- [**License**](#license) 📝
## **Database Schema** 🗄️
The database schema includes tables to store information about listings, guests, hosts, bookings, amenities, and reviews. Relationships are established between entities to maintain data integrity. 🛡️
## **Schema Diagram**

## **Tables** 📄
1. `Listings`: Stores information about accommodation listings including listing ID, host ID, title, description, address, city, state, country, latitude, longitude, price, maximum guests, beds, baths, amenities, rating, and reviews.
2. `Guests`: Contains details about guests including guest ID, guest name, email, password, phone number, profile picture, date joined, total bookings, ratings, and reviews.
3. `GuestReviews`: Stores reviews given by guests for hosts including host ID, guest ID, rating, and review.
4. `Hosts`: Stores information about hosts including host ID, host name, email, password, phone number, profile picture, date joined, total listings, total bookings, ratings, and reviews.
5. `Bookings`: Contains details about bookings including booking ID, guest ID, listing ID, host ID, check-in date, check-out date, total price, number of guests, confirmation status, and reviews/ratings by guest, host, and for the listing.
6. `Amenities`: Stores information about amenities available in listings including amenity ID and name.
7. `ListingAmenities`: Associates listings with amenities using listing ID and amenity ID.
## **Functionalities** ⚙️
- `Listing management`: Hosts can create, update, and manage their accommodation listings.
- `Booking management`: Guests can search for listings, make bookings, and manage their bookings.
- `Review system`: Both guests and hosts can leave reviews and ratings for each other and for listings.
- `Amenities management`: Hosts can specify amenities available in their listings, enhancing the booking experience for guests.
## **Contributing** 🤝
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
## **License** 📝
This project is licensed under the [MIT License](LICENSE).