Unique( name: string, fields: string[], options?: UniqueOptions,): ClassDecorator & PropertyDecorator 参数
- name: string
- fields: string[]
可选options: UniqueOptions
返回 ClassDecorator & PropertyDecorator
Unique( fields: string[], options?: UniqueOptions,): ClassDecorator & PropertyDecorator 参数
- fields: string[]
可选options: UniqueOptions
返回 ClassDecorator & PropertyDecorator
Unique( fields: (object?: any) => any[] | { [key: string]: number }, options?: UniqueOptions,): ClassDecorator & PropertyDecorator 参数
- fields: (object?: any) => any[] | { [key: string]: number }
可选options: UniqueOptions
返回 ClassDecorator & PropertyDecorator
Unique( name: string, fields: (object?: any) => any[] | { [key: string]: number }, options?: UniqueOptions,): ClassDecorator & PropertyDecorator 参数
- name: string
- fields: (object?: any) => any[] | { [key: string]: number }
可选options: UniqueOptions
返回 ClassDecorator & PropertyDecorator
Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.