ForeignKeyConstraint
data class ForeignKeyConstraint(val references: Map<Column<*>, Column<*>>, onUpdate: ReferenceOption?, onDelete: ReferenceOption?, name: String?) : DdlAware
Represents a foreign key constraint.
Constructors
Link copied to clipboard
constructor(target: Column<*>, from: Column<*>, onUpdate: ReferenceOption?, onDelete: ReferenceOption?, name: String?)
constructor(references: Map<Column<*>, Column<*>>, onUpdate: ReferenceOption?, onDelete: ReferenceOption?, name: String?)
Properties
Link copied to clipboard
Custom foreign key name, if provided.
Link copied to clipboard
Reference option when performing delete operations.
Link copied to clipboard
The foreign key columns of the referencing child table.
Link copied to clipboard
Name of the referencing child table.
Link copied to clipboard
Mapping of the foreign key columns in the referencing child table to their referenced parent table columns.
Link copied to clipboard
The columns of the referenced parent table.
Link copied to clipboard
The referenced parent table.
Link copied to clipboard
Name of the referenced parent table.
Link copied to clipboard
Reference option when performing update operations.