Interface UniquenessConstraintDefinition

interface UniquenessConstraintDefinition {
    bySpace?: boolean;
    constraintType?: "uniqueness";
    properties: string[];
}

Properties

bySpace?: boolean

Whether to make the constraint space-specific

constraintType?: "uniqueness"
properties: string[]

List of properties included in the constraint. The order you list the properties in is significant.