Skip to Content
Api ReferenceInterfacesColumnDefinitionNode

Last Updated: 3/10/2026


kysely

  • ColumnDefinitionNode

Interface ColumnDefinitionNode

interface ColumnDefinitionNode {
    autoIncrement?: boolean;
    check?: CheckConstraintNode;
    column: ColumnNode;
    dataType: OperationNode;
    defaultTo?: DefaultValueNode;
    endModifiers?: readonly OperationNode[];
    frontModifiers?: readonly OperationNode[];
    generated?: GeneratedNode;
    identity?: boolean;
    ifNotExists?: boolean;
    kind: “ColumnDefinitionNode”;
    notNull?: boolean;
    nullsNotDistinct?: boolean;
    primaryKey?: boolean;
    references?: ReferencesNode;
    unique?: boolean;
    unsigned?: boolean;
}

Hierarchy (View Summary)

Index

Properties

autoIncrement? check? column dataType defaultTo? endModifiers? frontModifiers? generated? identity? ifNotExists? kind notNull? nullsNotDistinct? primaryKey? references? unique? unsigned?

Properties

Optional ReadonlyautoIncrement

autoIncrement?: boolean

Optional Readonlycheck

check?: CheckConstraintNode

Readonlycolumn

column: ColumnNode

ReadonlydataType

dataType: OperationNode

Optional ReadonlydefaultTo

defaultTo?: DefaultValueNode

Optional ReadonlyendModifiers

endModifiers?: readonly OperationNode[]

Optional ReadonlyfrontModifiers

frontModifiers?: readonly OperationNode[]

Optional Readonlygenerated

generated?: GeneratedNode

Optional Readonlyidentity

identity?: boolean

Optional ReadonlyifNotExists

ifNotExists?: boolean

Readonlykind

kind: “ColumnDefinitionNode”

Optional ReadonlynotNull

notNull?: boolean

Optional ReadonlynullsNotDistinct

nullsNotDistinct?: boolean

Optional ReadonlyprimaryKey

primaryKey?: boolean

Optional Readonlyreferences

references?: ReferencesNode

Optional Readonlyunique

unique?: boolean

Optional Readonlyunsigned

unsigned?: boolean

Settings

Member Visibility

On This Page

Properties

autoIncrementcheckcolumndataTypedefaultToendModifiersfrontModifiersgeneratedidentityifNotExistskindnotNullnullsNotDistinctprimaryKeyreferencesuniqueunsigned