From a0c6c61eaf1f086a02b970ccdda72e4ad19f8b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=BA=A2=E4=BF=9D?= Date: Mon, 26 Oct 2020 19:08:01 +0800 Subject: [PATCH] update collection/opendb-news-favorite/collection.json. --- .../opendb-news-favorite/collection.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/collection/opendb-news-favorite/collection.json b/collection/opendb-news-favorite/collection.json index ddce4fb..a9a45c6 100644 --- a/collection/opendb-news-favorite/collection.json +++ b/collection/opendb-news-favorite/collection.json @@ -13,8 +13,25 @@ "user_id": { "bsonType": "string", "description": "收藏者id,参考uni-id-users表" + }, + "create_date": { + "bsonType": "timestamp", + "description": "收藏时间" } } }, - "index": [] + "index": [ + { + "IndexName": "article_id_", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "article_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] }