mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-14 06:53:00 +08:00
46 lines
958 B
JSON
46 lines
958 B
JSON
{
|
||
"schema": {
|
||
"bsonType": "object",
|
||
"required": ["content"],
|
||
"permission": {
|
||
"read": false,
|
||
"create": false,
|
||
"update": false,
|
||
"delete": false
|
||
},
|
||
"properties": {
|
||
"_id": {
|
||
"description": "ID,系统自动生成"
|
||
},
|
||
"user_id": {
|
||
"bsonType": "string",
|
||
"description": "搜索人id,参考uni-id-users表"
|
||
},
|
||
"device_uuid": {
|
||
"bsonType": "string",
|
||
"description": "设备id"
|
||
},
|
||
"platform": {
|
||
"bsonType": "string",
|
||
"description": "设备平台,如:mp-weixin、app-plus等"
|
||
},
|
||
"content": {
|
||
"bsonType": "string",
|
||
"description": "搜索内容"
|
||
},
|
||
"ip": {
|
||
"bsonType": "string",
|
||
"description": "客户端IP地址",
|
||
"forceDefaultValue": {
|
||
"$env": "clientIP"
|
||
}
|
||
},
|
||
"create_date": {
|
||
"bsonType": "timestamp",
|
||
"description": "统计时间"
|
||
}
|
||
}
|
||
},
|
||
"index": []
|
||
}
|