Skip to content
# Interface: TableColumnDefinitionModel

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? ​

optional typeName: string

Defined in: packages/core/src/models/TableDefinitionModel.ts:16

SQL type that should be used when casting inserted values.


required? ​

optional required: boolean

Defined in: packages/core/src/models/TableDefinitionModel.ts:18

Whether a value is required in the INSERT statement (NOT NULL without default).


defaultValue? ​

optional defaultValue: 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? ​

optional isNotNull: 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 ​

ColumnDefinition.name


isPrimaryKey? ​

optional isPrimaryKey: boolean

Defined in: packages/core/src/utils/SchemaManager.ts:33

Primary key indicator - used for UPDATE/DELETE query WHERE conditions

Inherited from ​

ColumnDefinition.isPrimaryKey


foreignKey? ​

optional foreignKey: object

Defined in: packages/core/src/utils/SchemaManager.ts:35

Foreign key reference

table ​

table: string

column ​

column: string

Inherited from ​

ColumnDefinition.foreignKey

Released under the MIT License.