Skip to content

AdminColumnConfig

AdminColumnConfig = object

Defined in: packages/admin/src/types.ts:322

Metadata for a single column, produced by introspectSchema.

Contains the information needed to render list columns, form fields, and detail views for a database column.

columnType: string

Defined in: packages/admin/src/types.ts:330

The Drizzle column type (e.g., "SQLiteText", "SQLiteInteger", "SQLiteBoolean").


dataType: string

Defined in: packages/admin/src/types.ts:328

The Drizzle data type (e.g., "string", "number", "boolean").


optional enumValues: string[]

Defined in: packages/admin/src/types.ts:338

Allowed enum values, if the column is an enum/text with constrained values.


hasDefault: boolean

Defined in: packages/admin/src/types.ts:334

Whether this column has a default value defined in the schema.


isPrimaryKey: boolean

Defined in: packages/admin/src/types.ts:336

Whether this column is the table’s primary key.


label: string

Defined in: packages/admin/src/types.ts:326

Human-readable label auto-generated from the column name (e.g., "Created At").


name: string

Defined in: packages/admin/src/types.ts:324

The column name as defined in the Drizzle schema (e.g., "created_at").


optional referencesColumn: string

Defined in: packages/admin/src/types.ts:342

The name of the foreign column this column references, if it’s a foreign key.


optional referencesTable: string

Defined in: packages/admin/src/types.ts:340

The name of the foreign table this column references, if it’s a foreign key.


required: boolean

Defined in: packages/admin/src/types.ts:332

Whether this column is required in create/edit forms (non-null and no default).