{"id":31809135,"url":"https://github.com/allanotieno254/clinic-booking-system-database","last_synced_at":"2025-10-11T05:19:03.804Z","repository":{"id":293125035,"uuid":"958209139","full_name":"AllanOtieno254/Clinic-Booking-System-database","owner":"AllanOtieno254","description":"The Clinic Booking and Visit Management System (CBVMS) is a MySQL-based relational database system designed to manage operations in a clinic or small hospital environment.","archived":false,"fork":false,"pushed_at":"2025-05-13T19:30:22.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T20:31:51.523Z","etag":null,"topics":["database-management","database-schema","databases","schema","sql"],"latest_commit_sha":null,"homepage":"https://dbdiagram.io/d/clinic-booking-database-schema-68239a515b2fc4582f732d56","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/AllanOtieno254.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,"zenodo":null}},"created_at":"2025-03-31T20:27:15.000Z","updated_at":"2025-05-13T19:30:25.000Z","dependencies_parsed_at":"2025-05-13T20:31:54.058Z","dependency_job_id":"71b894b2-7822-4271-85cb-d53215572f07","html_url":"https://github.com/AllanOtieno254/Clinic-Booking-System-database","commit_stats":null,"previous_names":["allanotieno254/clinic-booking-system.sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AllanOtieno254/Clinic-Booking-System-database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FClinic-Booking-System-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FClinic-Booking-System-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FClinic-Booking-System-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FClinic-Booking-System-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllanOtieno254","download_url":"https://codeload.github.com/AllanOtieno254/Clinic-Booking-System-database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FClinic-Booking-System-database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006350,"owners_count":26084084,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-management","database-schema","databases","schema","sql"],"created_at":"2025-10-11T05:18:55.885Z","updated_at":"2025-10-11T05:19:03.800Z","avatar_url":"https://github.com/AllanOtieno254.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏥 Clinic Booking System – MySQL Database Project\n\n## 📋 Project Title\n**Clinic Booking and Visit Management System (CBVMS)**\n\n---\n\n## 📌 Project Description\n\nThe **Clinic Booking and Visit Management System (CBVMS)** is a MySQL-based relational database system designed to manage operations in a clinic or small hospital environment. This system helps administrators, staff, and healthcare professionals to:\n\n- Register patients and doctors\n- Assign specializations to doctors\n- Book appointments between patients and doctors\n- Track visit history, diagnoses, and prescriptions\n- Maintain clean and efficient data integrity using constraints and relationships\n\nThe database is structured to reflect a real-world clinic's workflow, ensuring efficient storage, quick retrieval, and reliable management of clinical data.\n\n---\n\n## 🧰 Technologies Used\n\n- **Database:** MySQL 8.0+\n- **Language:** SQL\n- **Tool (for ERD):** dbdiagram.io / MySQL Workbench / DrawSQL / Lucidchart (any can be used)\n- **Platform Compatibility:** Localhost (XAMPP, MAMP, WAMP) or Cloud (e.g., PlanetScale, AWS RDS)\n\n---\n\n## ⚙️ How to Set Up \u0026 Run This Project\n\n### 🔸 Step 1: Install MySQL\nEnsure MySQL is installed and running on your system.\n\n- Download from: https://dev.mysql.com/downloads/mysql/\n\n  Import the .sql Schema File\nYou can import the provided SQL file (e.g., clinic_booking_system.sql) using one of the following methods:\n\n## 💻 Using MySQL Command Line\n\nmysql -u root -p clinic_booking_system \u003c path/to/clinic_booking_system.sql\n\n## 🖥️ Using MySQL Workbench\n\nOpen MySQL Workbench.\n\nConnect to your MySQL instance.\n\nGo to File \u003e Open SQL Script and select clinic_booking_system.sql.\n\nClick the ⚡ lightning bolt to execute the script.\n\n## 🛠️ Using phpMyAdmin\n\nGo to http://localhost/phpmyadmin\n\nCreate a new database: clinic_booking_system\n\nClick Import and upload the .sql file\n\nClick Go to run the script\n\n## 🧠 Database Structure Overview\n\nEntities:\n\nPatient – Holds patient information\n\nDoctor – Stores doctor records\n\nSpecialization – List of medical specializations\n\nDoctor_Specialization – Junction table for many-to-many relationships\n\nAppointment – Tracks scheduled meetings between patients and doctors\n\nVisit – Records what happens during a visit (diagnosis, prescriptions, etc.)\n\n## Relationships:\n\nOne-to-Many: A doctor can have many appointments\n\nOne-to-Many: A patient can have many appointments\n\nMany-to-Many: A doctor can have multiple specializations and vice versa\n\nOne-to-One: Each appointment has exactly one visit record\n\n## 🖼️ Entity-Relationship Diagram (ERD)\nlink to diagram:https://dbdiagram.io/d/clinic-booking-database-schema-68239a515b2fc4582f732d56\n![clinic booking database schema](https://github.com/user-attachments/assets/afba12bb-a6fd-4d4c-ad69-94285e6c45a9)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanotieno254%2Fclinic-booking-system-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanotieno254%2Fclinic-booking-system-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanotieno254%2Fclinic-booking-system-database/lists"}