diff --git a/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts b/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts index 981a17e48..f0b384f86 100644 --- a/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts +++ b/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts @@ -1,3 +1,5 @@ +import { CollectionOptions } from '@nocobase/database'; + export default { name: 'uiSchemaTreePath', autoGenId: false, @@ -12,6 +14,7 @@ export default { type: 'string', name: 'descendant', primaryKey: true, + index: true, }, { type: 'integer', @@ -32,4 +35,4 @@ export default { comment: 'sort of node in adjacency', }, ], -}; +} as CollectionOptions;