mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
4f44952e78
2. 数据表索引简化
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
||
"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
|
||
}
|
||
}
|
||
]
|
||
} |