From 4c50c8032b3231d11be5ddda5dbde37083f81ccb Mon Sep 17 00:00:00 2001 From: jiarongping Date: Thu, 17 Feb 2022 16:11:15 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=A2=9E=E5=8A=A0uni=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=95=B0=E6=8D=AE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-app-channels/collection.json | 1 + collection/opendb-app-channels/package.json | 1 + collection/opendb-app-platforms/collection.json | 1 + collection/opendb-app-platforms/data.json | 1 + collection/opendb-app-platforms/package.json | 1 + .../opendb-stat-app-versions/collection.json | 1 + .../opendb-stat-app-versions/package.json | 1 + .../opendb-stat-error-logs/collection.json | 1 + collection/opendb-stat-error-logs/package.json | 1 + .../opendb-stat-error-result/collection.json | 1 + .../opendb-stat-error-result/package.json | 1 + .../opendb-stat-event-logs/collection.json | 1 + collection/opendb-stat-event-logs/package.json | 1 + .../opendb-stat-event-result/collection.json | 1 + .../opendb-stat-event-result/package.json | 1 + collection/opendb-stat-events/collection.json | 1 + collection/opendb-stat-events/package.json | 1 + .../opendb-stat-loyalty-result/collection.json | 1 + .../opendb-stat-loyalty-result/package.json | 1 + .../opendb-stat-page-logs/collection.json | 1 + collection/opendb-stat-page-logs/package.json | 1 + .../opendb-stat-page-result/collection.json | 1 + collection/opendb-stat-page-result/package.json | 1 + collection/opendb-stat-pages/collection.json | 1 + collection/opendb-stat-pages/package.json | 1 + collection/opendb-stat-result/collection.json | 1 + collection/opendb-stat-result/package.json | 1 + .../opendb-stat-session-logs/collection.json | 1 + .../opendb-stat-session-logs/package.json | 1 + .../opendb-stat-share-logs/collection.json | 1 + collection/opendb-stat-share-logs/package.json | 1 + database/opendb-stat/db_init.json | 17 +++++++++++++++++ database/opendb-stat/package.json | 10 ++++++++++ 33 files changed, 58 insertions(+) create mode 100644 collection/opendb-app-channels/collection.json create mode 100644 collection/opendb-app-channels/package.json create mode 100644 collection/opendb-app-platforms/collection.json create mode 100644 collection/opendb-app-platforms/data.json create mode 100644 collection/opendb-app-platforms/package.json create mode 100644 collection/opendb-stat-app-versions/collection.json create mode 100644 collection/opendb-stat-app-versions/package.json create mode 100644 collection/opendb-stat-error-logs/collection.json create mode 100644 collection/opendb-stat-error-logs/package.json create mode 100644 collection/opendb-stat-error-result/collection.json create mode 100644 collection/opendb-stat-error-result/package.json create mode 100644 collection/opendb-stat-event-logs/collection.json create mode 100644 collection/opendb-stat-event-logs/package.json create mode 100644 collection/opendb-stat-event-result/collection.json create mode 100644 collection/opendb-stat-event-result/package.json create mode 100644 collection/opendb-stat-events/collection.json create mode 100644 collection/opendb-stat-events/package.json create mode 100644 collection/opendb-stat-loyalty-result/collection.json create mode 100644 collection/opendb-stat-loyalty-result/package.json create mode 100644 collection/opendb-stat-page-logs/collection.json create mode 100644 collection/opendb-stat-page-logs/package.json create mode 100644 collection/opendb-stat-page-result/collection.json create mode 100644 collection/opendb-stat-page-result/package.json create mode 100644 collection/opendb-stat-pages/collection.json create mode 100644 collection/opendb-stat-pages/package.json create mode 100644 collection/opendb-stat-result/collection.json create mode 100644 collection/opendb-stat-result/package.json create mode 100644 collection/opendb-stat-session-logs/collection.json create mode 100644 collection/opendb-stat-session-logs/package.json create mode 100644 collection/opendb-stat-share-logs/collection.json create mode 100644 collection/opendb-stat-share-logs/package.json create mode 100644 database/opendb-stat/db_init.json create mode 100644 database/opendb-stat/package.json diff --git a/collection/opendb-app-channels/collection.json b/collection/opendb-app-channels/collection.json new file mode 100644 index 0000000..1cfc707 --- /dev/null +++ b/collection/opendb-app-channels/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"platform":{"bsonType":"string","description":"应用平台,对应opendb-app-platforms.code","foreignKey":"opendb-app-platforms.code"},"channel_code":{"bsonType":"int","description":"客户端上报的渠道代码"},"channel_name":{"bsonType":"string","description":"渠道名称,用户可编辑"},"create_time":{"bsonType":"timestamp","description":"创建时间"},"last_modify_time":{"bsonType":"timestamp","description":"最后修改时间"}}},"index":[{"IndexName":"index_search_channel","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_code","Direction":"1"}],"MgoIsUnique":true}}]} \ No newline at end of file diff --git a/collection/opendb-app-channels/package.json b/collection/opendb-app-channels/package.json new file mode 100644 index 0000000..6a7df1c --- /dev/null +++ b/collection/opendb-app-channels/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-app-channels","version":"0.0.1","description":"opendb-app-channels","keywords":["应用渠道表"],"opendb":{"title":"应用渠道表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-app-platforms/collection.json b/collection/opendb-app-platforms/collection.json new file mode 100644 index 0000000..ea49c21 --- /dev/null +++ b/collection/opendb-app-platforms/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"code":{"bsonType":"string","description":"平台代码,前端上报"},"name":{"bsonType":"string","description":"平台名称,管理端显示"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_platforms","MgoKeySchema":{"MgoIndexKeys":[{"Name":"code","Direction":"1"}],"MgoIsUnique":true}}]} \ No newline at end of file diff --git a/collection/opendb-app-platforms/data.json b/collection/opendb-app-platforms/data.json new file mode 100644 index 0000000..7586a64 --- /dev/null +++ b/collection/opendb-app-platforms/data.json @@ -0,0 +1 @@ +[{"_id":"61c046e691a75000014c255f","name":"原生应用-安卓","code":"android","create_time":163998979103},{"_id":"61c046e691a75000014c2560","name":"原生应用-iOS","code":"ios","create_time":163998979103},{"_id":"61c046e691a75000014c2561","name":"HTML5","code":"h5","report_code":"h5","create_time":163998979103},{"_id":"61c046e691a75000014c2562","name":"微信小程序","code":"wx","create_time":163998979103},{"_id":"61c046e691a75000014c2563","name":"百度小程序","code":"bd","create_time":163998979103},{"_id":"61c046e691a75000014c2564","name":"支付宝小程序","code":"ali","create_time":163998979103},{"_id":"61c046e691a75000014c2565","name":"头条小程序","code":"tt","create_time":163998979103},{"_id":"61c046e691a75000014c2566","name":"qq小程序","code":"qq","create_time":163998979103}] \ No newline at end of file diff --git a/collection/opendb-app-platforms/package.json b/collection/opendb-app-platforms/package.json new file mode 100644 index 0000000..0b23bd2 --- /dev/null +++ b/collection/opendb-app-platforms/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-app-platforms","version":"0.0.1","description":"opendb-app-platforms","keywords":["应用平台表"],"opendb":{"title":"应用平台表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-app-versions/collection.json b/collection/opendb-stat-app-versions/collection.json new file mode 100644 index 0000000..cbde0b3 --- /dev/null +++ b/collection/opendb-stat-app-versions/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"platform":{"bsonType":"string","description":"应用平台,对应opendb-app-platforms.code","foreignKey":"opendb-app-platforms.code"},"version":{"bsonType":"string","description":"应用版本"},"create_time":{"bsonType":"timestamp","description":"创建时间"},"last_modify_time":{"bsonType":"timestamp","description":"最后修改时间"}}},"index":[{"IndexName":"index_search_version","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"version","Direction":"1"}],"MgoIsUnique":true}}]} \ No newline at end of file diff --git a/collection/opendb-stat-app-versions/package.json b/collection/opendb-stat-app-versions/package.json new file mode 100644 index 0000000..fa36b67 --- /dev/null +++ b/collection/opendb-stat-app-versions/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-app-versions","version":"0.0.1","description":"opendb-stat-app-versions","keywords":["统计-应用版本表"],"opendb":{"title":"统计-应用版本表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-error-logs/collection.json b/collection/opendb-stat-error-logs/collection.json new file mode 100644 index 0000000..4fd3e54 --- /dev/null +++ b/collection/opendb-stat-error-logs/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"用户端上报的应用ID"},"version":{"bsonType":"string","description":"用户端上报的应用版本号"},"platform":{"bsonType":"string","description":"用户端上报的平台code"},"channel":{"bsonType":"string","description":"用户端上报的渠道code/场景值"},"uuid":{"bsonType":"string","description":"用户端上报的用户标志"},"sdk_version":{"bsonType":"string","description":"小程序基础库版本号"},"platform_version":{"bsonType":"string","description":"微信、支付宝宿主App的版本号"},"error_msg":{"bsonType":"string","description":"错误信息"},"error_hash":{"bsonType":"string","description":"错误hash码"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"hash","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-error-logs/package.json b/collection/opendb-stat-error-logs/package.json new file mode 100644 index 0000000..fe98aac --- /dev/null +++ b/collection/opendb-stat-error-logs/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-error-logs","version":"0.0.1","description":"opendb-stat-error-logs","keywords":["应用错误日志表"],"opendb":{"title":"应用错误日志表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-error-result/collection.json b/collection/opendb-stat-error-result/collection.json new file mode 100644 index 0000000..52a3e95 --- /dev/null +++ b/collection/opendb-stat-error-result/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID,对应opendb-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID,对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID,对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"hash":{"bsonType":"string","description":"错误hash码"},"count":{"bsonType":"int","description":"报错次数"},"last_time":{"bsonType":"timestamp","description":"最近一次报错事件"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计,hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期,格式yyyymmdd,例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-error-result/package.json b/collection/opendb-stat-error-result/package.json new file mode 100644 index 0000000..788d3bd --- /dev/null +++ b/collection/opendb-stat-error-result/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-error-result","version":"0.0.1","description":"opendb-stat-error-result","keywords":["应用错误数据日统计表"],"opendb":{"title":"应用错误数据日统计表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-event-logs/collection.json b/collection/opendb-stat-event-logs/collection.json new file mode 100644 index 0000000..50132e3 --- /dev/null +++ b/collection/opendb-stat-event-logs/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"客户端上报的应用ID"},"version":{"bsonType":"string","description":"客户端上报的应用版本号"},"platform":{"bsonType":"string","description":"客户端上报的平台code"},"channel":{"bsonType":"string","description":"客户端上报的渠道code/场景值"},"uuid":{"bsonType":"string","description":"客户端上报的用户标志"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应opendb-stat-app-session-logs._id","foreignKey":"opendb-stat-app-session-logs._id"},"page_id":{"bsonType":"string","description":"页面ID,对应opendb-stat-app-pages._id","foreignKey":"opendb-stat-app-pages._id"},"event_key":{"bsonType":"string","description":"客户端上报的key"},"param":{"bsonType":"string","description":"事件参数"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"event_key","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-event-logs/package.json b/collection/opendb-stat-event-logs/package.json new file mode 100644 index 0000000..f4b1778 --- /dev/null +++ b/collection/opendb-stat-event-logs/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-event-logs","version":"0.0.1","description":"opendb-stat-event-logs","keywords":["应用事件日志表"],"opendb":{"title":"应用事件日志表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-event-result/collection.json b/collection/opendb-stat-event-result/collection.json new file mode 100644 index 0000000..35c9495 --- /dev/null +++ b/collection/opendb-stat-event-result/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID,对应opendb-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID,对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID,对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"event_key":{"bsonType":"string","description":"事件key"},"event_count":{"bsonType":"int","description":"触发次数"},"user_count":{"bsonType":"int","description":"触发该事件的用户数"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计,hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期,格式yyyymmdd,例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-event-result/package.json b/collection/opendb-stat-event-result/package.json new file mode 100644 index 0000000..b5a8674 --- /dev/null +++ b/collection/opendb-stat-event-result/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-event-result","version":"0.0.1","description":"opendb-stat-event-result","keywords":["事件统计结果表"],"opendb":{"title":"事件统计结果表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-events/collection.json b/collection/opendb-stat-events/collection.json new file mode 100644 index 0000000..ada02c1 --- /dev/null +++ b/collection/opendb-stat-events/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"event_key":{"bsonType":"string","description":"事件键值"},"event_name":{"bsonType":"string","description":"事件名称"},"create_time":{"bsonType":"timestamp","description":"创建时间"},"update_time":{"bsonType":"timestamp","description":"last_modify_time"}}},"index":[{"IndexName":"index_search_event","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"event_key","Direction":"1"}],"MgoIsUnique":true}}]} \ No newline at end of file diff --git a/collection/opendb-stat-events/package.json b/collection/opendb-stat-events/package.json new file mode 100644 index 0000000..1a66af0 --- /dev/null +++ b/collection/opendb-stat-events/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-events","version":"0.0.1","description":"opendb-stat-events","keywords":["应用事件表"],"opendb":{"title":"应用事件表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-loyalty-result/collection.json b/collection/opendb-stat-loyalty-result/collection.json new file mode 100644 index 0000000..0f7d963 --- /dev/null +++ b/collection/opendb-stat-loyalty-result/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID,对应opendb-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID,对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID,对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"visit_depth_data":{"bsonType":"object","description":"访问深度数据"},"duration_data":{"bsonType":"object","description":"访问时长数据"},"stat_date":{"bsonType":"int","description":"统计日期,格式yyyymmdd,例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-loyalty-result/package.json b/collection/opendb-stat-loyalty-result/package.json new file mode 100644 index 0000000..24c18ad --- /dev/null +++ b/collection/opendb-stat-loyalty-result/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-loyalty-result","version":"0.0.1","description":"opendb-stat-loyalty-result","keywords":["用户忠诚度统计表"],"opendb":{"title":"用户忠诚度统计表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-page-logs/collection.json b/collection/opendb-stat-page-logs/collection.json new file mode 100644 index 0000000..9bcdeb4 --- /dev/null +++ b/collection/opendb-stat-page-logs/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"version":{"bsonType":"string","description":"用户端上报的应用版本号"},"platform":{"bsonType":"string","description":"用户端上报的平台code"},"channel":{"bsonType":"string","description":"用户端上报的渠道code/场景值"},"uuid":{"bsonType":"string","description":"用户端上报的用户标志"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应opendb-stat-app-session-logs._id","foreignKey":"opendb-stat-app-session-logs._id"},"current_page_id":{"bsonType":"string","description":"当前页面ID,对应opendb-stat-app-pages._id","foreignKey":"opendb-stat-app-pages._id"},"previous_page_id":{"bsonType":"string","description":"上级页面ID,为空表示第一个页面, 对应opendb-stat-app-pages._id"},"previous_page_duration":{"bsonType":"int","description":"上级页面停留时间,单位秒,前端上报"},"previous_page_is_entry":{"bsonType":"int","defaultValue":0,"description":" 上级页面是否为入口页, 0否 1是","enum":[{"text":"否","value":0},{"text":"是","value":1}]},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_base","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_auto","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_more","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"current_page_id","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-page-logs/package.json b/collection/opendb-stat-page-logs/package.json new file mode 100644 index 0000000..5c59caa --- /dev/null +++ b/collection/opendb-stat-page-logs/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-page-logs","version":"0.0.1","description":"opendb-stat-page-logs","keywords":["应用页面访问日志表"],"opendb":{"title":"应用页面访问日志表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-page-result/collection.json b/collection/opendb-stat-page-result/collection.json new file mode 100644 index 0000000..4b54402 --- /dev/null +++ b/collection/opendb-stat-page-result/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID,对应opendb-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID,对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID,对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"page_id":{"bsonType":"string","description":"页面表ID,对应页面表ID,对应pendb-stat-app-pages._id","foreignKey":"opendb-stat-app-pages._id"},"visit_times":{"bsonType":"int","description":"访问次数"},"visit_users":{"bsonType":"int","description":"访问用户数"},"exit_times":{"bsonType":"int","description":"退出次数"},"duration":{"bsonType":"int","description":"访问总时长,单位秒"},"share_count":{"bsonType":"int","description":"分享次数"},"entry_users":{"bsonType":"int","description":"当前页作为入口页的人数"},"entry_count":{"bsonType":"int","description":"当前页作为入口页的总次数"},"entry_duration":{"bsonType":"int","description":"当前页作为入口时,本页面的总访问时长,单位秒"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计,hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期,格式yyyymmdd,例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-page-result/package.json b/collection/opendb-stat-page-result/package.json new file mode 100644 index 0000000..1bfe3fe --- /dev/null +++ b/collection/opendb-stat-page-result/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-page-result","version":"0.0.1","description":"opendb-stat-page-result","keywords":["应用页面访问数据日统计表"],"opendb":{"title":"应用页面访问数据日统计表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-pages/collection.json b/collection/opendb-stat-pages/collection.json new file mode 100644 index 0000000..8f01426 --- /dev/null +++ b/collection/opendb-stat-pages/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"path":{"bsonType":"string","description":"页面路径,如`/pages/index/index`"},"title":{"bsonType":"string","description":"页面标题"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_page","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"path","Direction":"1"}],"MgoIsUnique":true}}]} \ No newline at end of file diff --git a/collection/opendb-stat-pages/package.json b/collection/opendb-stat-pages/package.json new file mode 100644 index 0000000..c9c4260 --- /dev/null +++ b/collection/opendb-stat-pages/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-pages","version":"0.0.1","description":"opendb-stat-pages","keywords":["统计-应用页面表"],"opendb":{"title":"统计-应用页面表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-result/collection.json b/collection/opendb-stat-result/collection.json new file mode 100644 index 0000000..61a2453 --- /dev/null +++ b/collection/opendb-stat-result/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID,对应opendb-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID,对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID,对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"total_users":{"bsonType":"int","description":"历史累计总用户数"},"new_user_count":{"bsonType":"int","description":"本时间段新增用户数"},"active_user_count":{"bsonType":"int","description":"本时间段活跃用户数"},"app_launch_count":{"bsonType":"int","description":"本时间段App启动或从后台切到前台的次数"},"error_count":{"bsonType":"int","description":"本时间段报错次数"},"duration":{"bsonType":"int","description":"时间段内,所有用户访问总时长,单位秒"},"avg_session_time":{"bsonType":"int","description":"次均停留时长,单位秒"},"avg_user_time":{"bsonType":"int","defaultValue":"人均停留时长,单位秒"},"visitor_avg_time":{"bsonType":"int","description":"人均停留时长"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"retention":{"bsonType":"object","description":"用户留存信息"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计,hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期,格式yyyymmdd,例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-result/package.json b/collection/opendb-stat-result/package.json new file mode 100644 index 0000000..060ea8a --- /dev/null +++ b/collection/opendb-stat-result/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-result","version":"0.0.1","description":"opendb-stat-result","keywords":["每日访问情况汇总表"],"opendb":{"title":"每日访问情况汇总表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-session-logs/collection.json b/collection/opendb-stat-session-logs/collection.json new file mode 100644 index 0000000..e7da9a1 --- /dev/null +++ b/collection/opendb-stat-session-logs/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"客户端上报的应用ID"},"version":{"bsonType":"string","description":"客户端上报的应用版本号"},"platform":{"bsonType":"string","description":"客户端上报的平台code"},"channel":{"bsonType":"string","description":"客户端上报的渠道code/场景值"},"uuid":{"bsonType":"string","description":"客户端上报的用户标志"},"is_first_visit":{"bsonType":"int","description":"是否为首次访问","defaultValue":0,"enum":[{"text":"否","value":0},{"text":"是","value":1}]},"first_visit_time":{"bsonType":"timestamp","description":"用户首次访问时间"},"last_visit_time":{"bsonType":"timestamp","description":"用户最后一次访问时间"},"total_visit_count":{"bsonType":"int","description":"用户累计访问次数,客户端上报"},"entry_page_id":{"bsonType":"string","description":"本次会话入口页面ID, 同opendb-stat-app-pages._id"},"exit_page_id":{"bsonType":"string","description":"本次会话退出页面ID, 同opendb-stat-app-pages._id"},"page_count":{"bsonType":"int","description":"本次会话浏览的页面数"},"event_count":{"bsonType":"int","description":"本次会话产生的事件数"},"duration":{"bsonType":"int","description":"本次会话时长,单位为秒,服务端计算"},"sdk_version":{"bsonType":"string","description":"基础库版本号"},"platform_version":{"bsonType":"string","description":"平台版本,如微信、支付宝宿主App版本号"},"device_os":{"bsonType":"int","description":"设备系统编号"},"device_os_version":{"bsonType":"string","description":"设备系统版本"},"device_net":{"bsonType":"int","description":"设备网"},"device_vendor":{"bsonType":"string","description":"设备供应商 "},"device_model":{"bsonType":"string","description":"设备型号"},"device_language":{"bsonType":"string","description":"设备语言包"},"device_pixel_ratio":{"bsonType":"string","description":"设备像素比 "},"device_window_width":{"bsonType":"string","description":"设备窗口宽度 "},"device_window_height":{"bsonType":"string","description":"设备窗口高度"},"device_screen_width":{"bsonType":"string","description":"设备屏幕宽度"},"device_screen_height":{"bsonType":"string","description":"设备屏幕高度"},"location_ip":{"bsonType":"string","description":"ip"},"location_latitude":{"bsonType":"double","description":"纬度"},"location_longitude":{"bsonType":"double","description":"经度"},"location_country":{"bsonType":"string","description":"国家"},"location_province":{"bsonType":"string","description":"省份"},"location_city":{"bsonType":"string","description":"城市"},"is_finish":{"bsonType":"int","defaultValue":0,"description":"本次会话是否结束,0:否,1是","enum":[{"text":"否","value":0},{"text":"是","value":1}]},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_base","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_auto","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_more","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"uuid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_replenish","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"is_first_visit","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-session-logs/package.json b/collection/opendb-stat-session-logs/package.json new file mode 100644 index 0000000..24a2da3 --- /dev/null +++ b/collection/opendb-stat-session-logs/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-session-logs","version":"0.0.1","description":"opendb-stat-session-logs","keywords":["应用访问日志表"],"opendb":{"title":"应用访问日志表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/collection/opendb-stat-share-logs/collection.json b/collection/opendb-stat-share-logs/collection.json new file mode 100644 index 0000000..5a37a1e --- /dev/null +++ b/collection/opendb-stat-share-logs/collection.json @@ -0,0 +1 @@ +{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"客户端上报的应用ID"},"version":{"bsonType":"string","description":"客户端上报的应用版本号"},"platform":{"bsonType":"string","description":"客户端上报的平台code"},"channel":{"bsonType":"string","description":"客户端上报的渠道code/场景值"},"uuid":{"bsonType":"string","description":"客户端上报的用户标志"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应opendb-stat-app-session-logs._id","foreignKey":"opendb-stat-app-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID,对应opendb-stat-app-pages._id","foreignKey":"opendb-stat-app-pages._id"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"page_id","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} \ No newline at end of file diff --git a/collection/opendb-stat-share-logs/package.json b/collection/opendb-stat-share-logs/package.json new file mode 100644 index 0000000..87315bf --- /dev/null +++ b/collection/opendb-stat-share-logs/package.json @@ -0,0 +1 @@ +{"name":"@opendb/opendb-stat-share-logs","version":"0.0.1","description":"opendb-stat-share-logs","keywords":["应用分享日志表"],"opendb":{"title":"应用分享日志表","type":"collection","contributors":[{"name":"","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} \ No newline at end of file diff --git a/database/opendb-stat/db_init.json b/database/opendb-stat/db_init.json new file mode 100644 index 0000000..77158f0 --- /dev/null +++ b/database/opendb-stat/db_init.json @@ -0,0 +1,17 @@ +{ + "opendb-app-platforms": {}, + "opendb-app-channels": {}, + "opendb-stat-app-versions": {}, + "opendb-stat-events": {}, + "opendb-stat-pages": {}, + "opendb-stat-session-logs": {}, + "opendb-stat-event-logs": {}, + "opendb-stat-page-logs": {}, + "opendb-stat-share-logs": {}, + "opendb-stat-error-logs": {}, + "opendb-stat-result": {}, + "opendb-stat-page-result": {}, + "opendb-stat-event-result": {}, + "opendb-stat-error-result": {}, + "opendb-stat-loyalty-result": {} +} diff --git a/database/opendb-stat/package.json b/database/opendb-stat/package.json new file mode 100644 index 0000000..5fbad64 --- /dev/null +++ b/database/opendb-stat/package.json @@ -0,0 +1,10 @@ +{ + "name": "@opendb/opendb-stat", + "version": "0.0.1", + "description": "opendb-stat", + "keywords": ["opendb-stat", "stat", "statistics"], + "opendb": { + "type": "database", + "title": "opendb-stat" + } +}