mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-27 15:01:15 +08:00
补充foreignKey
This commit is contained in:
parent
cccafe8fa6
commit
df1f628b42
@ -14,11 +14,13 @@
|
||||
},
|
||||
"goods_id": {
|
||||
"bsonType": "string",
|
||||
"description": "分类 id,参考`opendb-mall-categories`表"
|
||||
"description": "分类 id,参考`opendb-mall-goods`表",
|
||||
"foreignKey":"opendb-mall-goods._id"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "评论者的uid,参考 uni-id-users 表"
|
||||
"description": "评论者的uid,参考 uni-id-users 表",
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"content": {
|
||||
"bsonType": "string",
|
||||
|
@ -14,7 +14,8 @@
|
||||
},
|
||||
"category_id": {
|
||||
"bsonType": "string",
|
||||
"description": "分类 id,参考`opendb-mall-categories`表"
|
||||
"description": "分类 id,参考`opendb-mall-categories`表",
|
||||
"foreignKey":"opendb-mall-categories._id"
|
||||
},
|
||||
"goods_sn": {
|
||||
"bsonType": "string",
|
||||
|
@ -14,11 +14,13 @@
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章作者ID, 参考`uni-id-users` 表"
|
||||
"description": "文章作者ID, 参考`uni-id-users` 表",
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"category_id": {
|
||||
"bsonType": "string",
|
||||
"description": "分类 id,参考`uni-news-categories`表"
|
||||
"description": "分类 id,参考`uni-news-categories`表",
|
||||
"foreignKey":"opendb-news-categories._id"
|
||||
},
|
||||
"title": {
|
||||
"bsonType": "string",
|
||||
@ -84,7 +86,8 @@
|
||||
},
|
||||
"last_comment_user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "最后回复用户 id,参考`uni-id-users` 表"
|
||||
"description": "最后回复用户 id,参考`uni-id-users` 表",
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"avatar": {
|
||||
"bsonType": "string",
|
||||
|
@ -14,14 +14,16 @@
|
||||
},
|
||||
"article_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章ID,opendb-news-posts 表中的`_id`字段"
|
||||
"description": "文章ID,opendb-news-posts 表中的`_id`字段",
|
||||
"foreignKey":"opendb-news-articles._id"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "评论者ID,参考`uni-id-users` 表",
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
}
|
||||
},
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"comment_content": {
|
||||
"bsonType": "string",
|
||||
@ -38,11 +40,13 @@
|
||||
},
|
||||
"reply_user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "被回复的评论用户ID,comment_type为1时有效"
|
||||
"description": "被回复的评论用户ID,comment_type为1时有效",
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"reply_comment_id": {
|
||||
"bsonType": "string",
|
||||
"description": "被回复的评论ID,comment_type为1时有效"
|
||||
"description": "被回复的评论ID,comment_type为1时有效",
|
||||
"foreignKey":"opendb-news-comments._id"
|
||||
},
|
||||
"comment_date": {
|
||||
"bsonType": "timestamp",
|
||||
|
@ -14,14 +14,16 @@
|
||||
},
|
||||
"article_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章id,参考opendb-news-categories表"
|
||||
"description": "文章id,参考opendb-news-articles表",
|
||||
"foreignKey":"opendb-news-articles._id"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "收藏者id,参考uni-id-users表",
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
}
|
||||
},
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
|
@ -8,11 +8,13 @@
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "用户id,参考uni-id-users表"
|
||||
"description": "用户id,参考uni-id-users表",
|
||||
"foreignKey":"uni-id-users._id"
|
||||
},
|
||||
"task_id": {
|
||||
"bsonType": "string",
|
||||
"description": "任务ID"
|
||||
"description": "任务ID",
|
||||
"foreignKey":"uni-id-task._id"
|
||||
},
|
||||
"result": {
|
||||
"bsonType": "bool",
|
||||
|
Loading…
Reference in New Issue
Block a user