reference method
TableBuilder<Key>
reference(
- String name,
- Table table, {
- bool nullable = false,
- CascadeOperation? onUpdate,
- CascadeOperation? onDelete,
- DataAffinity type = DataAffinity.integer,
Implementation
TableBuilder<Key> reference(String name, Table table, {bool nullable = false, CascadeOperation? onUpdate, CascadeOperation? onDelete, DataAffinity type = DataAffinity.integer}) =>
this..columns.add(ReferenceColumn(name, references: table, nullable: nullable, onDelete: onDelete, onUpdate: onUpdate, type: type));