ForeignKey constructor

const ForeignKey(
  1. List<String> columns,
  2. String target,
  3. List<String> targetColumns, {
  4. String onDelete = 'RESTRICT',
})

Describes a foreign key; the default deletion action is RESTRICT.

Implementation

const ForeignKey(
  this.columns,
  this.target,
  this.targetColumns, {
  this.onDelete = 'RESTRICT',
});