diff --git a/api/src/types/collection.ts b/api/src/types/collection.ts index 999d8ed5af..95c863efa5 100644 --- a/api/src/types/collection.ts +++ b/api/src/types/collection.ts @@ -1,11 +1,16 @@ import { Field } from './field'; +import { Table } from 'knex-schema-inspector/lib/types/table'; export type Collection = { collection: string; - note: string | null; - hidden: boolean; - single: boolean; - icon: string | null; - translation: Record; fields?: Field[]; + system: { + collection: string; + note: string | null; + hidden: boolean; + single: boolean; + icon: string | null; + translation: Record; + } | null; + database: Table; };