Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/Unique"

Index

Functions

Functions

Unique

  • Unique(name: string, fields: string[]): Function
  • Unique(fields: string[]): Function
  • Unique(fields: function): Function
  • Unique(name: string, fields: function): Function
  • Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.

    Parameters

    • name: string
    • fields: string[]

    Returns Function

  • Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.

    Parameters

    • fields: string[]

    Returns Function

  • Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.

    Parameters

    • fields: function
        • (object?: any): any[] | object
        • Parameters

          • Optional object: any

          Returns any[] | object

    Returns Function

  • Composite unique constraint must be set on entity classes and must specify entity's fields to be unique.

    Parameters

    • name: string
    • fields: function
        • (object?: any): any[] | object
        • Parameters

          • Optional object: any

          Returns any[] | object

    Returns Function

Generated using TypeDoc