PrimaryKey class

Inheritance

Constructors

PrimaryKey({ColumnType columnType = ColumnType.serial})
const

Properties

defaultValue → dynamic
Specifies the default values.
finalinherited
expression String?
A custom SQL expression to execute, instead of a named column.
finalinherited
hasExpression bool
Returns true if expression is not null.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
indexType IndexType
Specifies what kind of index this column is, if any.
finalinherited
isNullable bool
If true, a SQL field will be nullable.
finalinherited
length int
Specifies the length of a VARCHAR.
finalinherited
name String?
Specifies this column name.
finalinherited
precision int
Specifies the precision of a NUMERIC or DECIMAL.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
Specifies the scale of a NUMERIC or DECIMAL.
finalinherited
timezone String?
Specifies the timezone for temporal field.
finalinherited
type ColumnType
Explicitly defines a SQL type for this column.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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