External module "decorator/Unique"
Functions
Unique
- Unique(name: string, fields: string[]): Function
- Unique(fields: string[]): Function
- Unique(fields: function): Function
- Unique(name: string, fields: function): Function
-
Parameters
-
name: string
-
fields: string[]
Returns Function
-
Parameters
Returns Function
-
Parameters
-
fields: function
-
- (object?: any): any[] | object
-
Parameters
Returns any[]
|
object
Returns Function
-
Parameters
-
name: string
-
fields: function
-
- (object?: any): any[] | object
-
Parameters
Returns any[]
|
object
Returns Function
Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.