![](/images/new-backgrounds/1214202/214202155x1.webp)
Defining identity constraints
Defining a key constraint
A key constraint specifies that an element or an attribute value (or set of values) must be a key within a specified scope.
A key means that data should be unique, not null and always present within a specified scope.
For example:
Generated schema:
The KEYCODE key constraint, defined on the project element, specifies that the code attribute must be unique, not null and always present within the product element.
To display a key property sheet,
Browser tree view.
66 | PowerDesigner |