-
Category (categoryName, priority)
-
Person (healthInsuranceNo, personName, doBirth, gender, phoneNo, streetAddress, postalCode, city, registrationDate, categoryName)
categoryName foreign key references relation Category -
VaccinationLocation (locationName, streetAddress, postalCode, city)
-
Hospital (locationName)
locationName foreign key references relation VaccinationLocation -
Nurse (licenseNo, nurseName, locationName)
locationName foreign key references relation Hospital -
AdministratedDate (slotDate, locationName)
locationName foreign key references relation VaccinationLocation -
Vaccine (vaccineName, totalDosesNeeded, timeBetweenDoses)
-
Batch (vaccineName, batchNo, expiryDate, manufactureDate, count, locationName)
vaccineName foreign key references relation Vaccine
locationName foreign key references relation VaccinationLocation -
Vial (vaccineName, batchNo, vialNo)
(vaccineName, batchNo) foreign key references relation Batch -
Deputed (licenseNo, slotDate, locationName)
(slotDate, locationName) foreign key references relation AdministratedDate
licenseNo foreign key references relation Nurse -
Slot (slotID, slotDate, locationName, slotTime, allocationDate, allocationTime, healthInsuranceNo, (vaccineName, batchNo, vialNo), licenseNo)
(slotDate, locationName) foreign key references relation AdministratedDate
healthInsuranceNo foreign key references relation Person
(vaccineName, batchNo, vialNo) foreign key references relation Vial
licenseNo foreign key references relation Nurse
For this project, IBM DB2 was used. The database tables can be created, dropped and populated with the given SQL files.
Demonstration of the JDBC Program on Command Line