uni-stat-active-users.schema.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // 活跃用户表
  2. {
  3. "bsonType": "object",
  4. "description": "给周月维度的用户基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的用户。",
  5. "required": [],
  6. "permission": {
  7. "read": false,
  8. "create": false,
  9. "update": false,
  10. "delete": false
  11. },
  12. "properties": {
  13. "_id": {
  14. "description": "ID,系统自动生成"
  15. },
  16. "appid": {
  17. "bsonType": "string",
  18. "description": "应用ID"
  19. },
  20. "platform_id": {
  21. "bsonType": "string",
  22. "description": "应用平台ID,对应uni-stat-app-platforms._id",
  23. "foreignKey": "uni-stat-app-platforms._id"
  24. },
  25. "channel_id": {
  26. "bsonType": "string",
  27. "description": "渠道\/场景值ID,对应uni-stat-app-channels._id",
  28. "foreignKey": "uni-stat-app-channels._id"
  29. },
  30. "version_id": {
  31. "bsonType": "string",
  32. "description": "应用版本ID,对应opendb-app-versions._id",
  33. "foreignKey": "opendb-app-versions._id"
  34. },
  35. "uid": {
  36. "bsonType": "string",
  37. "description": "用户编号, 对应uni-id-users._id"
  38. },
  39. "dimension": {
  40. "bsonType": "string",
  41. "description": "时间范围 week:周,month:月",
  42. "enum": [{
  43. "text": "月",
  44. "value": "month"
  45. }, {
  46. "text": "周",
  47. "value": "week"
  48. }]
  49. },
  50. "create_time": {
  51. "bsonType": "timestamp",
  52. "description": "创建时间"
  53. }
  54. }
  55. }