ForeignKey class

Foreign key definition

Available extensions

Constructors

ForeignKey({required String column, required String referencedTable, required String referencedColumn, ForeignKeyAction? onDelete, ForeignKeyAction? onUpdate, String? name})
const

Properties

column → String
final
hashCode → int
The hash code for this object.
no setterinherited
name → String?
final
onDelete → ForeignKeyAction?
final
onUpdate → ForeignKeyAction?
final
referencedColumn → String
final
referencedTable → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSql(DatabaseType dbType) → String

Available on ForeignKey, provided by the ForeignKeyToSql extension

Generate foreign key constraint SQL
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited