Defined in: packages/core/src/models/TableDefinitionModel.ts:14
Column metadata that augments the SchemaManager definition with type, nullability, and default information for insert simulation.
Extends
Properties
typeName?
optionaltypeName:string
Defined in: packages/core/src/models/TableDefinitionModel.ts:16
SQL type that should be used when casting inserted values.
required?
optionalrequired:boolean
Defined in: packages/core/src/models/TableDefinitionModel.ts:18
Whether a value is required in the INSERT statement (NOT NULL without default).
defaultValue?
optionaldefaultValue:null|string|ValueComponent
Defined in: packages/core/src/models/TableDefinitionModel.ts:20
Expression text or AST from DDL that represents the column default, if any.
isNotNull?
optionalisNotNull:boolean
Defined in: packages/core/src/models/TableDefinitionModel.ts:22
Whether the column can accept null values, based on DDL constraints.
name
name:
string
Defined in: packages/core/src/utils/SchemaManager.ts:34
Column name in database
Inherited from
isPrimaryKey?
optionalisPrimaryKey:boolean
Defined in: packages/core/src/utils/SchemaManager.ts:36
Primary key indicator - used for UPDATE/DELETE query WHERE conditions
Inherited from
foreignKey?
optionalforeignKey:object
Defined in: packages/core/src/utils/SchemaManager.ts:38
Foreign key reference
table
table:
string
column
column:
string
Inherited from
jsonAlias?
optionaljsonAlias:string
Defined in: packages/core/src/utils/SchemaManager.ts:43
Alias for JSON output (useful for avoiding conflicts)