add uni-stat-error-source-map

This commit is contained in:
VK 2023-02-07 12:11:42 +08:00
parent 3a803b9519
commit dad224e9f8
4 changed files with 84 additions and 0 deletions

View File

@ -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}}
]
}

View File

@ -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" }
]
}
}

View File

@ -12,6 +12,7 @@
"uni-stat-app-platforms": {}, "uni-stat-app-platforms": {},
"uni-stat-error-logs": {}, "uni-stat-error-logs": {},
"uni-stat-error-result": {}, "uni-stat-error-result": {},
"uni-stat-error-source-map": {},
"uni-stat-event-logs": {}, "uni-stat-event-logs": {},
"uni-stat-event-result": {}, "uni-stat-event-result": {},
"uni-stat-events": {}, "uni-stat-events": {},

View File

@ -7,6 +7,7 @@
"uni-stat-app-versions": {}, "uni-stat-app-versions": {},
"uni-stat-error-logs": {}, "uni-stat-error-logs": {},
"uni-stat-error-result": {}, "uni-stat-error-result": {},
"uni-stat-error-source-map": {},
"uni-stat-event-logs": {}, "uni-stat-event-logs": {},
"uni-stat-event-result": {}, "uni-stat-event-result": {},
"uni-stat-events": {}, "uni-stat-events": {},