{"id":27120381,"url":"https://github.com/tharindu714/basic-guest-house-management-system-database","last_synced_at":"2025-04-07T09:53:31.403Z","repository":{"id":285747347,"uuid":"959204598","full_name":"Tharindu714/Basic-Guest-House-Management-system-Database","owner":"Tharindu714","description":"This repository contains a MySQL database script for a hotel management system.","archived":false,"fork":false,"pushed_at":"2025-04-02T12:45:25.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T13:32:56.754Z","etag":null,"topics":["database","hotel-management-system"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tharindu714.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-02T12:31:45.000Z","updated_at":"2025-04-02T12:45:29.000Z","dependencies_parsed_at":"2025-04-02T13:33:04.532Z","dependency_job_id":"0cd0231d-44eb-4707-b094-59fe448ec785","html_url":"https://github.com/Tharindu714/Basic-Guest-House-Management-system-Database","commit_stats":null,"previous_names":["tharindu714/basic-guest-house-management-system-database"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FBasic-Guest-House-Management-system-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FBasic-Guest-House-Management-system-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FBasic-Guest-House-Management-system-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FBasic-Guest-House-Management-system-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tharindu714","download_url":"https://codeload.github.com/Tharindu714/Basic-Guest-House-Management-system-Database/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247631442,"owners_count":20970040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","hotel-management-system"],"created_at":"2025-04-07T09:53:30.807Z","updated_at":"2025-04-07T09:53:31.390Z","avatar_url":"https://github.com/Tharindu714.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic-Guest-House-Management-system-Database\n\n## Overview\nThis repository contains a MySQL database script for a hotel management system. The script creates and populates a database named `hotel_db`, which is designed to handle various aspects of hotel operations, such as managing cities, customers, rooms, bookings, and payments.\n\n## Features\n- **City Management:** Stores information about different cities.\n- **Customer Records:** Keeps track of customer details.\n- **Room Information:** Defines room types, availability, and pricing.\n- **Booking System:** Manages reservations and bookings.\n- **Payment Processing:** Records transactions related to bookings.\n\n## Installation\n### Prerequisites\n- MySQL Server (version 8.0 or later recommended)\n- MySQL Workbench or any MySQL-compatible client\n\n### Steps\n1. Clone this repository:\n   ```sh\n   git clone https://github.com/your-repo/hotel-management-db.git\n   cd hotel-management-db\n   ```\n2. Open MySQL Workbench (or any MySQL client).\n3. Execute the script `Hotel_system_db_example.sql`:\n   ```sh\n   SOURCE path/to/Hotel_system_db_example.sql;\n   ```\n4. Verify that the `hotel_db` database has been created successfully:\n   ```sql\n   SHOW DATABASES;\n   ```\n## Database Schema\nThe database consists of multiple tables, including:\n\n- **`city`**: Stores city names and identifiers.\n- **`customer`**: Contains customer details such as name, contact, and address.\n- **`room`**: Defines room details like type, availability, and pricing.\n- **`booking`**: Manages hotel bookings with customer and room references.\n- **`payment`**: Tracks payments and transactions related to bookings.\n\n## Usage\nOnce the database is set up, you can interact with it using SQL queries. Examples:\n\n- **View available rooms:**\n  ```sql\n  SELECT * FROM room WHERE availability = 'available';\n  ```\n- **List all bookings for a customer:**\n  ```sql\n  SELECT * FROM booking WHERE customer_id = 1;\n  ```\n- **Insert a new customer:**\n  ```sql\n  INSERT INTO customer (name, contact, address) VALUES ('John Doe', '123-456-7890', '123 Main St');\n  ```\n## Contributing\nIf you would like to contribute, please fork the repository and submit a pull request with your changes.\n\n## License\nThis project is licensed under the MIT License - see the `LICENSE` file for details.\n\n## Contact\nFor any issues or suggestions, please open an issue in the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharindu714%2Fbasic-guest-house-management-system-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftharindu714%2Fbasic-guest-house-management-system-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharindu714%2Fbasic-guest-house-management-system-database/lists"}