add: 增加小程序场景值表结构及基础数据

This commit is contained in:
jiarongping 2022-03-10 11:37:45 +08:00
parent 83eafa3d6d
commit cd555a6097
5 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"platform":{"bsonType":"string","description":"应用平台对应opendb-app-platforms.code","foreignKey":"opendb-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}}]}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"name":"@opendb/opendb-mp-scenes","version":"0.0.1","description":"opendb-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"},"platform_id":{"bsonType":"string","description":"应用平台ID对应opendb-app-platforms._id","foreignKey":"opendb-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-app-channels._id","foreignKey":"opendb-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码"},"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_hash","MgoKeySchema":{"MgoIndexKeys":[{"Name":"hash","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","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-app-platforms._id","foreignKey":"opendb-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-app-channels._id","foreignKey":"opendb-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码"},"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,6 +1,7 @@
{
"opendb-app-platforms": {},
"opendb-app-channels": {},
"opendb-mp-scenes": {},
"opendb-stat-app-versions": {},
"opendb-stat-events": {},
"opendb-stat-pages": {},