opendb/collection/opendb-verify-codes/collection.json
DCloud_LXH 0188fba9eb update:
1. opendb-verify-codes 添加device_uuid索引
2. opendb-id-log 去除 user_id 的required,添加 device_uuid 和 user_id索引
2021-03-16 10:27:09 +08:00

85 lines
1.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"mobile": {
"bsonType": "string",
"description": "手机号码"
},
"email": {
"bsonType": "string",
"description": "邮箱"
},
"device_uuid": {
"bsonType": "string",
"description": "设备UUID常用于图片验证码"
},
"code": {
"bsonType": "string",
"description": "验证码"
},
"scene": {
"bsonType": "string",
"description": "使用验证码的场景login, bind, unbind, pay"
},
"state": {
"bsonType": "int",
"description": "验证状态0 未验证、1 已验证、2 已作废"
},
"ip": {
"bsonType": "string",
"description": "请求时客户端IP地址"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
},
"expired_date": {
"bsonType": "timestamp",
"description": "过期时间"
}
}
},
"index": [{
"IndexName": "mobile_code_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "mobile",
"Direction": "1"
}, {
"Name": "code",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "email_code_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "email",
"Direction": "1"
}, {
"Name": "code",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "device_uuid_code_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "device_uuid",
"Direction": "1"
}, {
"Name": "code",
"Direction": "1"
}],
"MgoIsUnique": false
}
}]
}