As the question title, is there a way to do this?
eg:
DrivingLicence
---------------
CanDriveCar (bool)
CanDriveMotorbike (bool)
CanDriveBus (bool)
You can’t drive a bus without a car licence, so I want the DB to throw an exception if anyone tries to give someone a bus licence when they haven’t a car licence.
1 Answer