Typically constraints are placed on properties.
Constraints prevent undesirable data from being
inserted. They also stop any updates that would violate
the constraint condition. An example of this is an exclusive
constraint on username
:
Let's try creating a new user that could clash with an existing one:
Feel free to experiment with the above command, perhaps
to make an update
that would violate the exclusive
username of another Account
.