Implement a code action adding a unique constraint to a relation #1181
Labels
kind/feature
A request for a new feature.
team/schema
Issue for team Schema.
topic: code action
topic: relation
Milestone
Problem
Let's consider the following data model:
The relation gives a validation error:
It is hard to find in some cases the place where to add the needed constraint.
Suggested solution
Implement a code action to add the unique constraint to the correct position. This should also work with compound keys, adding a
@@unique
attribute to the correct model.The text was updated successfully, but these errors were encountered: