From c91aed639cdce68fb84e22473534912da87cebd8 Mon Sep 17 00:00:00 2001 From: fasttian Date: Sun, 15 May 2022 10:47:33 +0000 Subject: [PATCH] update collection/uni-id-log/collection.json. --- collection/uni-id-log/collection.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/collection/uni-id-log/collection.json b/collection/uni-id-log/collection.json index 2c2dddf..c23971a 100644 --- a/collection/uni-id-log/collection.json +++ b/collection/uni-id-log/collection.json @@ -7,9 +7,10 @@ "description": "ID,系统自动生成" }, "user_id": { - "bsonType": "string", - "description": "用户id,参考uni-id-users表" - }, + "bsonType": "string", + "foreignKey": "uni-id-users._id", + "description": "用户id,参考uni-id-users表" + }, "ua": { "bsonType": "string", "description": "userAgent"