base-order增加foreignKey

This commit is contained in:
崔红保 2021-04-07 15:13:55 +08:00
parent a9aeec3511
commit 1e3d12fa5d
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"schema": {
"bsonType": "object",
"required": ["uid", "content"],
"required": ["user_id", "content"],
"properties": {
"_id": {
"description": "ID系统自动生成"

View File

@ -24,7 +24,8 @@
},
"user_id": {
"bsonType": "String",
"description": "下单用户IDuni-id-users表"
"description": "下单用户IDuni-id-users表",
"foreignKey":"uni-id-users._id"
},
"platform": {
"bsonType": "String",