test
This commit is contained in:
@@ -1,39 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["user_id", "comment_id", "create_time"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "auth.uid != null",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "文档ID,系统自动生成",
|
||||
"bsonType": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"title": "用户ID",
|
||||
"description": "关联用户表中的ID",
|
||||
"foreignKey": "uni-id-users._id",
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
}
|
||||
},
|
||||
"comment_id": {
|
||||
"bsonType": "string",
|
||||
"title": "评论ID",
|
||||
"description": "评论唯一标识符"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"title": "创建时间",
|
||||
"description": "评论创建时间",
|
||||
"defaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
{"bsonType":"object","required":["user_id","comment_id","create_time"],"permission":{"read":true,"create":"auth.uid != null","update":"doc.user_id == auth.uid","delete":"doc.user_id == auth.uid"},"properties":{"_id":{"description":"文档ID,系统自动生成","bsonType":"string"},"user_id":{"bsonType":"string","title":"用户ID","description":"关联用户表中的ID","foreignKey":"uni-id-users._id","forceDefaultValue":{"$env":"uid"}},"comment_id":{"bsonType":"string","title":"评论ID","description":"评论唯一标识符"},"create_time":{"bsonType":"timestamp","title":"创建时间","description":"评论创建时间","defaultValue":{"$env":"now"}}},"version":"1.0.0"}
|
||||
@@ -1,59 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["name", "menu_id"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "'CREATE_OPENDB_ADMIN_MENUS' in auth.permission",
|
||||
"update": "'UPDATE_OPENDB_ADMIN_MENUS' in auth.permission",
|
||||
"delete": "'DELETE_OPENDB_ADMIN_MENUS' in auth.permission"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID,系统自动生成"
|
||||
},
|
||||
"menu_id": {
|
||||
"bsonType": "string",
|
||||
"description": "菜单项的ID,不可重复",
|
||||
"trim": "both"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "菜单名称",
|
||||
"trim": "both"
|
||||
},
|
||||
"icon": {
|
||||
"bsonType": "string",
|
||||
"description": "菜单图标",
|
||||
"trim": "both"
|
||||
},
|
||||
"url": {
|
||||
"bsonType": "string",
|
||||
"description": "菜单url",
|
||||
"trim": "both"
|
||||
},
|
||||
"sort": {
|
||||
"bsonType": "int",
|
||||
"description": "菜单序号(越大越靠后)"
|
||||
},
|
||||
"parent_id": {
|
||||
"bsonType": "string",
|
||||
"description": "父级菜单Id",
|
||||
"parentKey": "menu_id"
|
||||
},
|
||||
"permission": {
|
||||
"bsonType": "array",
|
||||
"description": "菜单权限列表"
|
||||
},
|
||||
"enable": {
|
||||
"bsonType": "bool",
|
||||
"description": "是否启用菜单,true启用、false禁用"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "菜单创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["name","menu_id"],"permission":{"read":true,"create":"'CREATE_OPENDB_ADMIN_MENUS' in auth.permission","update":"'UPDATE_OPENDB_ADMIN_MENUS' in auth.permission","delete":"'DELETE_OPENDB_ADMIN_MENUS' in auth.permission"},"properties":{"_id":{"description":"存储文档 ID,系统自动生成"},"menu_id":{"bsonType":"string","description":"菜单项的ID,不可重复","trim":"both"},"name":{"bsonType":"string","description":"菜单名称","trim":"both"},"icon":{"bsonType":"string","description":"菜单图标","trim":"both"},"url":{"bsonType":"string","description":"菜单url","trim":"both"},"sort":{"bsonType":"int","description":"菜单序号(越大越靠后)"},"parent_id":{"bsonType":"string","description":"父级菜单Id","parentKey":"menu_id"},"permission":{"bsonType":"array","description":"菜单权限列表"},"enable":{"bsonType":"bool","description":"是否启用菜单,true启用、false禁用"},"create_date":{"bsonType":"timestamp","description":"菜单创建时间","forceDefaultValue":{"$env":"now"}}}}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,54 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["bannerfile"],
|
||||
"permission": {
|
||||
"read": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"bannerfile": {
|
||||
"bsonType": "file",
|
||||
"fileMediaType": "image",
|
||||
"title": "图片文件",
|
||||
"description": "图片文件信息,包括文件名、url等"
|
||||
},
|
||||
"open_url": {
|
||||
"bsonType": "string",
|
||||
"description": "点击跳转目标地址。如果是web地址则使用内置web-view打开;如果是本地页面则跳转本地页面;如果是schema地址则打开本地的app",
|
||||
"title": "点击目标地址",
|
||||
"format": "url",
|
||||
"pattern": "^(http:\/\/|https:\/\/|\/|.\/|@\/)\\S",
|
||||
"trim": "both"
|
||||
},
|
||||
"title": {
|
||||
"bsonType": "string",
|
||||
"description": "注意标题文字颜色和背景图靠色导致看不清的问题",
|
||||
"maxLength": 20,
|
||||
"title": "标题",
|
||||
"trim": "both"
|
||||
},
|
||||
"sort": {
|
||||
"bsonType": "int",
|
||||
"description": "数字越小,排序越前",
|
||||
"title": "排序"
|
||||
},
|
||||
"category_id": {
|
||||
"bsonType": "string",
|
||||
"description": "多个栏目的banner都存在一个表里时可用这个字段区分",
|
||||
"title": "分类id"
|
||||
},
|
||||
"status": {
|
||||
"bsonType": "bool",
|
||||
"defaultValue": true,
|
||||
"title": "生效状态"
|
||||
},
|
||||
"description": {
|
||||
"bsonType": "string",
|
||||
"description": "维护者自用描述",
|
||||
"title": "备注",
|
||||
"trim": "both"
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["bannerfile"],"permission":{"read":true},"properties":{"_id":{"description":"ID,系统自动生成"},"bannerfile":{"bsonType":"file","fileMediaType":"image","title":"图片文件","description":"图片文件信息,包括文件名、url等"},"open_url":{"bsonType":"string","description":"点击跳转目标地址。如果是web地址则使用内置web-view打开;如果是本地页面则跳转本地页面;如果是schema地址则打开本地的app","title":"点击目标地址","format":"url","pattern":"^(http:\/\/|https:\/\/|\/|.\/|@\/)\\S","trim":"both"},"title":{"bsonType":"string","description":"注意标题文字颜色和背景图靠色导致看不清的问题","maxLength":20,"title":"标题","trim":"both"},"sort":{"bsonType":"int","description":"数字越小,排序越前","title":"排序"},"category_id":{"bsonType":"string","description":"多个栏目的banner都存在一个表里时可用这个字段区分","title":"分类id"},"status":{"bsonType":"bool","defaultValue":true,"title":"生效状态"},"description":{"bsonType":"string","description":"维护者自用描述","title":"备注","trim":"both"}}}
|
||||
@@ -1,165 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["user_id", "title", "content"],
|
||||
"permission": {
|
||||
"read": "doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1",
|
||||
"create": "auth.uid != null",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID(用户 ID),系统自动生成"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章作者ID, 参考`uni-id-users` 表",
|
||||
"foreignKey": "uni-id-users._id",
|
||||
"defaultValue": {
|
||||
"$env": "uid"
|
||||
}
|
||||
},
|
||||
"category_id": {
|
||||
"bsonType": "string",
|
||||
"title": "分类",
|
||||
"description": "分类 id,参考`uni-news-categories`表",
|
||||
"foreignKey": "opendb-news-categories._id",
|
||||
"enum": {
|
||||
"collection": "opendb-news-categories",
|
||||
"field": "name as text, _id as value"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"bsonType": "string",
|
||||
"title": "标题",
|
||||
"description": "标题",
|
||||
"label": "标题",
|
||||
"trim": "both"
|
||||
},
|
||||
"content": {
|
||||
"bsonType": "string",
|
||||
"title": "文章内容",
|
||||
"description": "文章内容",
|
||||
"label": "文章内容",
|
||||
"trim": "right"
|
||||
},
|
||||
"excerpt": {
|
||||
"bsonType": "string",
|
||||
"title": "文章摘录",
|
||||
"description": "文章摘录",
|
||||
"label": "摘要",
|
||||
"trim": "both"
|
||||
},
|
||||
"article_status": {
|
||||
"bsonType": "int",
|
||||
"title": "文章状态",
|
||||
"description": "文章状态:0 草稿箱 1 已发布",
|
||||
"defaultValue": 0,
|
||||
"enum": [{
|
||||
"value": 0,
|
||||
"text": "草稿箱"
|
||||
}, {
|
||||
"value": 1,
|
||||
"text": "已发布"
|
||||
}]
|
||||
},
|
||||
"view_count": {
|
||||
"bsonType": "int",
|
||||
"title": "阅读数量",
|
||||
"description": "阅读数量",
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"like_count": {
|
||||
"bsonType": "int",
|
||||
"description": "喜欢数、点赞数",
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"is_sticky": {
|
||||
"bsonType": "bool",
|
||||
"title": "是否置顶",
|
||||
"description": "是否置顶",
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"is_essence": {
|
||||
"bsonType": "bool",
|
||||
"title": "阅读加精",
|
||||
"description": "阅读加精",
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"comment_status": {
|
||||
"bsonType": "int",
|
||||
"title": "开放评论",
|
||||
"description": "评论状态:0 关闭 1 开放",
|
||||
"enum": [{
|
||||
"value": 0,
|
||||
"text": "关闭"
|
||||
}, {
|
||||
"value": 1,
|
||||
"text": "开放"
|
||||
}]
|
||||
},
|
||||
"comment_count": {
|
||||
"bsonType": "int",
|
||||
"description": "评论数量",
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"last_comment_user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "最后回复用户 id,参考`uni-id-users` 表",
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"avatar": {
|
||||
"bsonType": "string",
|
||||
"title": "封面大图",
|
||||
"description": "缩略图地址",
|
||||
"label": "封面大图",
|
||||
"trim": "both"
|
||||
},
|
||||
"publish_date": {
|
||||
"bsonType": "timestamp",
|
||||
"title": "发表时间",
|
||||
"description": "发表时间",
|
||||
"defaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
},
|
||||
"publish_ip": {
|
||||
"bsonType": "string",
|
||||
"title": "发布文章时IP地址",
|
||||
"description": "发表时 IP 地址",
|
||||
"forceDefaultValue": {
|
||||
"$env": "clientIP"
|
||||
}
|
||||
},
|
||||
"last_modify_date": {
|
||||
"bsonType": "timestamp",
|
||||
"title": "最后修改时间",
|
||||
"description": "最后修改时间",
|
||||
"defaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
},
|
||||
"last_modify_ip": {
|
||||
"bsonType": "string",
|
||||
"description": "最后修改时 IP 地址",
|
||||
"forceDefaultValue": {
|
||||
"$env": "clientIP"
|
||||
}
|
||||
},
|
||||
"mode": {
|
||||
"bsonType": "number",
|
||||
"title": "排版显示模式",
|
||||
"description": "排版显示模式,如左图右文、上图下文等"
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["user_id","title","content"],"permission":{"read":"doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1","create":"auth.uid != null","update":"doc.user_id == auth.uid","delete":"doc.user_id == auth.uid"},"properties":{"_id":{"description":"存储文档 ID(用户 ID),系统自动生成"},"user_id":{"bsonType":"string","description":"文章作者ID, 参考`uni-id-users` 表","foreignKey":"uni-id-users._id","defaultValue":{"$env":"uid"}},"category_id":{"bsonType":"string","title":"分类","description":"分类 id,参考`uni-news-categories`表","foreignKey":"opendb-news-categories._id","enum":{"collection":"opendb-news-categories","field":"name as text, _id as value"}},"title":{"bsonType":"string","title":"标题","description":"标题","label":"标题","trim":"both"},"content":{"bsonType":"string","title":"文章内容","description":"文章内容","label":"文章内容","trim":"right"},"excerpt":{"bsonType":"string","title":"文章摘录","description":"文章摘录","label":"摘要","trim":"both"},"article_status":{"bsonType":"int","title":"文章状态","description":"文章状态:0 草稿箱 1 已发布","defaultValue":0,"enum":[{"value":0,"text":"草稿箱"},{"value":1,"text":"已发布"}]},"view_count":{"bsonType":"int","title":"阅读数量","description":"阅读数量","permission":{"write":false}},"like_count":{"bsonType":"int","description":"喜欢数、点赞数","permission":{"write":false}},"is_sticky":{"bsonType":"bool","title":"是否置顶","description":"是否置顶","permission":{"write":false}},"is_essence":{"bsonType":"bool","title":"阅读加精","description":"阅读加精","permission":{"write":false}},"comment_status":{"bsonType":"int","title":"开放评论","description":"评论状态:0 关闭 1 开放","enum":[{"value":0,"text":"关闭"},{"value":1,"text":"开放"}]},"comment_count":{"bsonType":"int","description":"评论数量","permission":{"write":false}},"last_comment_user_id":{"bsonType":"string","description":"最后回复用户 id,参考`uni-id-users` 表","foreignKey":"uni-id-users._id"},"avatar":{"bsonType":"string","title":"封面大图","description":"缩略图地址","label":"封面大图","trim":"both"},"publish_date":{"bsonType":"timestamp","title":"发表时间","description":"发表时间","defaultValue":{"$env":"now"}},"publish_ip":{"bsonType":"string","title":"发布文章时IP地址","description":"发表时 IP 地址","forceDefaultValue":{"$env":"clientIP"}},"last_modify_date":{"bsonType":"timestamp","title":"最后修改时间","description":"最后修改时间","defaultValue":{"$env":"now"}},"last_modify_ip":{"bsonType":"string","description":"最后修改时 IP 地址","forceDefaultValue":{"$env":"clientIP"}},"mode":{"bsonType":"number","title":"排版显示模式","description":"排版显示模式,如左图右文、上图下文等"}}}
|
||||
@@ -1,50 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["name"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID(文章 ID),系统自动生成"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "类别名称",
|
||||
"label": "名称",
|
||||
"trim": "both"
|
||||
},
|
||||
"description": {
|
||||
"bsonType": "string",
|
||||
"description": "类别描述",
|
||||
"label": "描述",
|
||||
"trim": "both"
|
||||
},
|
||||
"icon": {
|
||||
"bsonType": "string",
|
||||
"description": "类别图标地址",
|
||||
"label": "图标地址",
|
||||
"pattern": "^(http:\/\/|https:\/\/|\/|.\/|@\/)\\S",
|
||||
"trim": "both"
|
||||
},
|
||||
"sort": {
|
||||
"bsonType": "int",
|
||||
"description": "类别显示顺序",
|
||||
"label": "排序"
|
||||
},
|
||||
"article_count": {
|
||||
"bsonType": "int",
|
||||
"description": "该类别下文章数量"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["name"],"permission":{"read":true,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"存储文档 ID(文章 ID),系统自动生成"},"name":{"bsonType":"string","description":"类别名称","label":"名称","trim":"both"},"description":{"bsonType":"string","description":"类别描述","label":"描述","trim":"both"},"icon":{"bsonType":"string","description":"类别图标地址","label":"图标地址","pattern":"^(http:\/\/|https:\/\/|\/|.\/|@\/)\\S","trim":"both"},"sort":{"bsonType":"int","description":"类别显示顺序","label":"排序"},"article_count":{"bsonType":"int","description":"该类别下文章数量"},"create_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}}}}
|
||||
@@ -1,68 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["article_id", "user_id", "comment_content", "like_count", "comment_type", "reply_user_id",
|
||||
"reply_comment_id"
|
||||
],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "auth.uid != null && get(`database.opendb-news-articles.${doc.article_id}`).comment_status == 1",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID(文章 ID),系统自动生成"
|
||||
},
|
||||
"article_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章ID,opendb-news-posts 表中的`_id`字段",
|
||||
"foreignKey": "opendb-news-articles._id"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "评论者ID,参考`uni-id-users` 表",
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
},
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"comment_content": {
|
||||
"bsonType": "string",
|
||||
"description": "评论内容",
|
||||
"title": "评论内容",
|
||||
"trim": "right"
|
||||
},
|
||||
"like_count": {
|
||||
"bsonType": "int",
|
||||
"description": "评论喜欢数、点赞数"
|
||||
},
|
||||
"comment_type": {
|
||||
"bsonType": "int",
|
||||
"description": "回复类型: 0 针对文章的回复 1 针对评论的回复"
|
||||
},
|
||||
"reply_user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "被回复的评论用户ID,comment_type为1时有效",
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"reply_comment_id": {
|
||||
"bsonType": "string",
|
||||
"description": "被回复的评论ID,comment_type为1时有效",
|
||||
"foreignKey": "opendb-news-comments._id"
|
||||
},
|
||||
"comment_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "评论发表时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
},
|
||||
"comment_ip": {
|
||||
"bsonType": "string",
|
||||
"description": "评论发表时 IP 地址",
|
||||
"forceDefaultValue": {
|
||||
"$env": "clientIP"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["article_id","user_id","comment_content","like_count","comment_type","reply_user_id","reply_comment_id"],"permission":{"read":true,"create":"auth.uid != null && get(`database.opendb-news-articles.${doc.article_id}`).comment_status == 1","update":"doc.user_id == auth.uid","delete":"doc.user_id == auth.uid"},"properties":{"_id":{"description":"存储文档 ID(文章 ID),系统自动生成"},"article_id":{"bsonType":"string","description":"文章ID,opendb-news-posts 表中的`_id`字段","foreignKey":"opendb-news-articles._id"},"user_id":{"bsonType":"string","description":"评论者ID,参考`uni-id-users` 表","forceDefaultValue":{"$env":"uid"},"foreignKey":"uni-id-users._id"},"comment_content":{"bsonType":"string","description":"评论内容","title":"评论内容","trim":"right"},"like_count":{"bsonType":"int","description":"评论喜欢数、点赞数"},"comment_type":{"bsonType":"int","description":"回复类型: 0 针对文章的回复 1 针对评论的回复"},"reply_user_id":{"bsonType":"string","description":"被回复的评论用户ID,comment_type为1时有效","foreignKey":"uni-id-users._id"},"reply_comment_id":{"bsonType":"string","description":"被回复的评论ID,comment_type为1时有效","foreignKey":"opendb-news-comments._id"},"comment_date":{"bsonType":"timestamp","description":"评论发表时间","forceDefaultValue":{"$env":"now"}},"comment_ip":{"bsonType":"string","description":"评论发表时 IP 地址","forceDefaultValue":{"$env":"clientIP"}}}}
|
||||
@@ -1,46 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["user_id", "article_id"],
|
||||
"permission": {
|
||||
"read": "doc.user_id == auth.uid",
|
||||
"create": "auth.uid != null",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"article_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章id,参考opendb-news-articles表",
|
||||
"foreignKey": "opendb-news-articles._id"
|
||||
},
|
||||
"article_title": {
|
||||
"bsonType": "string",
|
||||
"description": "文章标题"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "收藏者id,参考uni-id-users表",
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
},
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "收藏时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
},
|
||||
"update_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "更新\/修改时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["user_id","article_id"],"permission":{"read":"doc.user_id == auth.uid","create":"auth.uid != null","update":"doc.user_id == auth.uid","delete":"doc.user_id == auth.uid"},"properties":{"_id":{"description":"ID,系统自动生成"},"article_id":{"bsonType":"string","description":"文章id,参考opendb-news-articles表","foreignKey":"opendb-news-articles._id"},"article_title":{"bsonType":"string","description":"文章标题"},"user_id":{"bsonType":"string","description":"收藏者id,参考uni-id-users表","forceDefaultValue":{"$env":"uid"},"foreignKey":"uni-id-users._id"},"create_date":{"bsonType":"timestamp","description":"收藏时间","forceDefaultValue":{"$env":"now"}},"update_date":{"bsonType":"timestamp","description":"更新\/修改时间","forceDefaultValue":{"$env":"now"}}}}
|
||||
@@ -1,27 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"permission": {
|
||||
"create": false,
|
||||
"delete": false,
|
||||
"read": true,
|
||||
"update": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"content": {
|
||||
"bsonType": "string",
|
||||
"description": "搜索内容"
|
||||
},
|
||||
"count": {
|
||||
"bsonType": "long",
|
||||
"description": "搜索次数"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "统计时间"
|
||||
}
|
||||
},
|
||||
"required": ["content", "count"]
|
||||
}
|
||||
{"bsonType":"object","permission":{"create":false,"delete":false,"read":true,"update":false},"properties":{"_id":{"description":"ID,系统自动生成"},"content":{"bsonType":"string","description":"搜索内容"},"count":{"bsonType":"long","description":"搜索次数"},"create_date":{"bsonType":"timestamp","description":"统计时间"}},"required":["content","count"]}
|
||||
@@ -1,31 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"permission": {
|
||||
"create": true,
|
||||
"delete": false,
|
||||
"read": true,
|
||||
"update": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"content": {
|
||||
"bsonType": "string",
|
||||
"description": "搜索内容"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "统计时间"
|
||||
},
|
||||
"device_id": {
|
||||
"bsonType": "string",
|
||||
"description": "设备id"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "收藏者id,参考uni-id-users表"
|
||||
}
|
||||
},
|
||||
"required": ["content"]
|
||||
}
|
||||
{"bsonType":"object","permission":{"create":true,"delete":false,"read":true,"update":false},"properties":{"_id":{"description":"ID,系统自动生成"},"content":{"bsonType":"string","description":"搜索内容"},"create_date":{"bsonType":"timestamp","description":"统计时间"},"device_id":{"bsonType":"string","description":"设备id"},"user_id":{"bsonType":"string","description":"收藏者id,参考uni-id-users表"}},"required":["content"]}
|
||||
@@ -1,63 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"task_id": {
|
||||
"bsonType": "string",
|
||||
"description": "任务ID",
|
||||
"foreignKey": "batch-sms-task._id"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "用户ID",
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"mobile": {
|
||||
"bsonType": "int",
|
||||
"description": "手机号"
|
||||
},
|
||||
"var_data": {
|
||||
"bsonType": "object",
|
||||
"description": "变量数据"
|
||||
},
|
||||
"status": {
|
||||
"bsonType": "int",
|
||||
"description": "发送状态",
|
||||
"defaultValue": 0,
|
||||
"enum": [{
|
||||
"text": "未发送",
|
||||
"value": 0
|
||||
}, {
|
||||
"text": "已发送",
|
||||
"value": 1
|
||||
}, {
|
||||
"text": "发送失败",
|
||||
"value": 2
|
||||
}]
|
||||
},
|
||||
"reason": {
|
||||
"bsonType": "string",
|
||||
"description": "发送失败原因"
|
||||
},
|
||||
"send_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "发送时间"
|
||||
},
|
||||
"ccreate_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"task_id":{"bsonType":"string","description":"任务ID","foreignKey":"batch-sms-task._id"},"uid":{"bsonType":"string","description":"用户ID","foreignKey":"uni-id-users._id"},"mobile":{"bsonType":"int","description":"手机号"},"var_data":{"bsonType":"object","description":"变量数据"},"status":{"bsonType":"int","description":"发送状态","defaultValue":0,"enum":[{"text":"未发送","value":0},{"text":"已发送","value":1},{"text":"发送失败","value":2}]},"reason":{"bsonType":"string","description":"发送失败原因"},"send_date":{"bsonType":"timestamp","description":"发送时间"},"ccreate_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}}}}
|
||||
@@ -1,81 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "任务名称",
|
||||
"trim": "both"
|
||||
},
|
||||
"app_id": {
|
||||
"bsonType": "string",
|
||||
"description": "App ID",
|
||||
"trim": "both"
|
||||
},
|
||||
"template_id": {
|
||||
"bsonType": "string",
|
||||
"description": "短信模板ID",
|
||||
"trim": "both"
|
||||
},
|
||||
"template_content": {
|
||||
"bsonType": "string",
|
||||
"description": "短信模板内容",
|
||||
"trim": "both"
|
||||
},
|
||||
"vars": {
|
||||
"bsonType": "array",
|
||||
"description": "短信变量"
|
||||
},
|
||||
"to": {
|
||||
"bsonType": "object",
|
||||
"description": "短信接收者信息",
|
||||
"properties": {
|
||||
"all": {
|
||||
"bsonType": "bool",
|
||||
"description": "全部用户发送;字段废弃,由 condition 替代"
|
||||
},
|
||||
"type": {
|
||||
"bsonType": "string",
|
||||
"description": "可选值 user | userTags"
|
||||
},
|
||||
"receiver": {
|
||||
"bsonType": "array",
|
||||
"description": "用户ID's / 用户标签ID's;指定id发送"
|
||||
},
|
||||
"condition": {
|
||||
"bsonType": "object",
|
||||
"description": "根据条件发送,例如给所有人发送"
|
||||
}
|
||||
}
|
||||
},
|
||||
"send_qty": {
|
||||
"bsonType": "int",
|
||||
"description": "发送总数"
|
||||
},
|
||||
"success_qty": {
|
||||
"bsonType": "int",
|
||||
"description": "成功总数"
|
||||
},
|
||||
"fail_qty": {
|
||||
"bsonType": "int",
|
||||
"description": "失败总数"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "0.0.1"
|
||||
}
|
||||
{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"name":{"bsonType":"string","description":"任务名称","trim":"both"},"app_id":{"bsonType":"string","description":"App ID","trim":"both"},"template_id":{"bsonType":"string","description":"短信模板ID","trim":"both"},"template_content":{"bsonType":"string","description":"短信模板内容","trim":"both"},"vars":{"bsonType":"array","description":"短信变量"},"to":{"bsonType":"object","description":"短信接收者信息","properties":{"all":{"bsonType":"bool","description":"全部用户发送;字段废弃,由 condition 替代"},"type":{"bsonType":"string","description":"可选值 user | userTags"},"receiver":{"bsonType":"array","description":"用户ID's \/ 用户标签ID's;指定id发送"},"condition":{"bsonType":"object","description":"根据条件发送,例如给所有人发送"}}},"send_qty":{"bsonType":"int","description":"发送总数"},"success_qty":{"bsonType":"int","description":"成功总数"},"fail_qty":{"bsonType":"int","description":"失败总数"},"create_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}}},"version":"0.0.1"}
|
||||
@@ -1,22 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["value", "expired"],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"value": {
|
||||
"description": "值"
|
||||
},
|
||||
"expired": {
|
||||
"description": "过期时间",
|
||||
"bsonType": "timestamp"
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["value","expired"],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"value":{"description":"值"},"expired":{"description":"过期时间","bsonType":"timestamp"}}}
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"name": "database",
|
||||
"dependencies": {
|
||||
"quill-delta-converter": "file:../../uni_modules/uni-cms-article/uniCloud/cloudfunctions/common/quill-delta-converter",
|
||||
"uni-sec-check": "file:../../uni_modules/uni-sec-check/uniCloud/cloudfunctions/common/uni-sec-check"
|
||||
"quill-delta-converter": "file:../../uni_modules/uni-cms-article/uniCloud/cloudfunctions/common/quill-delta-converter"
|
||||
},
|
||||
"extensions": {}
|
||||
}
|
||||
@@ -1,44 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["user_id", "score", "balance"],
|
||||
"permission": {
|
||||
"read": "doc.user_id == auth.uid",
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "用户id,参考uni-id-users表"
|
||||
},
|
||||
"score": {
|
||||
"bsonType": "int",
|
||||
"description": "本次变化的积分"
|
||||
},
|
||||
"type": {
|
||||
"bsonType": "int",
|
||||
"enum": [1, 2],
|
||||
"description": "积分类型 1:收入 2:支出"
|
||||
},
|
||||
"balance": {
|
||||
"bsonType": "int",
|
||||
"description": "变化后的积分余额"
|
||||
},
|
||||
"comment": {
|
||||
"bsonType": "string",
|
||||
"description": "备注,说明积分新增、消费的缘由",
|
||||
"trim": "both"
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["user_id","score","balance"],"permission":{"read":"doc.user_id == auth.uid","create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"user_id":{"bsonType":"string","description":"用户id,参考uni-id-users表"},"score":{"bsonType":"int","description":"本次变化的积分"},"type":{"bsonType":"int","enum":[1,2],"description":"积分类型 1:收入 2:支出"},"balance":{"bsonType":"int","description":"变化后的积分余额"},"comment":{"bsonType":"string","description":"备注,说明积分新增、消费的缘由","trim":"both"},"create_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}}}}
|
||||
@@ -1,52 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["tagid", "name"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "'CREATE_UNI_ID_TAG' in auth.permission",
|
||||
"update": "'UPDATE_UNI_ID_TAG' in auth.permission",
|
||||
"delete": "'DELETE_UNI_ID_TAG' in auth.permission"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"tagid": {
|
||||
"bsonType": "string",
|
||||
"description": "标签tagid",
|
||||
"label": "标签tagid",
|
||||
"componentForEdit": {
|
||||
"name": "uni-easyinput"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "标签名称",
|
||||
"label": "标签名称",
|
||||
"componentForEdit": {
|
||||
"name": "uni-easyinput"
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"bsonType": "string",
|
||||
"description": "标签描述",
|
||||
"label": "标签描述",
|
||||
"componentForEdit": {
|
||||
"name": "textarea"
|
||||
},
|
||||
"componentForShow": {
|
||||
"name": "textarea"
|
||||
}
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"label": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
},
|
||||
"componentForEdit": {
|
||||
"name": "uni-dateformat"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","required":["tagid","name"],"permission":{"read":true,"create":"'CREATE_UNI_ID_TAG' in auth.permission","update":"'UPDATE_UNI_ID_TAG' in auth.permission","delete":"'DELETE_UNI_ID_TAG' in auth.permission"},"properties":{"_id":{"description":"ID,系统自动生成"},"tagid":{"bsonType":"string","description":"标签tagid","label":"标签tagid","componentForEdit":{"name":"uni-easyinput"}},"name":{"bsonType":"string","description":"标签名称","label":"标签名称","componentForEdit":{"name":"uni-easyinput"}},"description":{"bsonType":"string","description":"标签描述","label":"标签描述","componentForEdit":{"name":"textarea"},"componentForShow":{"name":"textarea"}},"create_date":{"bsonType":"timestamp","label":"创建时间","forceDefaultValue":{"$env":"now"},"componentForEdit":{"name":"uni-dateformat"}}}}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,38 +1 @@
|
||||
{
|
||||
"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": "应用平台,对应uni-stat-app-platforms._id",
|
||||
"foreignKey": "uni-stat-app-platforms._id"
|
||||
},
|
||||
"version": {
|
||||
"bsonType": "string",
|
||||
"description": "应用版本"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
},
|
||||
"last_modify_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "最后修改时间"
|
||||
}
|
||||
}
|
||||
}
|
||||
{"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":"应用平台,对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"version":{"bsonType":"string","description":"应用版本"},"create_time":{"bsonType":"timestamp","description":"创建时间"},"last_modify_time":{"bsonType":"timestamp","description":"最后修改时间"}}}
|
||||
@@ -1,61 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"description": "存储sourceMap文件资源地址",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": "'READ_UNI_STAT_ERROR_RESULT' in auth.permission",
|
||||
"create": "'READ_UNI_STAT_ERROR_RESULT' in auth.permission",
|
||||
"update": "'READ_UNI_STAT_ERROR_RESULT' in auth.permission",
|
||||
"delete": "'READ_UNI_STAT_ERROR_RESULT' in auth.permission"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"appid": {
|
||||
"bsonType": "string",
|
||||
"description": "应用ID"
|
||||
},
|
||||
"uni_platform": {
|
||||
"title": "应用平台",
|
||||
"bsonType": "string",
|
||||
"description": "uni客户端平台,如:web、mp-weixin、mp-alipay、app等",
|
||||
"trim": "both"
|
||||
},
|
||||
"version": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的应用版本号"
|
||||
},
|
||||
"file_id": {
|
||||
"bsonType": "string",
|
||||
"description": "fileID"
|
||||
},
|
||||
"url": {
|
||||
"bsonType": "string",
|
||||
"description": "文件外网url路径"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "文件名"
|
||||
},
|
||||
"size": {
|
||||
"bsonType": "int",
|
||||
"description": "文件大小"
|
||||
},
|
||||
"cloud_path": {
|
||||
"bsonType": "string",
|
||||
"description": "云端路径,通过该值识别是否是同一个文件"
|
||||
},
|
||||
"base": {
|
||||
"bsonType": "string",
|
||||
"description": "基础路径"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "上传时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","description":"存储sourceMap文件资源地址","required":[],"permission":{"read":"'READ_UNI_STAT_ERROR_RESULT' in auth.permission","create":"'READ_UNI_STAT_ERROR_RESULT' in auth.permission","update":"'READ_UNI_STAT_ERROR_RESULT' in auth.permission","delete":"'READ_UNI_STAT_ERROR_RESULT' in auth.permission"},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"uni_platform":{"title":"应用平台","bsonType":"string","description":"uni客户端平台,如:web、mp-weixin、mp-alipay、app等","trim":"both"},"version":{"bsonType":"string","description":"客户端上报的应用版本号"},"file_id":{"bsonType":"string","description":"fileID"},"url":{"bsonType":"string","description":"文件外网url路径"},"name":{"bsonType":"string","description":"文件名"},"size":{"bsonType":"int","description":"文件大小"},"cloud_path":{"bsonType":"string","description":"云端路径,通过该值识别是否是同一个文件"},"base":{"bsonType":"string","description":"基础路径"},"create_time":{"bsonType":"timestamp","description":"上传时间","forceDefaultValue":{"$env":"now"}}}}
|
||||
@@ -1,169 +1 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"description": "存储统计汇总的支付数据",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": "'READ_UNI_STAT_PAY' in auth.permission",
|
||||
"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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"pay_total_amount": {
|
||||
"bsonType": "int",
|
||||
"description": "支付金额:统计时间内,成功支付的订单金额之和(不剔除退款订单)。单位分。"
|
||||
},
|
||||
"pay_order_count": {
|
||||
"bsonType": "int",
|
||||
"description": "支付笔数:统计时间内,成功支付的订单数,一个订单对应唯一一个订单号。(不剔除退款订单。)"
|
||||
},
|
||||
"pay_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "支付人数:统计时间内,成功支付的人数(不剔除退款订单)。"
|
||||
},
|
||||
"pay_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "支付设备数:统计时间内,成功支付的设备数(不剔除退款订单)。"
|
||||
},
|
||||
"create_total_amount": {
|
||||
"bsonType": "int",
|
||||
"description": "下单金额:统计时间内,成功下单的订单金额(不剔除退款订单)。单位分。"
|
||||
},
|
||||
"create_order_count": {
|
||||
"bsonType": "int",
|
||||
"description": "下单笔数:统计时间内,成功下单的订单笔数(不剔除退款订单)。"
|
||||
},
|
||||
"create_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "下单人数:统计时间内,成功下单的客户数,一人多次下单记为一人(不剔除退款订单)。"
|
||||
},
|
||||
"create_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "下单设备数:统计时间内,成功下单的设备数,一台设备多次访问被计为一台(不剔除退款订单)。"
|
||||
},
|
||||
"refund_total_amount": {
|
||||
"bsonType": "int",
|
||||
"description": "成功退款金额:统计时间内,成功退款的金额。以成功退款时间点为准。单位分。"
|
||||
},
|
||||
"refund_order_count": {
|
||||
"bsonType": "int",
|
||||
"description": "成功退款订单数:统计时间内,成功退款的订单数。以成功退款时间点为准。"
|
||||
},
|
||||
"refund_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "成功退款人数:统计时间内,成功退款的人数(不剔除退款订单)。"
|
||||
},
|
||||
"refund_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "成功退款设备数:统计时间内,成功退款的设备数(不剔除退款订单)。"
|
||||
},
|
||||
"activity_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "访问人数:统计时间内,访问人数,一人多次访问被计为一人(只统计已登录的用户)。"
|
||||
},
|
||||
"activity_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "访问设备数:统计时间内,访问设备数,一台设备多次访问被计为一台(包含未登录的用户)。"
|
||||
},
|
||||
"new_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "新增注册人数:统计时间内,注册人数。"
|
||||
},
|
||||
"new_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "新增新设备数:统计时间内,新设备数。"
|
||||
},
|
||||
"new_user_create_order_count": {
|
||||
"bsonType": "int",
|
||||
"description": "新用户下单人数:统计时间内,新增注册人数中下单的人数。"
|
||||
},
|
||||
"new_user_pay_order_count": {
|
||||
"bsonType": "int",
|
||||
"description": "新用户支付人数:统计时间内,新增注册人数中下成功支付的人数。"
|
||||
},
|
||||
"dimension": {
|
||||
"bsonType": "string",
|
||||
"description": "统计范围 hour:按小时统计,day:按天统计,week:按周统计,month:按月统计 quarter:按季度统计 year:按年统计",
|
||||
"enum": [{
|
||||
"text": "年",
|
||||
"value": "year"
|
||||
}, {
|
||||
"text": "季度",
|
||||
"value": "quarter"
|
||||
}, {
|
||||
"text": "月",
|
||||
"value": "month"
|
||||
}, {
|
||||
"text": "周",
|
||||
"value": "week"
|
||||
}, {
|
||||
"text": "天",
|
||||
"value": "day"
|
||||
}, {
|
||||
"text": "小时",
|
||||
"value": "hour"
|
||||
}]
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
},
|
||||
"start_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "统计开始时间"
|
||||
},
|
||||
"end_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "统计结束时间"
|
||||
},
|
||||
"stat_date": {
|
||||
"bsonType": "object",
|
||||
"description": "统计日期参数",
|
||||
"properties": {
|
||||
"date_str": {
|
||||
"bsonType": "string",
|
||||
"description": "如:2021-07-27"
|
||||
},
|
||||
"year": {
|
||||
"bsonType": "int",
|
||||
"description": "年"
|
||||
},
|
||||
"month": {
|
||||
"bsonType": "int",
|
||||
"description": "月"
|
||||
},
|
||||
"day": {
|
||||
"bsonType": "int",
|
||||
"description": "日"
|
||||
},
|
||||
"hour": {
|
||||
"bsonType": "int",
|
||||
"description": "时"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{"bsonType":"object","description":"存储统计汇总的支付数据","required":[],"permission":{"read":"'READ_UNI_STAT_PAY' in auth.permission","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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"pay_total_amount":{"bsonType":"int","description":"支付金额:统计时间内,成功支付的订单金额之和(不剔除退款订单)。单位分。"},"pay_order_count":{"bsonType":"int","description":"支付笔数:统计时间内,成功支付的订单数,一个订单对应唯一一个订单号。(不剔除退款订单。)"},"pay_user_count":{"bsonType":"int","description":"支付人数:统计时间内,成功支付的人数(不剔除退款订单)。"},"pay_device_count":{"bsonType":"int","description":"支付设备数:统计时间内,成功支付的设备数(不剔除退款订单)。"},"create_total_amount":{"bsonType":"int","description":"下单金额:统计时间内,成功下单的订单金额(不剔除退款订单)。单位分。"},"create_order_count":{"bsonType":"int","description":"下单笔数:统计时间内,成功下单的订单笔数(不剔除退款订单)。"},"create_user_count":{"bsonType":"int","description":"下单人数:统计时间内,成功下单的客户数,一人多次下单记为一人(不剔除退款订单)。"},"create_device_count":{"bsonType":"int","description":"下单设备数:统计时间内,成功下单的设备数,一台设备多次访问被计为一台(不剔除退款订单)。"},"refund_total_amount":{"bsonType":"int","description":"成功退款金额:统计时间内,成功退款的金额。以成功退款时间点为准。单位分。"},"refund_order_count":{"bsonType":"int","description":"成功退款订单数:统计时间内,成功退款的订单数。以成功退款时间点为准。"},"refund_user_count":{"bsonType":"int","description":"成功退款人数:统计时间内,成功退款的人数(不剔除退款订单)。"},"refund_device_count":{"bsonType":"int","description":"成功退款设备数:统计时间内,成功退款的设备数(不剔除退款订单)。"},"activity_user_count":{"bsonType":"int","description":"访问人数:统计时间内,访问人数,一人多次访问被计为一人(只统计已登录的用户)。"},"activity_device_count":{"bsonType":"int","description":"访问设备数:统计时间内,访问设备数,一台设备多次访问被计为一台(包含未登录的用户)。"},"new_user_count":{"bsonType":"int","description":"新增注册人数:统计时间内,注册人数。"},"new_device_count":{"bsonType":"int","description":"新增新设备数:统计时间内,新设备数。"},"new_user_create_order_count":{"bsonType":"int","description":"新用户下单人数:统计时间内,新增注册人数中下单的人数。"},"new_user_pay_order_count":{"bsonType":"int","description":"新用户支付人数:统计时间内,新增注册人数中下成功支付的人数。"},"dimension":{"bsonType":"string","description":"统计范围 hour:按小时统计,day:按天统计,week:按周统计,month:按月统计 quarter:按季度统计 year:按年统计","enum":[{"text":"年","value":"year"},{"text":"季度","value":"quarter"},{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"create_date":{"bsonType":"timestamp","description":"创建时间"},"start_time":{"bsonType":"timestamp","description":"统计开始时间"},"end_time":{"bsonType":"timestamp","description":"统计结束时间"},"stat_date":{"bsonType":"object","description":"统计日期参数","properties":{"date_str":{"bsonType":"string","description":"如:2021-07-27"},"year":{"bsonType":"int","description":"年"},"month":{"bsonType":"int","description":"月"},"day":{"bsonType":"int","description":"日"},"hour":{"bsonType":"int","description":"时"}}}}}
|
||||
Reference in New Issue
Block a user