opendb-device.schema.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "bsonType": "object",
  3. "required": [],
  4. "permission": {
  5. "read": false,
  6. "create": true,
  7. "update": false,
  8. "delete": false
  9. },
  10. "properties": {
  11. "_id": {
  12. "description": "ID,系统自动生成"
  13. },
  14. "appid": {
  15. "bsonType": "string",
  16. "description": "DCloud appid"
  17. },
  18. "device_id": {
  19. "bsonType": "string",
  20. "description": "设备唯一标识"
  21. },
  22. "vendor": {
  23. "bsonType": "string",
  24. "description": "设备厂商"
  25. },
  26. "push_clientid": {
  27. "bsonType": "string",
  28. "description": "推送设备客户端标识"
  29. },
  30. "imei": {
  31. "bsonType": "string",
  32. "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)"
  33. },
  34. "oaid": {
  35. "bsonType": "string",
  36. "description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)"
  37. },
  38. "idfa": {
  39. "bsonType": "string",
  40. "description": "iOS平台配置应用使用广告标识(IDFA)"
  41. },
  42. "imsi": {
  43. "bsonType": "string",
  44. "description": "国际移动用户识别码(International Mobile Subscriber Identification Number)"
  45. },
  46. "model": {
  47. "bsonType": "string",
  48. "description": "设备型号"
  49. },
  50. "platform": {
  51. "bsonType": "string",
  52. "description": "平台类型"
  53. },
  54. "uni_platform": {
  55. "bsonType": "string",
  56. "description": "uni-app 运行平台,与条件编译平台相同。"
  57. },
  58. "os_name": {
  59. "bsonType": "string",
  60. "description": "ios|android|windows|mac|linux "
  61. },
  62. "os_version": {
  63. "bsonType": "string",
  64. "description": "操作系统版本号 "
  65. },
  66. "os_language": {
  67. "bsonType": "string",
  68. "description": "操作系统语言 "
  69. },
  70. "os_theme": {
  71. "bsonType": "string",
  72. "description": "操作系统主题 light|dark"
  73. },
  74. "pixel_ratio": {
  75. "bsonType": "string",
  76. "description": "设备像素比 "
  77. },
  78. "network_model": {
  79. "bsonType": "string",
  80. "description": "设备网络型号wifi\/3G\/4G\/"
  81. },
  82. "window_width": {
  83. "bsonType": "string",
  84. "description": "设备窗口宽度 "
  85. },
  86. "window_height": {
  87. "bsonType": "string",
  88. "description": "设备窗口高度"
  89. },
  90. "screen_width": {
  91. "bsonType": "string",
  92. "description": "设备屏幕宽度"
  93. },
  94. "screen_height": {
  95. "bsonType": "string",
  96. "description": "设备屏幕高度"
  97. },
  98. "rom_name": {
  99. "bsonType": "string",
  100. "description": "rom 名称"
  101. },
  102. "rom_version": {
  103. "bsonType": "string",
  104. "description": "rom 版本"
  105. },
  106. "location_latitude": {
  107. "bsonType": "double",
  108. "description": "纬度"
  109. },
  110. "location_longitude": {
  111. "bsonType": "double",
  112. "description": "经度"
  113. },
  114. "location_country": {
  115. "bsonType": "string",
  116. "description": "国家"
  117. },
  118. "location_province": {
  119. "bsonType": "string",
  120. "description": "省份"
  121. },
  122. "location_city": {
  123. "bsonType": "string",
  124. "description": "城市"
  125. },
  126. "create_date": {
  127. "bsonType": "timestamp",
  128. "description": "创建时间",
  129. "forceDefaultValue": {
  130. "$env": "now"
  131. }
  132. },
  133. "last_update_date": {
  134. "bsonType": "timestamp",
  135. "description": "最后一次修改时间",
  136. "forceDefaultValue": {
  137. "$env": "now"
  138. }
  139. }
  140. },
  141. "version": "0.0.1"
  142. }