feat: ui-schema-tree-path descendant index (#218)

This commit is contained in:
ChengLei Shao 2022-03-03 21:12:18 +08:00 committed by GitHub
parent 3c55ac7474
commit 2efbe84fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
import { CollectionOptions } from '@nocobase/database';
export default { export default {
name: 'uiSchemaTreePath', name: 'uiSchemaTreePath',
autoGenId: false, autoGenId: false,
@ -12,6 +14,7 @@ export default {
type: 'string', type: 'string',
name: 'descendant', name: 'descendant',
primaryKey: true, primaryKey: true,
index: true,
}, },
{ {
type: 'integer', type: 'integer',
@ -32,4 +35,4 @@ export default {
comment: 'sort of node in adjacency', comment: 'sort of node in adjacency',
}, },
], ],
}; } as CollectionOptions;