TableOverrides
TableOverrides =
object
Defined in: packages/admin/src/types.ts:184
Per-table customization for how a table appears and behaves in the admin panel.
Any table not listed in the tables config uses sensible defaults derived
from schema introspection. Auth-internal tables (session, account, verification,
passkey) are auto-excluded unless explicitly configured.
Example
Section titled “Example”const postsOverrides: TableOverrides = { label: "Blog Posts", listColumns: ["title", "author", "published", "createdAt"], searchable: ["title", "content"], defaultSort: { column: "createdAt", direction: "desc" }, fields: { content: { component: RichTextEditor }, },};Properties
Section titled “Properties”actions?
Section titled “actions?”
optionalactions:object
Defined in: packages/admin/src/types.ts:196
Custom row-level and table-level actions. See RowAction and TableAction.
optionalrow:RowAction[]
table?
Section titled “table?”
optionaltable:TableAction[]
defaultSort?
Section titled “defaultSort?”
optionaldefaultSort:object
Defined in: packages/admin/src/types.ts:192
Default sort order for the list view. Defaults to primary key descending.
column
Section titled “column”column:
string
direction
Section titled “direction”direction:
"asc"|"desc"
exclude?
Section titled “exclude?”
optionalexclude:boolean
Defined in: packages/admin/src/types.ts:198
Set to true to hide this table from the admin panel entirely.
fields?
Section titled “fields?”
optionalfields:Record<string,FieldConfig>
Defined in: packages/admin/src/types.ts:194
Custom field configurations for create/edit forms, keyed by column name. Passed to @cfast/forms.
label?
Section titled “label?”
optionallabel:string
Defined in: packages/admin/src/types.ts:186
Custom display label for the table in the sidebar and views. Defaults to a pluralized title-case version of the table name.
listColumns?
Section titled “listColumns?”
optionallistColumns:string[]
Defined in: packages/admin/src/types.ts:188
Column names to show in the list view. Defaults to all non-primary-key columns.
searchable?
Section titled “searchable?”
optionalsearchable:string[]
Defined in: packages/admin/src/types.ts:190
Column names that support text search in the list view. Defaults to the first text column.