SchemaLayoutOptions
Interface: SchemaLayoutOptions
Defined in: packages/sql-schema/src/plan.ts:202
Options of the builder that change the physical layout: two plans built with different options are incompatible
Properties
columnNaming
columnNaming:
"preserve"|"snake_case"
Defined in: packages/sql-schema/src/plan.ts:206
preserve keeps the field names (quoted camelCase), snake_case converts them
extraColumn
extraColumn:
string|false
Defined in: packages/sql-schema/src/plan.ts:210
Name of the JSON column keeping unknown properties, false to have none
foreignKeys
foreignKeys:
boolean
Defined in: packages/sql-schema/src/plan.ts:214
Create foreign key constraints between the tables of the plan
numericAsDecimal
numericAsDecimal:
boolean
Defined in: packages/sql-schema/src/plan.ts:218
Map JSON schema number to decimal instead of double