ForeignKeyInfo class

Foreign key information for DDL generation.

This is a simple data class that holds the information needed to generate foreign key constraints in DDL statements.

Annotations
  • @immutable

Constructors

ForeignKeyInfo({required String referencedTable, required String referencedColumn, String? onDelete, String? onUpdate})
Foreign key information for DDL generation.
const
ForeignKeyInfo.fromMap(Map<String, dynamic> map)
Creates a ForeignKeyInfo from a map representation.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
onDelete → String?
The ON DELETE action (e.g., 'CASCADE', 'SET NULL').
final
onUpdate → String?
The ON UPDATE action (e.g., 'CASCADE', 'SET NULL').
final
referencedColumn → String
The name of the referenced column.
final
referencedTable → String
The name of the referenced table.
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
toMap() → Map<String, dynamic>
Converts this foreign key info to a map representation.
toString() → String
A string representation of this object.
inherited

Operators

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