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",