mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-14 06:53:00 +08:00
4f44952e78
2. 数据表索引简化
82 lines
2.2 KiB
JSON
82 lines
2.2 KiB
JSON
{
|
||
"schema":{
|
||
"bsonType":"object",
|
||
"description":"记录上报的页面详情字典",
|
||
"required":[
|
||
],
|
||
"permission":{
|
||
"read": false,
|
||
"create":false,
|
||
"update":false,
|
||
"delete":false
|
||
},
|
||
"properties":{
|
||
"_id":{
|
||
"description":"ID,系统自动生成"
|
||
},
|
||
"appid":{
|
||
"bsonType":"string",
|
||
"description":"应用ID"
|
||
},
|
||
"page_id":{
|
||
"bsonType":"string",
|
||
"description":"当前页面ID,对应uni-stat-pages._id",
|
||
"foreignKey":"uni-stat-pages._id"
|
||
},
|
||
"page_link":{
|
||
"bsonType":"string",
|
||
"description":"页面链接,匹配并去除链接中无用参数后的url"
|
||
},
|
||
"page_title":{
|
||
"bsonType":"string",
|
||
"description":"页面标题"
|
||
},
|
||
"create_time":{
|
||
"bsonType":"timestamp",
|
||
"description":"创建时间"
|
||
},
|
||
"update_time":{
|
||
"bsonType":"timestamp",
|
||
"description":"修改时间"
|
||
}
|
||
}
|
||
},
|
||
"index":[
|
||
{
|
||
"IndexName":"create_time",
|
||
"MgoKeySchema":{
|
||
"MgoIndexKeys":[
|
||
{
|
||
"Name":"create_time",
|
||
"Direction":"1"
|
||
}
|
||
],
|
||
"MgoIsUnique":false
|
||
}
|
||
},
|
||
{
|
||
"IndexName":"appid",
|
||
"MgoKeySchema":{
|
||
"MgoIndexKeys":[
|
||
{
|
||
"Name":"appid",
|
||
"Direction":"1"
|
||
}
|
||
],
|
||
"MgoIsUnique":false
|
||
}
|
||
},
|
||
{
|
||
"IndexName":"page_id",
|
||
"MgoKeySchema":{
|
||
"MgoIndexKeys":[
|
||
{
|
||
"Name":"page_id",
|
||
"Direction":"1"
|
||
}
|
||
],
|
||
"MgoIsUnique":false
|
||
}
|
||
}
|
||
]
|
||
} |