ColumnDefinition constructor
const
ColumnDefinition({
- required String name,
- required ColumnType type,
- bool unsigned = false,
- bool nullable = false,
- bool unique = false,
- bool indexed = false,
- bool primaryKey = false,
- bool autoIncrement = false,
- ColumnDefault? defaultValue,
- String? comment,
- String? charset,
- String? collation,
- String? afterColumn,
- bool first = false,
- String? generatedAs,
- String? storedAs,
- String? virtualAs,
- bool useCurrentOnUpdate = false,
- bool invisible = false,
- bool always = false,
- List<
String> ? allowedValues, - Map<
String, ColumnDriverOverride> driverOverrides = const {},
Implementation
const ColumnDefinition({
required this.name,
required this.type,
this.unsigned = false,
this.nullable = false,
this.unique = false,
this.indexed = false,
this.primaryKey = false,
this.autoIncrement = false,
this.defaultValue,
this.comment,
this.charset,
this.collation,
this.afterColumn,
this.first = false,
this.generatedAs,
this.storedAs,
this.virtualAs,
this.useCurrentOnUpdate = false,
this.invisible = false,
this.always = false,
this.allowedValues,
this.driverOverrides = const {},
});