SchemaColumn constructor
SchemaColumn(})
Implementation
SchemaColumn(
this.name,
this.columnType, {
bool? autoincrement,
this.defaultValue,
this.isPrimaryKey = false,
this.isForeignKey = false,
this.foreignTableName,
bool? nullable,
this.onDeleteCascade = false,
this.onDeleteSetDefault = false,
bool? unique,
}) : autoincrement = autoincrement ?? InsertColumn.defaults.autoincrement,
nullable = nullable ?? InsertColumn.defaults.nullable,
unique = unique ?? InsertColumn.defaults.unique,
assert(!isPrimaryKey || columnType == Column.integer, 'Primary key must be an integer'),
assert(!isForeignKey || (foreignTableName != null));