Ok, I found it.
Let's say you have one table named User and the second is called Address , and you want to establish a relationship between them. An example might look like this:
User
id
Name
Address
id
user_id
street
So you have a foreign key in Address for User . If you make this relationship, all fields are required, so user_id is the primary key field, it is not null, and Address - id is the same, but what is Address - user_id ? Is this part of the primary key in Address ? No, this does not help you determine the row in this table. Thus, Address - user_id may be null, perhaps you received only Address , and the Address table is even indicated by the table company.
The fact is that the mandatory checkbox in the "Reference Table" is only for visual effects, opposite the checkbox in the "Linked Table" -side makes the field null or not.
If necessary, the Address-user_id field can never be null. If this is not necessary, the field may be empty for one row of data, and there will be no restrictions.
Udo
source share