mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 14:31:15 +08:00
base-order增加foreignKey
This commit is contained in:
parent
a9aeec3511
commit
1e3d12fa5d
@ -1,7 +1,7 @@
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"required": ["uid", "content"],
|
||||
"required": ["user_id", "content"],
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user