opendb/collection/opendb-app-client-key/collection.json

52 lines
1.1 KiB
JSON

{
"schema": {
"bsonType": "object",
"required": ["_id", "value"],
"properties": {
"_id": {
"bsonType": "string",
"description": "自动生成的id"
},
"app_id": {
"bsonType": "string",
"description": "客户端DCloud AppId"
},
"device_id": {
"bsonType": "string",
"description": "客户端设备id"
},
"private_key": {
"bsonType": "string",
"description": "私钥,仅保存在云端"
},
"public_key": {
"bsonType": "string",
"description": "公钥,下发给客户端使用"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
}
}
},
"index": [
{
"IndexName": "app_device_id_",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "app_id",
"Direction": "1"
},
{
"Name": "device_id",
"Direction": "1"
}
],
"MgoIsUnique": true
}
}
]
}