OptionalifOptionalengineOptionalcharsetOptionalcollateOptionalcommentOptionalinitialOptionalrowRow format for MySQL/MariaDB (e.g., 'DYNAMIC', 'FIXED', 'COMPRESSED')
OptionalindexesOptionalconstraintsOptionaluniqueUnique keys to create with the table.
Both shapes are accepted because both have always been passed: the legacy
{ name: fields[] } map, and the UniqueKeyOptions-style array that
ModelOptions.uniqueKeys is declared as. The dialects already branch on
Array.isArray; the type now says so.
OptionaltablespacePostgreSQL tablespace
OptionalinheritPostgreSQL: inherit from parent table
OptionalpartitionPostgreSQL: partition by clause
OptionalsystemSystem-versioned (temporal/bitemporal history) table support, e.g.
MariaDB/SQL Server SYSTEM_VERSIONING = ON (plain boolean) or SAP
HANA PERIOD FOR SYSTEM_TIME (...) WITH SYSTEM VERSIONING, which also
accepts a config object naming the history table and period columns.
Dialects that don't support system-versioned tables should ignore this
option.
OptionalhistoryTable?: stringName of the history table that stores prior row versions. When
omitted, the dialect's default/implicit history table naming
applies (e.g. HANA auto-generates one when no HISTORY TABLE
clause is given).
OptionalvalidFromColumn?: stringName of the "row start"/valid-from period column. Defaults to
valid_from when omitted.
OptionalvalidToColumn?: stringName of the "row end"/valid-to period column. Defaults to
valid_to when omitted.
Table-level options for
CREATE TABLE— the engine, charset, comment, partitioning and any indexes or constraints declared inline.