Open the tab Columns by double clicking on the table.
Put a check mark in the box under P, next to the chosen attribute. The 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.
If the primary key consists of multiple attributes, put a check mark under the P next to these attributes.