In a course enrollment system, there are two entities: students and courses. A student can enroll in multiple courses, and a course can have multiple students enrolled, constituting a many-to-many relationship. In a relational database, to represent the many-to-many relationship between students and courses, an intermediary collection, such as an enrollment collection, is usually used. This collection can record which courses each student has chosen and which students have enrolled in each course. This design effectively represents the many-to-many relationship between students and courses.
ER Diagram:

Field Configuration:

The source collection, which is the collection where the current field resides.
The target collection, which is the collection to be associated with.
The intermediary collection, used when a many-to-many relationship exists between two entities. The intermediary collection has two foreign keys that are used to maintain the association between the two entities.
The field in the source collection that is referenced by the foreign key. It must be unique.
The field in the intermediary collection that establishes the association with the source collection.
The field in the intermediary collection that establishes the association with the target collection.
The field in the target collection that is referenced by the foreign key. It must be unique.
ON DELETE refers to the rules applied to foreign key references in related child collections when records in the parent collection are deleted. It is an option used when defining a foreign key constraint. Common ON DELETE options include: