This project contains two MySQL database systems:
- Clinic Booking System β A fully-featured relational database for managing clinics, appointments, and billing.
- Contact Book API β A simple contact management API built with FastAPI and connected to a MySQL database.
βββ clinic_and_contact_book_schema.sql # SQL schema and data for both databases βββ python.py # FastAPI app (CRUD API for Contact Book) βββ README.md # Project overview and usage instructions
A real-world relational database for managing clinics. It includes the following features:
- Specializations β List of medical specializations (e.g., Anesthesiology, Ophthalmology).
- Doctors β Doctors with contact info and their specialization.
- Patients β Patient details like name, gender, contact, and DOB.
- Appointments β Records of doctor-patient appointments.
- Treatments β List of treatments with associated costs.
- Appointment_Treatments β Many-to-many link between appointments and treatments.
- Bills β Billing records per appointment.
- Doctors: Dr. Malete, Dr. Rea, Dr. Remo
- Patients: Atli Mok, Jane Roe, Mosa Motlana
- Treatments: X-Ray, Skin Biopsy, Eye Examination
A CRUD (Create, Read, Update, Delete) API to manage contacts.
- Categories β Contact groups like Family, Friends, Work.
- Contacts β Stores name, phone, email, and linked category.
| Method | Endpoint | Description |
|---|---|---|
| POST | /contacts/ |
Add a new contact |
| GET | /contacts/ |
List all contacts |
| PUT | /contacts/{id} |
Update a contact |
| DELETE | /contacts/{id} |
Delete a contact |