From dae39f1ef1de3675fb038d14d9ac54e10d82ec4c Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 26 Oct 2020 14:32:07 +0800 Subject: [PATCH] chore: opendb-admin-menus menu_id index --- collection/opendb-admin-menus/collection.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/collection/opendb-admin-menus/collection.json b/collection/opendb-admin-menus/collection.json index ec95631..5187d0f 100644 --- a/collection/opendb-admin-menus/collection.json +++ b/collection/opendb-admin-menus/collection.json @@ -58,6 +58,18 @@ ], "MgoIsUnique": false } + }, + { + "IndexName": "menu_id", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "menu_id", + "Direction": "1" + } + ], + "MgoIsUnique": true + } } ] } \ No newline at end of file