diff --git a/collection/opendb-tempdata/collection.json b/collection/opendb-tempdata/collection.json new file mode 100644 index 0000000..ffc87c1 --- /dev/null +++ b/collection/opendb-tempdata/collection.json @@ -0,0 +1,24 @@ +{ + "schema": { + "bsonType": "object", + "required": ["value", "expired"], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "value": { + "description": "值" + }, + "expired": { + "description": "过期时间" + } + } + }, + "index": [] +} diff --git a/collection/opendb-tempdata/package.json b/collection/opendb-tempdata/package.json new file mode 100644 index 0000000..a90281b --- /dev/null +++ b/collection/opendb-tempdata/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/opendb-tempdata", + "version": "0.0.1", + "description": "一般用于存储临时令牌,如:uni-push的token,微信的access_token等", + "keywords": ["access_token","uni-push"], + "opendb": { + "title": "临时数据记录表", + "type": "collection", + "contributors": [ + { + "name": "DCloud_JSON", + "email": "", + "homepage": "https://gitee.com/dcloud/opendb" + } + ] + } +}