ForeignKey constructor

const ForeignKey({
  1. required List<String> childColumns,
  2. required List<String> parentColumns,
  3. required Type entity,
  4. ForeignKeyAction onUpdate = ForeignKeyAction.noAction,
  5. 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,
});