mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-14 06:53:00 +08:00
70 lines
2.0 KiB
JSON
70 lines
2.0 KiB
JSON
|
{
|
|||
|
"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}}
|
|||
|
]
|
|||
|
}
|