ColumnSchema class

Column schema definition

Available extensions

Constructors

ColumnSchema({required String name, required String type, bool nullable = true, bool primaryKey = false, bool unique = false, String? defaultValue, bool autoIncrement = false})
const

Properties

autoIncrement → bool
final
defaultValue → String?
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
nullable → bool
final
primaryKey → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
final
unique → bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSql(DatabaseType dbType) → String

Available on ColumnSchema, provided by the ColumnSchemaToSql extension

Generate column definition SQL
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited