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

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:34

Column name in database

Inherited from

ColumnDefinition.name


isPrimaryKey?

optional isPrimaryKey: boolean

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

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:38

Foreign key reference

table

table: string

column

column: string

Inherited from

ColumnDefinition.foreignKey


jsonAlias?

optional jsonAlias: string

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

Alias for JSON output (useful for avoiding conflicts)

Inherited from

ColumnDefinition.jsonAlias

Released under the MIT License.