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.
Properties
Section titled “Properties”columnType
Section titled “columnType”columnType:
string
Defined in: packages/admin/src/types.ts:330
The Drizzle column type (e.g., "SQLiteText", "SQLiteInteger", "SQLiteBoolean").
dataType
Section titled “dataType”dataType:
string
Defined in: packages/admin/src/types.ts:328
The Drizzle data type (e.g., "string", "number", "boolean").
enumValues?
Section titled “enumValues?”
optionalenumValues:string[]
Defined in: packages/admin/src/types.ts:338
Allowed enum values, if the column is an enum/text with constrained values.
hasDefault
Section titled “hasDefault”hasDefault:
boolean
Defined in: packages/admin/src/types.ts:334
Whether this column has a default value defined in the schema.
isPrimaryKey
Section titled “isPrimaryKey”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").
referencesColumn?
Section titled “referencesColumn?”
optionalreferencesColumn:string
Defined in: packages/admin/src/types.ts:342
The name of the foreign column this column references, if it’s a foreign key.
referencesTable?
Section titled “referencesTable?”
optionalreferencesTable: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
Section titled “required”required:
boolean
Defined in: packages/admin/src/types.ts:332
Whether this column is required in create/edit forms (non-null and no default).