opendb-verify-codes.schema.json 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "bsonType": "object",
  3. "properties": {
  4. "_id": {
  5. "description": "ID,系统自动生成"
  6. },
  7. "code": {
  8. "bsonType": "string",
  9. "description": "验证码"
  10. },
  11. "create_date": {
  12. "bsonType": "timestamp",
  13. "description": "创建时间"
  14. },
  15. "device_uuid": {
  16. "bsonType": "string",
  17. "description": "设备UUID,常用于图片验证码"
  18. },
  19. "email": {
  20. "bsonType": "string",
  21. "description": "邮箱"
  22. },
  23. "expired_date": {
  24. "bsonType": "timestamp",
  25. "description": "过期时间"
  26. },
  27. "ip": {
  28. "bsonType": "string",
  29. "description": "请求时客户端IP地址"
  30. },
  31. "mobile": {
  32. "bsonType": "string",
  33. "description": "手机号码"
  34. },
  35. "scene": {
  36. "bsonType": "string",
  37. "description": "使用验证码的场景,如:login, bind, unbind, pay"
  38. },
  39. "state": {
  40. "bsonType": "int",
  41. "description": "验证状态:0 未验证、1 已验证、2 已作废"
  42. }
  43. },
  44. "required": []
  45. }