uni-stat-loyalty-result.schema.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // 用户忠诚度统计表
  2. {
  3. "bsonType": "object",
  4. "description": "存储汇总的设备/用户的粘性数据",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_LOYALTY_RESULT' in auth.permission",
  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. "visit_depth_data": {
  36. "bsonType": "object",
  37. "description": "访问深度数据",
  38. "properties": {
  39. "visit_users": {
  40. "bsonType": "object",
  41. "description": "访问用户数"
  42. },
  43. "visit_devices": {
  44. "bsonType": "object",
  45. "description": "访问设备数"
  46. },
  47. "visit_times": {
  48. "bsonType": "object",
  49. "description": "访问次数"
  50. }
  51. }
  52. },
  53. "duration_data": {
  54. "bsonType": "object",
  55. "description": "访问时长数据",
  56. "properties": {
  57. "visit_users": {
  58. "bsonType": "object",
  59. "description": "访问用户数"
  60. },
  61. "visit_devices": {
  62. "bsonType": "object",
  63. "description": "访问设备数"
  64. },
  65. "visit_times": {
  66. "bsonType": "object",
  67. "description": "访问次数"
  68. }
  69. }
  70. },
  71. "stat_date": {
  72. "bsonType": "int",
  73. "description": "统计日期,格式yyyymmdd,例:20211201"
  74. },
  75. "start_time": {
  76. "bsonType": "timestamp",
  77. "description": "开始时间"
  78. },
  79. "end_time": {
  80. "bsonType": "timestamp",
  81. "description": "结束时间"
  82. }
  83. }
  84. }