DbColumn.foreign constructor

const DbColumn.foreign(
  1. String name,
  2. String? references, {
  3. bool nullable = false,
})

Chave estrangeira para references (ex.: 'customers.id').

Implementation

const DbColumn.foreign(this.name, this.references, {this.nullable = false})
  : type = SqlType.bigint,
    unique = false,
    primaryKey = false,
    autoIncrement = false,
    defaultValue = null;