opendb-frv-logs.schema.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "bsonType": "object",
  3. "permission": {
  4. "read": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission",
  5. "create": "'CREATE_UNI_ID_USERS' in auth.permission",
  6. "update": "doc._id == auth.uid || 'UPDATE_UNI_ID_USERS' in auth.permission",
  7. "delete": "'DELETE_UNI_ID_USERS' in auth.permission"
  8. },
  9. "properties": {
  10. "_id": {
  11. "description": "存储文档 ID(用户 ID),系统自动生成"
  12. },
  13. "certify_id": {
  14. "bsonType": "string",
  15. "description": "认证id"
  16. },
  17. "user_id": {
  18. "bsonType": "string",
  19. "description": "用户id"
  20. },
  21. "real_name": {
  22. "bsonType": "string",
  23. "description": "姓名"
  24. },
  25. "identity": {
  26. "bsonType": "string",
  27. "description": "身份证号码"
  28. },
  29. "status": {
  30. "bsonType": "int",
  31. "description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败",
  32. "maximum": 3,
  33. "minimum": 0
  34. },
  35. "created_date": {
  36. "bsonType": "timestamp",
  37. "description": "创建时间",
  38. "forceDefaultValue": {
  39. "$env": "now"
  40. }
  41. }
  42. },
  43. "required": []
  44. }