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": {
|
"schema": {
|
||||||
"bsonType": "object",
|
"bsonType": "object",
|
||||||
"required": ["uid", "content"],
|
"required": ["user_id", "content"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"_id": {
|
"_id": {
|
||||||
"description": "ID,系统自动生成"
|
"description": "ID,系统自动生成"
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
},
|
},
|
||||||
"user_id": {
|
"user_id": {
|
||||||
"bsonType": "String",
|
"bsonType": "String",
|
||||||
"description": "下单用户ID,uni-id-users表"
|
"description": "下单用户ID,uni-id-users表",
|
||||||
|
"foreignKey":"uni-id-users._id"
|
||||||
},
|
},
|
||||||
"platform": {
|
"platform": {
|
||||||
"bsonType": "String",
|
"bsonType": "String",
|
||||||
|
Loading…
Reference in New Issue
Block a user