mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-28 07:19:40 +08:00
38 lines
791 B
JSON
38 lines
791 B
JSON
{
|
||
"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表"
|
||
},
|
||
"create_date": {
|
||
"bsonType": "timestamp",
|
||
"description": "收藏时间"
|
||
}
|
||
}
|
||
},
|
||
"index": [
|
||
{
|
||
"IndexName": "article_id_",
|
||
"MgoKeySchema": {
|
||
"MgoIndexKeys": [
|
||
{
|
||
"Name": "article_id",
|
||
"Direction": "1"
|
||
}
|
||
],
|
||
"MgoIsUnique": false
|
||
}
|
||
}
|
||
]
|
||
}
|