Relational database schema design for a medical clinic appointment scheduling system using MySQL.
Focus: normalized data structure, data integrity, and performance.
- Apply database normalization techniques: First Normal Form (1NF) and Second Normal Form (2NF)
- Create tables with appropriate constraints:
PRIMARY KEY,FOREIGN KEY,UNIQUE,NOT NULL - Define and enforce relationships between entities (e.g., One-to-Many)
The following tables, all normalized up to Second Normal Form (2NF), are created in the clinicDB database:
specialties: Stores medical specialty informationdoctors: Profiles for each doctor, linked to a specialtypatients: Patient records with personal detailsappointments: Tracks patient bookings with doctors
The following diagram illustrates the structure of the Clinic Booking System:
💡 A dark version of the diagram is also available in the repository under
assets/clinic-schema-dark.png.
- Open MySQL Workbench or your preferred SQL client
- Execute the
clinicDB.sqlscript - The script will:
- Create the
clinicDBdatabase - Create all required tables
- Define all necessary constraints
- Create the
- MySQL 8.x
- Basic understanding of SQL syntax:
- DDL (Data Definition Language)
- Constraints (e.g.,
NOT NULL,PRIMARY KEY,FOREIGN KEY)
This project is licensed under the MIT License.
See the LICENSE file for details.
Augusto Mate – [email protected]
Prefer a simplified or more formal version?
See README_plain.md
