The system is designed around a central VeterinaryHospital class that manages the core entities of the hospital: Doctor, Patient, and Appointment. This centralized model ensures a single source of truth for the hospital's state and simplifies operations like scheduling.
Below is the UML class diagram that represents the architecture of the system.
Always run:
docker compose run --rm web python manage.py startapp <app_name> backend/<app_name>docker compose run --rm web python manage.py makemigrations doctors
docker compose run --rm web python manage.py migratedocker compose upIf your Docker containers are already up and running, you can execute the test command inside the web container:
docker compose exec web python manage.py test backend.doctors.tests.DoctorModelTestIf Docker is not running, you can start a temporary container to run the test:
docker compose run --rm web python manage.py test backend.doctors.tests.DoctorModelTestWhen Docker is Already Running (Using exec)
docker compose exec web python manage.py testWhen Docker is Not Running (Using run)
docker compose run --rm web python manage.py test