To add a primary key to an entity:
P stands for primary key. The box for
M is also automatically checked. This means that the attribute is mandatory and needs to be filled.
P next to these attributes.
When you have a composite primary key, make sure you that the order in which you select the attributes of the composite primary key should match the order of the attributes from the source data.