Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TableForeignKey

Foreign key from the database stored in this class.

Hierarchy

  • TableForeignKey

Index

Constructors

constructor

Properties

columnNames

columnNames: string[] = []

Column names which included by this foreign key.

Optional deferrable

deferrable: string

Set this foreign key constraint as "DEFERRABLE" e.g. check constraints at start or at the end of a transaction

Optional name

name: string

Name of the foreign key constraint.

Optional onDelete

onDelete: string

"ON DELETE" of this foreign key, e.g. what action database should perform when referenced stuff is being deleted.

Optional onUpdate

onUpdate: string

"ON UPDATE" of this foreign key, e.g. what action database should perform when referenced stuff is being updated.

referencedColumnNames

referencedColumnNames: string[] = []

Column names which included by this foreign key.

referencedTableName

referencedTableName: string

Table referenced in the foreign key.

Methods

clone

Static create

Generated using TypeDoc