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:string|ValueComponent|null
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:31
Column name in database
Inherited from ​
isPrimaryKey? ​
optionalisPrimaryKey:boolean
Defined in: packages/core/src/utils/SchemaManager.ts:33
Primary key indicator - used for UPDATE/DELETE query WHERE conditions
Inherited from ​
foreignKey? ​
optionalforeignKey:object
Defined in: packages/core/src/utils/SchemaManager.ts:35
Foreign key reference
table ​
table:
string
column ​
column:
string