= e($name) ?>
= e($details['entity']) ?>
Primary key: = e($details['primary']) ?>
Foreign key(s): = e($details['foreign']) ?>
//////////////////////////// common.php ////////////////////////////
Source code used for this task
Task 1(a)
The original design resolves the many-to-many relationship between modules, lecturers and roles through ModuleLecturerRole.
= e($details['entity']) ?>
Primary key: = e($details['primary']) ?>
Foreign key(s): = e($details['foreign']) ?>
Task 1(b)
A user may register for many events and an event may have many users. The Registrations associative entity resolves this many-to-many relationship.
Keys: Users.UserID and Events.EventID are primary keys. Registrations has the composite primary key (UserID, EventID); both columns are also foreign keys referencing their parent tables.