From 7a920054b6dcb7f43f7e3fd55b3363f186ef0f65 Mon Sep 17 00:00:00 2001 From: handongxun Date: Mon, 14 Sep 2020 15:41:38 +0800 Subject: [PATCH] add collection opendb-search-hot,opendb-search-log --- collection/opendb-search-hot/collection.json | 24 +++++++++++++++++ collection/opendb-search-hot/package.json | 17 ++++++++++++ collection/opendb-search-log/collection.json | 28 ++++++++++++++++++++ collection/opendb-search-log/package.json | 17 ++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 collection/opendb-search-hot/collection.json create mode 100644 collection/opendb-search-hot/package.json create mode 100644 collection/opendb-search-log/collection.json create mode 100644 collection/opendb-search-log/package.json diff --git a/collection/opendb-search-hot/collection.json b/collection/opendb-search-hot/collection.json new file mode 100644 index 0000000..8c06238 --- /dev/null +++ b/collection/opendb-search-hot/collection.json @@ -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": [] +} diff --git a/collection/opendb-search-hot/package.json b/collection/opendb-search-hot/package.json new file mode 100644 index 0000000..1561e11 --- /dev/null +++ b/collection/opendb-search-hot/package.json @@ -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" + } + ] + } +} diff --git a/collection/opendb-search-log/collection.json b/collection/opendb-search-log/collection.json new file mode 100644 index 0000000..e46deba --- /dev/null +++ b/collection/opendb-search-log/collection.json @@ -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": [] +} diff --git a/collection/opendb-search-log/package.json b/collection/opendb-search-log/package.json new file mode 100644 index 0000000..84a5aae --- /dev/null +++ b/collection/opendb-search-log/package.json @@ -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" + } + ] + } +}