Problem
I would like to be able to define a uniqueness constraint that has conditional elements to it so that it can map to and align with a conditional unique index/constraint within the database.
Suggested solution
Modify the @@unique modifier to include a where: { } argument that could define the condition that allows this to be unique.