diff --git a/collection/uni-stat-error-source-map/collection.json b/collection/uni-stat-error-source-map/collection.json new file mode 100644 index 0000000..f98ec84 --- /dev/null +++ b/collection/uni-stat-error-source-map/collection.json @@ -0,0 +1,69 @@ +{ + "schema": { + "bsonType": "object", + "description": "存储sourceMap文件资源地址", + "required": [], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "appid": { + "bsonType": "string", + "description": "应用ID" + }, + "uni_platform": { + "title": "应用平台", + "bsonType": "string", + "description": "uni客户端平台,如:web、mp-weixin、mp-alipay、app等", + "trim": "both" + }, + "version": { + "bsonType": "string", + "description": "客户端上报的应用版本号" + }, + "file_id": { + "bsonType": "string", + "description": "fileID" + }, + "url": { + "bsonType": "string", + "description": "文件外网url路径" + }, + "name": { + "bsonType": "string", + "description": "文件名" + }, + "size": { + "bsonType": "int", + "description": "文件大小" + }, + "cloud_path": { + "bsonType": "string", + "description": "云端路径,通过该值识别是否是同一个文件" + }, + "base": { + "bsonType": "string", + "description": "基础路径" + }, + "create_time": { + "bsonType": "timestamp", + "description": "上传时间", + "forceDefaultValue": { + "$env": "now" + } + } + } + }, + "index": [ + {"IndexName": "appid","MgoKeySchema": {"MgoIndexKeys": [{"Name": "appid","Direction": "1"}],"MgoIsUnique": false}}, + {"IndexName": "base","MgoKeySchema": {"MgoIndexKeys": [{"Name": "base","Direction": "1"}],"MgoIsUnique": false}}, + {"IndexName": "cloud_path","MgoKeySchema": {"MgoIndexKeys": [{"Name": "cloud_path","Direction": "1"}],"MgoIsUnique": false}}, + {"IndexName": "create_time","MgoKeySchema": {"MgoIndexKeys": [{"Name": "create_time","Direction": "1"}],"MgoIsUnique": false}} + ] +} diff --git a/collection/uni-stat-error-source-map/package.json b/collection/uni-stat-error-source-map/package.json new file mode 100644 index 0000000..18c160d --- /dev/null +++ b/collection/uni-stat-error-source-map/package.json @@ -0,0 +1,13 @@ +{ + "name": "@opendb/uni-stat-error-source-map", + "version": "0.0.1", + "description": "uni-stat-error-source-map", + "keywords": ["存储sourceMap文件资源地址"], + "opendb": { + "title": "存储sourceMap文件资源地址", + "type": "collection", + "contributors": [ + { "name": "DCloud", "email": "", "homepage": "https://gitee.com/dcloud/opendb" } + ] + } +} diff --git a/database/opendb-admin/db_init.json b/database/opendb-admin/db_init.json index db38ed0..14270f8 100644 --- a/database/opendb-admin/db_init.json +++ b/database/opendb-admin/db_init.json @@ -12,6 +12,7 @@ "uni-stat-app-platforms": {}, "uni-stat-error-logs": {}, "uni-stat-error-result": {}, + "uni-stat-error-source-map": {}, "uni-stat-event-logs": {}, "uni-stat-event-result": {}, "uni-stat-events": {}, diff --git a/database/uni-stat/db_init.json b/database/uni-stat/db_init.json index 51cebd3..ee0b772 100644 --- a/database/uni-stat/db_init.json +++ b/database/uni-stat/db_init.json @@ -7,6 +7,7 @@ "uni-stat-app-versions": {}, "uni-stat-error-logs": {}, "uni-stat-error-result": {}, + "uni-stat-error-source-map": {}, "uni-stat-event-logs": {}, "uni-stat-event-result": {}, "uni-stat-events": {},