add collection opendb-search-hot,opendb-search-log

This commit is contained in:
handongxun 2020-09-14 15:41:38 +08:00
parent b7973df379
commit 7a920054b6
4 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{
"schema": {
"bsonType": "object",
"required": ["content", "count"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"content": {
"bsonType": "string",
"description": "搜索内容"
},
"count": {
"bsonType": "long",
"description": "搜索次数"
},
"create_date": {
"bsonType": "timestamp",
"description": "统计时间"
}
}
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-search-hot",
"version": "0.0.1",
"description": "opendb-search-hot",
"keywords": ["热搜"],
"opendb": {
"title": "热搜",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}

View File

@ -0,0 +1,28 @@
{
"schema": {
"bsonType": "object",
"required": ["user_id", "content"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "收藏者id参考uni-id-users表"
},
"device_id": {
"bsonType": "string",
"description": "设备id"
},
"content": {
"bsonType": "string",
"description": "搜索内容"
},
"create_date": {
"bsonType": "timestamp",
"description": "统计时间"
}
}
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-search-log",
"version": "0.0.1",
"description": "opendb-search-log",
"keywords": ["搜索记录"],
"opendb": {
"title": "搜索记录",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}