From ff4d3c53975dc77ced7106e5d8d9e02c14f98607 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 11 Aug 2021 00:06:56 +0800 Subject: [PATCH] feat: roles_ui_schemas --- packages/plugin-ui-schema/src/collections/ui_schemas.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/plugin-ui-schema/src/collections/ui_schemas.ts b/packages/plugin-ui-schema/src/collections/ui_schemas.ts index 4604fa551..6d5047417 100644 --- a/packages/plugin-ui-schema/src/collections/ui_schemas.ts +++ b/packages/plugin-ui-schema/src/collections/ui_schemas.ts @@ -49,5 +49,11 @@ export default { sourceKey: 'key', foreignKey: 'parentKey', }, + { + type: 'belongsToMany', + name: 'roles', + target: 'roles', + through: 'roles_ui_schemas' + }, ], } as TableOptions;