In the relationship between employees and personal profiles, each employee can only have one personal profile record, and each personal profile record can only correspond to one employee. In this case, the relationship between the employee and the personal profile is one-to-one.
The foreign key in a one-to-one relationship can be placed in either the source collection or the target collection. If it represents "has one," the foreign key is more appropriately placed in the target collection; if it represents "belongs to," then the foreign key is better placed in the source collection.
For example, in the case mentioned above, where an employee has only one personal profile and the personal profile belongs to the employee, it is appropriate to place the foreign key in the personal profile collection.
This indicates that an employee has a personal profile record.
ER Relationship

Field Configuration

This indicates that a personal profile belongs to a specific employee.
ER Relationship

Field Configuration

The source collection, which is the collection where the current field is located.
The target collection, the collection that is being related.
Used to establish a relationship between two collections. In a one-to-one relationship, the foreign key can be placed in either the source collection or the target collection. If it represents "has one," the foreign key is more appropriately placed in the target collection; if it represents "belongs to," then the foreign key is better placed in the source collection.
The field referenced by the foreign key constraint must be unique. When the foreign key is placed in the target collection, it indicates "has one."
The field referenced by the foreign key constraint must be unique. When the foreign key is placed in the source collection, it indicates "belongs to."
ON DELETE refers to the action rules for the foreign key reference in the related child collection when deleting records from the parent collection. It is an option defined when establishing a foreign key constraint. Common ON DELETE options include: