ForeignKey constructor
const
ForeignKey({
- required List<
String> childColumns, - required List<
String> parentColumns, - required Type entity,
- ForeignKeyAction onUpdate = ForeignKeyAction.noAction,
- ForeignKeyAction onDelete = ForeignKeyAction.noAction,
Declares a foreign key on another Entity.
Implementation
const ForeignKey({
required this.childColumns,
required this.parentColumns,
required this.entity,
this.onUpdate = ForeignKeyAction.noAction,
this.onDelete = ForeignKeyAction.noAction,
});