Options
All
  • Public
  • Public/Protected
  • All
Menu

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 name

name: undefined | string

Name of the table which contains this foreign key.

Optional onDelete

onDelete: undefined | string

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

Optional onUpdate

onUpdate: undefined | 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