ER Diagrams - Can someone please explain modality?
Above: If there is a module it must belong to a course. And if there is a course we'd really like there to be a module. But is the diagram correct?
The foreign key constraint enforces that if a module exists in the child table then there will be a course in the parent table. But there is no constraint the other way, and obviously you have to create one record before the other.
So, is this more correct (below)?
Or does modality zero mean the FK can be null?