fix: update uni-stat tables

This commit is contained in:
jiarongping 2022-04-27 21:34:24 +08:00
parent 3502341afc
commit 2fca2754c8
42 changed files with 42 additions and 42 deletions

View File

@ -1 +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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"is_new":{"bsonType":"int","description":"是否为新设备","defaultValue":0,"enum":[{"text":"否","value":0},{"text":"是","value":1}]},"dimension":{"bsonType":"string","description":"时间范围 week:周month:月","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"}]},"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_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"device_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_new","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"is_new","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"},{"Name":"device_id","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"给周月维度的设备基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的设备","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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"is_new":{"bsonType":"int","description":"是否为新设备","defaultValue":0,"enum":[{"text":"否","value":0},{"text":"是","value":1}]},"dimension":{"bsonType":"string","description":"时间范围 week:周month:月","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"}]},"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_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"device_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_new","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"is_new","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"},{"Name":"device_id","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-active-devices","version":"0.0.1","description":"uni-stat-active-devices","keywords":["活跃设备表,给周月维度的设备基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的设备"],"opendb":{"title":"活跃设备表,给周月维度的设备基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的设备","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-active-devices","version":"0.0.1","description":"uni-stat-active-devices","keywords":["活跃设备表"],"opendb":{"title":"活跃设备表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"dimension":{"bsonType":"string","description":"时间范围 week:周month:月","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"}]},"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_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"给周月维度的用户基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的用户。","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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"dimension":{"bsonType":"string","description":"时间范围 week:周month:月","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"}]},"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_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-active-users","version":"0.0.1","description":"uni-stat-active-users","keywords":["活跃用户表,给周月维度的用户基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的用户。"],"opendb":{"title":"活跃用户表,给周月维度的用户基础统计和留存统计提供数据,每日跑批合并,仅添加本周/本月首次访问的用户。","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-active-users","version":"0.0.1","description":"uni-stat-active-users","keywords":["活跃用户表"],"opendb":{"title":"活跃用户表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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":"应用平台对应uni-stat-app-platforms.code","foreignKey":"uni-stat-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}}]} {"schema":{"bsonType":"object","description":"提供渠道和场景值数据","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":"应用平台对应uni-stat-app-platforms.code","foreignKey":"uni-stat-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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-app-channels","version":"0.0.1","description":"uni-stat-app-channels","keywords":["应用渠道表,提供渠道和场景值数据"],"opendb":{"title":"应用渠道表,提供渠道和场景值数据","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-app-channels","version":"0.0.1","description":"uni-stat-app-channels","keywords":["应用渠道表"],"opendb":{"title":"应用渠道表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"device_net":{"bsonType":"string","description":"设备网络型号wifi/3G/4G/"},"device_os_version":{"bsonType":"string","description":"设备系统版本"},"device_vendor":{"bsonType":"string","description":"设备供应商 "},"device_model":{"bsonType":"string","description":"设备型号"},"sdk_version":{"bsonType":"string","description":"基础库版本号"},"error_msg":{"bsonType":"string","description":"错误信息"},"use_memery_size":{"bsonType":"int","description":"使用的内存量单位为Byte"},"app_count":{"bsonType":"int","description":"运行应用的个数"},"webview_count":{"bsonType":"int","description":"打开Webview窗口的个数"},"page_url":{"bsonType":"string","description":"页面url"},"package_name":{"bsonType":"string","description":"原生应用包名"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"记录原生应用的崩溃日志","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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"device_net":{"bsonType":"string","description":"设备网络型号wifi/3G/4G/"},"device_os_version":{"bsonType":"string","description":"设备系统版本"},"device_vendor":{"bsonType":"string","description":"设备供应商 "},"device_model":{"bsonType":"string","description":"设备型号"},"sdk_version":{"bsonType":"string","description":"基础库版本号"},"error_msg":{"bsonType":"string","description":"错误信息"},"use_memery_size":{"bsonType":"int","description":"使用的内存量单位为Byte"},"app_count":{"bsonType":"int","description":"运行应用的个数"},"webview_count":{"bsonType":"int","description":"打开Webview窗口的个数"},"page_url":{"bsonType":"string","description":"页面url"},"package_name":{"bsonType":"string","description":"原生应用包名"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-app-crash-logs","version":"0.0.1","description":"uni-stat-app-crash-logs","keywords":["原生应用崩溃日志表,记录原生应用的崩溃日志"],"opendb":{"title":"原生应用崩溃日志表,记录原生应用的崩溃日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-app-crash-logs","version":"0.0.1","description":"uni-stat-app-crash-logs","keywords":["原生应用崩溃日志表"],"opendb":{"title":"原生应用崩溃日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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":"平台名称,管理端显示"},"order":{"bsonType":"int","description":"序号,前端页面排序使用","defaultValue":0},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_platforms","MgoKeySchema":{"MgoIndexKeys":[{"Name":"code","Direction":"1"}],"MgoIsUnique":true}}]} {"schema":{"bsonType":"object","description":"提供应用的平台字典","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"code":{"bsonType":"string","description":"平台代码,前端上报"},"name":{"bsonType":"string","description":"平台名称,管理端显示"},"order":{"bsonType":"int","description":"序号,前端页面排序使用","defaultValue":0},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_platforms","MgoKeySchema":{"MgoIndexKeys":[{"Name":"code","Direction":"1"}],"MgoIsUnique":true}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-app-platforms","version":"0.0.1","description":"uni-stat-app-platforms","keywords":["应用平台表,提供应用的平台字典"],"opendb":{"title":"应用平台表,提供应用的平台字典","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-app-platforms","version":"0.0.1","description":"uni-stat-app-platforms","keywords":["应用平台表"],"opendb":{"title":"应用平台表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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":"应用平台对应uni-stat-app-platforms.code","foreignKey":"uni-stat-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}}]} {"schema":{"bsonType":"object","description":"提供应用的版本号字典","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":"应用平台对应uni-stat-app-platforms.code","foreignKey":"uni-stat-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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-app-versions","version":"0.0.1","description":"uni-stat-app-versions","keywords":["应用版本表,提供应用的版本号字典"],"opendb":{"title":"应用版本表,提供应用的版本号字典","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-app-versions","version":"0.0.1","description":"uni-stat-app-versions","keywords":["应用版本表"],"opendb":{"title":"应用版本表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"os":{"bsonType":"string","description":"客户端操作系统"},"ua":{"bsonType":"string","description":"客户端user-agent信息"},"space_id":{"bsonType":"string","description":"服务空间编号"},"space_provider":{"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码"},"page_url":{"bsonType":"string","description":"页面url"},"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}}]} {"schema":{"bsonType":"object","description":"记录上报的应用运行错误日志","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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"os":{"bsonType":"string","description":"客户端操作系统"},"ua":{"bsonType":"string","description":"客户端user-agent信息"},"space_id":{"bsonType":"string","description":"服务空间编号"},"space_provider":{"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码"},"page_url":{"bsonType":"string","description":"页面url"},"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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-error-logs","version":"0.0.1","description":"uni-stat-error-logs","keywords":["应用错误日志表,记录上报的应用运行错误日志"],"opendb":{"title":"应用错误日志表,记录上报的应用运行错误日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-error-logs","version":"0.0.1","description":"uni-stat-error-logs","keywords":["应用错误日志表"],"opendb":{"title":"应用错误日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"hash":{"bsonType":"string","description":"错误hash码"},"msg":{"bsonType":"string","description":"错误信息"},"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}}]} {"schema":{"bsonType":"object","description":"存储汇总的错误日志的数据","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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"hash":{"bsonType":"string","description":"错误hash码"},"msg":{"bsonType":"string","description":"错误信息"},"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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-error-result","version":"0.0.1","description":"uni-stat-error-result","keywords":["错误数据统计结果表,存储汇总的错误日志的数据"],"opendb":{"title":"错误数据统计结果表,存储汇总的错误日志的数据","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-error-result","version":"0.0.1","description":"uni-stat-error-result","keywords":["错误数据统计结果表"],"opendb":{"title":"错误数据统计结果表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"页面ID对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"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}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"event_key","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"记录上报的事件日志","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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"页面ID对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"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}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"event_key","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-event-logs","version":"0.0.1","description":"uni-stat-event-logs","keywords":["应用事件日志表,记录上报的事件日志"],"opendb":{"title":"应用事件日志表,记录上报的事件日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-event-logs","version":"0.0.1","description":"uni-stat-event-logs","keywords":["应用事件日志表"],"opendb":{"title":"应用事件日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"event_key":{"bsonType":"string","description":"事件key对应uni-stat-events.event_key","foreignKey":"uni-stat-events.event_key"},"event_count":{"bsonType":"int","description":"触发次数"},"device_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}}]} {"schema":{"bsonType":"object","description":"存储汇总的事件日志的数据","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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"event_key":{"bsonType":"string","description":"事件key对应uni-stat-events.event_key","foreignKey":"uni-stat-events.event_key"},"event_count":{"bsonType":"int","description":"触发次数"},"device_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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-event-result","version":"0.0.1","description":"uni-stat-event-result","keywords":["事件统计结果表,存储汇总的事件日志的数据"],"opendb":{"title":"事件统计结果表,存储汇总的事件日志的数据","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-event-result","version":"0.0.1","description":"uni-stat-event-result","keywords":["事件统计结果表"],"opendb":{"title":"事件统计结果表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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}}]} {"schema":{"bsonType":"object","description":"提供应用的事件字典","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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-events","version":"0.0.1","description":"uni-stat-events","keywords":["应用事件表,提供应用的事件字典"],"opendb":{"title":"应用事件表,提供应用的事件字典","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-events","version":"0.0.1","description":"uni-stat-events","keywords":["应用事件表"],"opendb":{"title":"应用事件表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"visit_depth_data":{"bsonType":"object","description":"访问深度数据","properties":{"visit_users":{"bsonType":"object","description":"访问用户数"},"visit_devices":{"bsonType":"object","description":"访问设备数"},"visit_times":{"bsonType":"object","description":"访问次数"}}},"duration_data":{"bsonType":"object","description":"访问时长数据","properties":{"visit_users":{"bsonType":"object","description":"访问用户数"},"visit_devices":{"bsonType":"object","description":"访问设备数"},"visit_times":{"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}}]} {"schema":{"bsonType":"object","description":"存储汇总的设备/用户的粘性数据","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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"visit_depth_data":{"bsonType":"object","description":"访问深度数据","properties":{"visit_users":{"bsonType":"object","description":"访问用户数"},"visit_devices":{"bsonType":"object","description":"访问设备数"},"visit_times":{"bsonType":"object","description":"访问次数"}}},"duration_data":{"bsonType":"object","description":"访问时长数据","properties":{"visit_users":{"bsonType":"object","description":"访问用户数"},"visit_devices":{"bsonType":"object","description":"访问设备数"},"visit_times":{"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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-loyalty-result","version":"0.0.1","description":"uni-stat-loyalty-result","keywords":["用户忠诚度统计表,存储汇总的设备/用户的粘性数据"],"opendb":{"title":"用户忠诚度统计表,存储汇总的设备/用户的粘性数据","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-loyalty-result","version":"0.0.1","description":"uni-stat-loyalty-result","keywords":["用户忠诚度统计表"],"opendb":{"title":"用户忠诚度统计表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +1 @@
{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"platform":{"bsonType":"string","description":"应用平台对应uni-stat-app-platforms.code","foreignKey":"uni-stat-app-platforms.code"},"scene_code":{"bsonType":"string","description":"场景代码"},"scene_name":{"bsonType":"string","description":"场景名称"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search","MgoKeySchema":{"MgoIndexKeys":[{"Name":"platform","Direction":"1"},{"Name":"scene_code","Direction":"1"}],"MgoIsUnique":true}}]} {"schema":{"bsonType":"object","description":"提供应用渠道和小程序场景值的数据字典","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"platform":{"bsonType":"string","description":"应用平台对应uni-stat-app-platforms.code","foreignKey":"uni-stat-app-platforms.code"},"scene_code":{"bsonType":"string","description":"场景代码"},"scene_name":{"bsonType":"string","description":"场景名称"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search","MgoKeySchema":{"MgoIndexKeys":[{"Name":"platform","Direction":"1"},{"Name":"scene_code","Direction":"1"}],"MgoIsUnique":true}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-mp-scenes","version":"0.0.1","description":"uni-stat-mp-scenes","keywords":["小程序场景值对照表,提供应用渠道和小程序场景值的数据字典"],"opendb":{"title":"小程序场景值对照表,提供应用渠道和小程序场景值的数据字典","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-mp-scenes","version":"0.0.1","description":"uni-stat-mp-scenes","keywords":["小程序场景值对照表"],"opendb":{"title":"小程序场景值对照表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"previous_page_id":{"bsonType":"string","description":"上级页面ID为空表示第一个页面, 对应uni-stat-pagesd"},"previous_page_duration":{"bsonType":"int","description":"上级页面停留时间,单位秒,前端上报"},"previous_page_is_entry":{"bsonType":"int","defaultValue":0,"description":" 上级页面是否为入口页, 0否 1是","enum":[{"text":"否","value":0},{"text":"是","value":1}]},"query_string":{"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_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":"page_id","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_entry","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"previous_page_id","Direction":"1"},{"Name":"previous_page_is_entry","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_entry_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"previous_page_id","Direction":"1"},{"Name":"previous_page_is_entry","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_more_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"page_id","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"记录上报的页面访问日志","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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"previous_page_id":{"bsonType":"string","description":"上级页面ID为空表示第一个页面, 对应uni-stat-pagesd"},"previous_page_duration":{"bsonType":"int","description":"上级页面停留时间,单位秒,前端上报"},"previous_page_is_entry":{"bsonType":"int","defaultValue":0,"description":" 上级页面是否为入口页, 0否 1是","enum":[{"text":"否","value":0},{"text":"是","value":1}]},"query_string":{"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_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":"page_id","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_entry","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"previous_page_id","Direction":"1"},{"Name":"previous_page_is_entry","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_entry_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"previous_page_id","Direction":"1"},{"Name":"previous_page_is_entry","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_more_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"page_id","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-page-logs","version":"0.0.1","description":"uni-stat-page-logs","keywords":["应用页面访问日志表,记录上报的页面访问日志"],"opendb":{"title":"应用页面访问日志表,记录上报的页面访问日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-page-logs","version":"0.0.1","description":"uni-stat-page-logs","keywords":["应用页面访问日志表"],"opendb":{"title":"应用页面访问日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"page_id":{"bsonType":"string","description":"页面表ID对应页面表ID对应uni-stat-pages._id","foreignKey":"uni-stat-pages._id"},"visit_times":{"bsonType":"int","description":"访问次数"},"visit_devices":{"bsonType":"int","description":"访问设备数"},"exit_times":{"bsonType":"int","description":"退出次数"},"duration":{"bsonType":"int","description":"访问总时长,单位秒"},"share_count":{"bsonType":"int","description":"分享次数"},"entry_devices":{"bsonType":"int","description":"当前页作为入口页的设备数"},"entry_users":{"bsonType":"int","description":"当前页作为入口页的用户数"},"entry_count":{"bsonType":"int","description":"当前页作为入口页的总次数"},"entry_duration":{"bsonType":"int","description":"当前页作为入口时,本页面的总访问时长,单位秒"},"bounce_times":{"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}}]} {"schema":{"bsonType":"object","description":"存储汇总的页面访问日志的数据","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对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"page_id":{"bsonType":"string","description":"页面表ID对应页面表ID对应uni-stat-pages._id","foreignKey":"uni-stat-pages._id"},"visit_times":{"bsonType":"int","description":"访问次数"},"visit_devices":{"bsonType":"int","description":"访问设备数"},"exit_times":{"bsonType":"int","description":"退出次数"},"duration":{"bsonType":"int","description":"访问总时长,单位秒"},"share_count":{"bsonType":"int","description":"分享次数"},"entry_devices":{"bsonType":"int","description":"当前页作为入口页的设备数"},"entry_users":{"bsonType":"int","description":"当前页作为入口页的用户数"},"entry_count":{"bsonType":"int","description":"当前页作为入口页的总次数"},"entry_duration":{"bsonType":"int","description":"当前页作为入口时,本页面的总访问时长,单位秒"},"bounce_times":{"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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-page-result","version":"0.0.1","description":"uni-stat-page-result","keywords":["页面统计结果表,存储汇总的页面访问日志的数据"],"opendb":{"title":"页面统计结果表,存储汇总的页面访问日志的数据","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-page-result","version":"0.0.1","description":"uni-stat-page-result","keywords":["页面统计结果表"],"opendb":{"title":"页面统计结果表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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}}]} {"schema":{"bsonType":"object","description":"提供应用的页面字典","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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-pages","version":"0.0.1","description":"uni-stat-pages","keywords":["应用页面表,提供应用的页面字典"],"opendb":{"title":"应用页面表,提供应用的页面字典","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-pages","version":"0.0.1","description":"uni-stat-pages","keywords":["应用页面表"],"opendb":{"title":"应用页面表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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_id":{"bsonType":"string","description":"应用平台ID对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"total_users":{"bsonType":"int","description":"历史累计总用户数"},"new_user_count":{"bsonType":"int","description":"本时间段新增用户数"},"active_user_count":{"bsonType":"int","description":"本时间段活跃用户数"},"total_devices":{"bsonType":"int","description":"历史累计总设备数"},"new_device_count":{"bsonType":"int","description":"本时间段新增设备数"},"user_session_times":{"bsonType":"int","description":"本时间段用户的会话次数"},"active_device_count":{"bsonType":"int","description":"本时间段活跃设备数"},"app_launch_count":{"bsonType":"int","description":"本时间段App启动或从后台切到前台的次数"},"error_count":{"bsonType":"int","description":"本时间段报错次数"},"duration":{"bsonType":"int","description":"时间段内,所有会话访问总时长,单位秒"},"user_duration":{"bsonType":"int","description":"本次登录用户的会话总时长,单位为秒"},"avg_device_session_time":{"bsonType":"int","description":"设备的次均停留时长,单位秒"},"avg_device_time":{"bsonType":"int","defaultValue":"设均停留时长(平均每台设备的停留时长),单位秒"},"avg_user_session_time":{"bsonType":"int","description":"用户的次均停留时长,单位秒"},"avg_user_time":{"bsonType":"int","defaultValue":"人均停留时长(平均每个登录用户的停留时长),单位秒"},"bounce_times":{"bsonType":"int","description":"跳出次数"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"retention":{"bsonType":"object","description":"留存信息","properties":{"active_user":{"bsonType":"object","description":"活跃用户留存信息"},"new_user":{"bsonType":"object","description":"新增用户留存信息"},"active_device":{"bsonType":"object","description":"活跃设备留存信息"},"new_device":{"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}}]} {"schema":{"bsonType":"object","description":"存储统计汇总的会话数据包括不限于设备/用户的数量、访问量、活跃度(日活、周活、月活)、留存率(日留存、周留存、月留存)、跳出率、访问时长等数据","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_id":{"bsonType":"string","description":"应用平台ID对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"total_users":{"bsonType":"int","description":"历史累计总用户数"},"new_user_count":{"bsonType":"int","description":"本时间段新增用户数"},"active_user_count":{"bsonType":"int","description":"本时间段活跃用户数"},"total_devices":{"bsonType":"int","description":"历史累计总设备数"},"new_device_count":{"bsonType":"int","description":"本时间段新增设备数"},"user_session_times":{"bsonType":"int","description":"本时间段用户的会话次数"},"active_device_count":{"bsonType":"int","description":"本时间段活跃设备数"},"app_launch_count":{"bsonType":"int","description":"本时间段App启动或从后台切到前台的次数"},"error_count":{"bsonType":"int","description":"本时间段报错次数"},"duration":{"bsonType":"int","description":"时间段内,所有会话访问总时长,单位秒"},"user_duration":{"bsonType":"int","description":"本次登录用户的会话总时长,单位为秒"},"avg_device_session_time":{"bsonType":"int","description":"设备的次均停留时长,单位秒"},"avg_device_time":{"bsonType":"int","defaultValue":"设均停留时长(平均每台设备的停留时长),单位秒"},"avg_user_session_time":{"bsonType":"int","description":"用户的次均停留时长,单位秒"},"avg_user_time":{"bsonType":"int","defaultValue":"人均停留时长(平均每个登录用户的停留时长),单位秒"},"bounce_times":{"bsonType":"int","description":"跳出次数"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"retention":{"bsonType":"object","description":"留存信息","properties":{"active_user":{"bsonType":"object","description":"活跃用户留存信息"},"new_user":{"bsonType":"object","description":"新增用户留存信息"},"active_device":{"bsonType":"object","description":"活跃设备留存信息"},"new_device":{"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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-result","version":"0.0.1","description":"uni-stat-result","keywords":["应用统计结果表,存储统计汇总的会话数据包括不限于设备/用户的数量、访问量、活跃度(日活、周活、月活)、留存率(日留存、周留存、月留存)、跳出率、访问时长等数据"],"opendb":{"title":"应用统计结果表,存储统计汇总的会话数据包括不限于设备/用户的数量、访问量、活跃度(日活、周活、月活)、留存率(日留存、周留存、月留存)、跳出率、访问时长等数据","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-result","version":"0.0.1","description":"uni-stat-result","keywords":["应用统计结果表"],"opendb":{"title":"应用统计结果表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +1 @@
{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"mod":{"bsonType":"string","description":"运行模块"},"params":{"bsonType":"object","description":"运行参数"},"error":{"bsonType":"string","description":"错误信息"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}}} {"schema":{"bsonType":"object","description":"记录数据统计时运行出错的日志","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"mod":{"bsonType":"string","description":"运行模块"},"params":{"bsonType":"object","description":"运行参数"},"error":{"bsonType":"string","description":"错误信息"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}}}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-run-errors","version":"0.0.1","description":"uni-stat-run-errors","keywords":["运行错误日志表,记录数据统计时运行出错的日志"],"opendb":{"title":"运行错误日志表,记录数据统计时运行出错的日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-run-errors","version":"0.0.1","description":"uni-stat-run-errors","keywords":["运行错误日志表"],"opendb":{"title":"运行错误日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"last_visit_user_id":{"bsonType":"string","description":"本次会话最终访问用户的ID, uni-id-users._id客户端上报"},"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, 同uni-stat-pagesd"},"exit_page_id":{"bsonType":"string","description":"本次会话退出页面ID, 同uni-stat-pagesd"},"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":"设备系统编号1安卓2iOS3PC"},"device_os_version":{"bsonType":"string","description":"设备系统版本"},"device_net":{"bsonType":"string","description":"设备网络型号wifi/3G/4G/"},"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":"本次会话是否结束01是","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":"device_id","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}},{"IndexName":"index_search_all","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":"page_count","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"记录设备访问时产生的会话日志","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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"last_visit_user_id":{"bsonType":"string","description":"本次会话最终访问用户的ID, uni-id-users._id客户端上报"},"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, 同uni-stat-pagesd"},"exit_page_id":{"bsonType":"string","description":"本次会话退出页面ID, 同uni-stat-pagesd"},"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":"设备系统编号1安卓2iOS3PC"},"device_os_version":{"bsonType":"string","description":"设备系统版本"},"device_net":{"bsonType":"string","description":"设备网络型号wifi/3G/4G/"},"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":"本次会话是否结束01是","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":"device_id","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}},{"IndexName":"index_search_all","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":"page_count","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-session-logs","version":"0.0.1","description":"uni-stat-session-logs","keywords":["应用会话日志表,记录设备访问时产生的会话日志"],"opendb":{"title":"应用会话日志表,记录设备访问时产生的会话日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-session-logs","version":"0.0.1","description":"uni-stat-session-logs","keywords":["应用会话日志表"],"opendb":{"title":"应用会话日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"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}}]} {"schema":{"bsonType":"object","description":"记录触发分享事件的日志","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/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"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}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-share-logs","version":"0.0.1","description":"uni-stat-share-logs","keywords":["应用分享日志表,记录触发分享事件的日志"],"opendb":{"title":"应用分享日志表,记录触发分享事件的日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-share-logs","version":"0.0.1","description":"uni-stat-share-logs","keywords":["应用分享日志表"],"opendb":{"title":"应用分享日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

View File

@ -1 +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/场景值"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"uid":{"bsonType":"string","description":"本次会话最终访问用户的ID, uni-id-users._id"},"last_visit_time":{"bsonType":"timestamp","description":"用户最后一次访问时间"},"entry_page_id":{"bsonType":"string","description":"本次会话入口页面ID, 同uni-stat-pagesd"},"exit_page_id":{"bsonType":"string","description":"本次会话退出页面ID, 同uni-stat-pagesd"},"page_count":{"bsonType":"int","description":"本次会话浏览的页面数"},"event_count":{"bsonType":"int","description":"本次会话产生的事件数"},"duration":{"bsonType":"int","description":"本次会话时长,单位为秒,服务端计算"},"is_finish":{"bsonType":"int","defaultValue":0,"description":"本次会话是否结束01是","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":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]} {"schema":{"bsonType":"object","description":"记录登录用户的会话日志","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/场景值"},"session_id":{"bsonType":"string","description":"访问会话日志ID对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"uid":{"bsonType":"string","description":"本次会话最终访问用户的ID, uni-id-users._id"},"last_visit_time":{"bsonType":"timestamp","description":"用户最后一次访问时间"},"entry_page_id":{"bsonType":"string","description":"本次会话入口页面ID, 同uni-stat-pagesd"},"exit_page_id":{"bsonType":"string","description":"本次会话退出页面ID, 同uni-stat-pagesd"},"page_count":{"bsonType":"int","description":"本次会话浏览的页面数"},"event_count":{"bsonType":"int","description":"本次会话产生的事件数"},"duration":{"bsonType":"int","description":"本次会话时长,单位为秒,服务端计算"},"is_finish":{"bsonType":"int","defaultValue":0,"description":"本次会话是否结束01是","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":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -1 +1 @@
{"name":"@opendb/uni-stat-user-session-logs","version":"0.0.1","description":"uni-stat-user-session-logs","keywords":["用户会话日志表,记录登录用户的会话日志"],"opendb":{"title":"用户会话日志表,记录登录用户的会话日志","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}} {"name":"@opendb/uni-stat-user-session-logs","version":"0.0.1","description":"uni-stat-user-session-logs","keywords":["用户会话日志表"],"opendb":{"title":"用户会话日志表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}