# Class: ForeignKey

# Hierarchy

Constraint

ForeignKey

# Properties

# columns

columns: IndexableArray‹Column, "name", never, true›

Defined in pg-structure/constraint/foreign-key.ts:61


# Optional comment

comment? : undefined | string

Inherited from DbObject.comment

Defined in pg-structure/base/db-object.ts:75


# index

index: Index

Defined in pg-structure/constraint/foreign-key.ts:55


# matchType

matchType: MatchType

Defined in pg-structure/constraint/foreign-key.ts:38


# name

name: string

Inherited from DbObject.name

Defined in pg-structure/base/db-object.ts:42


# onDelete

onDelete: Action

Defined in pg-structure/constraint/foreign-key.ts:50


# onUpdate

onUpdate: Action

Defined in pg-structure/constraint/foreign-key.ts:44


# table

table: Table

Defined in pg-structure/constraint/foreign-key.ts:95

# Accessors

# commentData

commentData:

Inherited from DbObject.commentData

Defined in pg-structure/base/db-object.ts:102


# commentWithoutData

commentWithoutData:

Inherited from DbObject.commentWithoutData

Defined in pg-structure/base/db-object.ts:85


# correspondingForeignKeys

correspondingForeignKeys:

Defined in pg-structure/constraint/foreign-key.ts:88


# db

db:

Inherited from DbObject.db

Defined in pg-structure/base/db-object.ts:68


# fullCatalogName

fullCatalogName:

Inherited from DbObject.fullCatalogName

Defined in pg-structure/base/db-object.ts:35


# fullName

fullName:

Overrides DbObject.fullName

Defined in pg-structure/constraint/foreign-key.ts:100


# nameCaseType

nameCaseType:

Inherited from DbObject.nameCaseType

Defined in pg-structure/base/db-object.ts:54


# referencedColumns

referencedColumns:

Defined in pg-structure/constraint/foreign-key.ts:74


# referencedColumnsBy

referencedColumnsBy:

Defined in pg-structure/constraint/foreign-key.ts:81


# referencedTable

referencedTable:

Defined in pg-structure/constraint/foreign-key.ts:66


# schema

schema:

Overrides DbObject.schema

Defined in pg-structure/constraint/foreign-key.ts:107


# separator

separator:

Inherited from DbObject.separator

Defined in pg-structure/base/db-object.ts:61