opendb/collection/uni-stat-app-platforms/collection.json

58 lines
1.2 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"description": "提供应用的平台字典",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"code": {
"bsonType": "string",
"description": "平台代码,前端上报"
},
"name": {
"bsonType": "string",
"description": "平台名称,管理端显示"
},
"order": {
"bsonType": "int",
"description": "序号,前端页面排序使用",
"defaultValue": 0
},
"enable": {
"bsonType": "bool",
"description": "是否启动",
"defaultValue": true,
"enum": [{
"text": "否",
"value": false
}, {
"text": "是",
"value": true
}]
},
"create_time": {
"bsonType": "timestamp",
"description": "创建时间"
}
}
},
"index": [{
"IndexName": "index_search_platforms",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "code",
"Direction": "1"
}],
"MgoIsUnique": true
}
}]
}