add collection opendb-news-favorite

This commit is contained in:
handongxun 2020-09-08 14:37:48 +08:00
parent 0fedf8ef37
commit b7973df379
4 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,20 @@
{
"schema": {
"bsonType": "object",
"required": ["user_id", "article_id"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"article_id": {
"bsonType": "string",
"description": "文章id参考opendb-news-categories表"
},
"user_id": {
"bsonType": "string",
"description": "收藏者id参考uni-id-users表"
}
}
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-news-favorite",
"version": "0.0.1",
"description": "opendb-news-favorite",
"keywords": ["收藏文章", "favorite"],
"opendb": {
"title": "收藏文章",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}

View File

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

View File

@ -1,5 +1,6 @@
{
"opendb-news-articles": {},
"opendb-news-categories": {},
"opendb-news-comments": {}
"opendb-news-comments": {},
"opendb-news-favorite": {}
}