Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniqueMetadata

Unique metadata contains all information about table's unique constraints.

Hierarchy

  • UniqueMetadata

Index

Constructors

constructor

Properties

columnNamesWithOrderingMap

columnNamesWithOrderingMap: object

Map of column names with order set. Used only by MongoDB driver.

Type declaration

  • [key: string]: number

columns

columns: ColumnMetadata[] = []

Unique columns.

Optional embeddedMetadata

embeddedMetadata: EmbeddedMetadata

Embedded metadata if this unique was applied on embedded.

entityMetadata

entityMetadata: EntityMetadata

Entity metadata of the class to which this unique constraint is applied.

Optional givenColumnNames

givenColumnNames: function | string[]

User specified column names.

Optional givenName

givenName: string

User specified unique constraint name.

name

name: string

Final unique constraint name. If unique constraint name was given by a user then it stores normalized (by naming strategy) givenName. If unique constraint name was not given then its generated.

Optional target

target: Function | string

Target class to which metadata is applied.

Methods

build

Generated using TypeDoc