uni-id-device.schema.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "bsonType": "object",
  3. "required": [
  4. "user_id"
  5. ],
  6. "properties": {
  7. "_id": {
  8. "description": "ID,系统自动生成"
  9. },
  10. "user_id": {
  11. "bsonType": "string",
  12. "description": "用户id,参考uni-id-users表"
  13. },
  14. "ua": {
  15. "bsonType": "string",
  16. "description": "userAgent"
  17. },
  18. "uuid": {
  19. "bsonType": "string",
  20. "description": "设备唯一标识(需要加密存储)"
  21. },
  22. "os_name": {
  23. "bsonType": "string",
  24. "description": "ios|android|windows|mac|linux "
  25. },
  26. "os_version": {
  27. "bsonType": "string",
  28. "description": "操作系统版本号 "
  29. },
  30. "os_language": {
  31. "bsonType": "string",
  32. "description": "操作系统语言 "
  33. },
  34. "os_theme": {
  35. "bsonType": "string",
  36. "description": "操作系统主题 light|dark"
  37. },
  38. "vendor": {
  39. "bsonType": "string",
  40. "description": "设备厂商"
  41. },
  42. "push_clientid": {
  43. "bsonType": "string",
  44. "description": "推送设备客户端标识"
  45. },
  46. "imei": {
  47. "bsonType": "string",
  48. "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)"
  49. },
  50. "oaid": {
  51. "bsonType": "string",
  52. "description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)"
  53. },
  54. "idfa": {
  55. "bsonType": "string",
  56. "description": "iOS平台配置应用使用广告标识(IDFA)"
  57. },
  58. "model": {
  59. "bsonType": "string",
  60. "description": "设备型号"
  61. },
  62. "platform": {
  63. "bsonType": "string",
  64. "description": "平台类型"
  65. },
  66. "create_date": {
  67. "bsonType": "timestamp",
  68. "description": "创建时间",
  69. "forceDefaultValue": {
  70. "$env": "now"
  71. }
  72. },
  73. "last_active_date": {
  74. "bsonType": "timestamp",
  75. "description": "最后登录时间"
  76. },
  77. "last_active_ip": {
  78. "bsonType": "string",
  79. "description": "最后登录IP"
  80. }
  81. },
  82. "version": "0.0.1"
  83. }