mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
feat: opendb-verify-code
This commit is contained in:
parent
99fb50fce7
commit
d6d5f7291a
68
collection/opendb-verify-code/collection.json
Normal file
68
collection/opendb-verify-code/collection.json
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"mobile": {
|
||||
"bsonType": "string",
|
||||
"description": "手机号码"
|
||||
},
|
||||
"email": {
|
||||
"bsonType": "string",
|
||||
"description": "邮箱"
|
||||
},
|
||||
"code": {
|
||||
"bsonType": "string",
|
||||
"description": "验证码"
|
||||
},
|
||||
"type": {
|
||||
"bsonType": "string",
|
||||
"description": "验证类型:login, bind, unbind, pay"
|
||||
},
|
||||
"state": {
|
||||
"bsonType": "int",
|
||||
"description": "验证状态:0 未验证、1 已验证、2 已作废"
|
||||
},
|
||||
"ip": {
|
||||
"bsonType": "string",
|
||||
"description": "请求时客户端IP地址"
|
||||
},
|
||||
"created_at": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
},
|
||||
"expired_at": {
|
||||
"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
|
||||
}
|
||||
}]
|
||||
}
|
17
collection/opendb-verify-code/package.json
Normal file
17
collection/opendb-verify-code/package.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@opendb/opendb-verify-code",
|
||||
"version": "0.0.1",
|
||||
"description": "opendb-verify-code 验证码",
|
||||
"keywords": ["验证码"],
|
||||
"opendb": {
|
||||
"title": "验证码",
|
||||
"type": "collection",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "DCloud",
|
||||
"email": "",
|
||||
"homepage": "https://gitee.com/dcloud/opendb"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -9,5 +9,6 @@
|
||||
"uni-id-scores": {},
|
||||
"uni-id-task": {},
|
||||
"uni-id-task-log": {},
|
||||
"uni-id-followers": {}
|
||||
"uni-id-followers": {},
|
||||
"opendb-verify-code": {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user