From 3895e367106abfdd67fb6ac069a100d7af64469c Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Fri, 31 Jul 2020 16:09:13 -0400 Subject: [PATCH] Split up collections in system/database --- api/src/types/collection.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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; };