Define and manage your database schema using PocketSync’s schema classes
TableColumn
provides several factory constructors for creating columns of different types:
Constructor | Description |
---|---|
TableColumn.primaryKey() | Creates a primary key column |
TableColumn.text() | Creates a text column |
TableColumn.integer() | Creates an integer column |
TableColumn.real() | Creates a real (floating point) column |
TableColumn.boolean() | Creates a boolean column (stored as INTEGER) |
TableColumn.blob() | Creates a blob column |
TableColumn.datetime() | Creates a datetime column (stored as INTEGER timestamp) |
TableColumn.foreignKey() | Creates a foreign key column |
TableSchema.virtual()
constructor: