From 0384cb666dffffe1b777a35069834678c27ed85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=BA=A2=E4=BF=9D?= Date: Tue, 27 Oct 2020 17:17:12 +0800 Subject: [PATCH] update collection/opendb-news-favorite/collection.json. --- collection/opendb-news-favorite/collection.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/collection/opendb-news-favorite/collection.json b/collection/opendb-news-favorite/collection.json index fdc6a13..0272a08 100644 --- a/collection/opendb-news-favorite/collection.json +++ b/collection/opendb-news-favorite/collection.json @@ -18,7 +18,10 @@ }, "user_id": { "bsonType": "string", - "description": "收藏者id,参考uni-id-users表" + "description": "收藏者id,参考uni-id-users表", + "forceDefaultValue": { + "$env": "uid" + } }, "create_date": { "bsonType": "timestamp",