opendb/collection/opendb-news-favorite/collection.json

38 lines
791 B
JSON
Raw Normal View History

2020-09-08 14:37:48 +08:00
{
"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": "收藏时间"
2020-09-08 14:37:48 +08:00
}
}
},
"index": [
{
"IndexName": "article_id_",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "article_id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
2020-09-08 14:37:48 +08:00
}