mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
add collection opendb-news-favorite
This commit is contained in:
parent
0fedf8ef37
commit
b7973df379
20
collection/opendb-news-favorite/collection.json
Normal file
20
collection/opendb-news-favorite/collection.json
Normal 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": []
|
||||||
|
}
|
17
collection/opendb-news-favorite/package.json
Normal file
17
collection/opendb-news-favorite/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"schema": {
|
"schema": {
|
||||||
"bsonType": "object",
|
"bsonType": "object",
|
||||||
"required": ["user_id"],
|
"required": ["friend_uid", "follow_uid"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"_id": {
|
"_id": {
|
||||||
"description": "ID,系统自动生成"
|
"description": "ID,系统自动生成"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"opendb-news-articles": {},
|
"opendb-news-articles": {},
|
||||||
"opendb-news-categories": {},
|
"opendb-news-categories": {},
|
||||||
"opendb-news-comments": {}
|
"opendb-news-comments": {},
|
||||||
|
"opendb-news-favorite": {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user