Interface: Column
A table column with its type and constraints.
Properties
checks
checks: Check[];
Column-level check: constraints.
default
default: ColumnDefault | null;
enumId
enumId: string | null;
Id of the enum this column's type refers to, when it resolves to one in the model.
fromPartial
fromPartial: string | null;
Name of the TablePartial this column was injected from, or null for an own column.
increment
increment: boolean;
isFk
isFk: boolean;
Computed: the column is on the referencing side of at least one ref (see Ref).
name
name: string;
note
note: string | null;
notNull
notNull: boolean;
pk
pk: boolean;
span
span: SourceSpan;
type
type: string;
Type as written, including arguments, e.g. varchar(255), s.mood for a schema-qualified enum.
typeArgs
typeArgs: string | null;
Arguments only, e.g. 255 or 10,2.
unique
unique: boolean;