Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains all information about entity's foreign key.

Hierarchy

  • ForeignKeyMetadata

Index

Constructors

constructor

Properties

columnNames

columnNames: string[] = []

Gets array of column names.

columns

columns: ColumnMetadata[] = []

Array of columns of this foreign key.

entityMetadata

entityMetadata: EntityMetadata

Entity metadata where this foreign key is.

name

name: string

Gets foreign key name.

Optional onDelete

onDelete: OnDeleteType

What to do with a relation on deletion of the row containing a foreign key.

Optional onUpdate

onUpdate: OnUpdateType

What to do with a relation on update of the row containing a foreign key.

referencedColumnNames

referencedColumnNames: string[] = []

Gets array of referenced column names.

referencedColumns

referencedColumns: ColumnMetadata[] = []

Array of referenced columns.

referencedEntityMetadata

referencedEntityMetadata: EntityMetadata

Entity metadata which this foreign key references.

referencedTablePath

referencedTablePath: string

Gets the table name to which this foreign key is referenced.

Methods

build

Generated using TypeDoc