From 1e3d12fa5d697d93e691fce53690f24cde3627a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=BA=A2=E4=BF=9D?= Date: Wed, 7 Apr 2021 15:13:55 +0800 Subject: [PATCH] =?UTF-8?q?base-order=E5=A2=9E=E5=8A=A0foreignKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-feedback/collection.json | 2 +- collection/uni-id-base-order/collection.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/collection/opendb-feedback/collection.json b/collection/opendb-feedback/collection.json index b5b8bff..64f35ee 100644 --- a/collection/opendb-feedback/collection.json +++ b/collection/opendb-feedback/collection.json @@ -1,7 +1,7 @@ { "schema": { "bsonType": "object", - "required": ["uid", "content"], + "required": ["user_id", "content"], "properties": { "_id": { "description": "ID,系统自动生成" diff --git a/collection/uni-id-base-order/collection.json b/collection/uni-id-base-order/collection.json index abfc1af..1f8a7ba 100644 --- a/collection/uni-id-base-order/collection.json +++ b/collection/uni-id-base-order/collection.json @@ -24,7 +24,8 @@ }, "user_id": { "bsonType": "String", - "description": "下单用户ID,uni-id-users表" + "description": "下单用户ID,uni-id-users表", + "foreignKey":"uni-id-users._id" }, "platform": { "bsonType": "String",