20261008
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 本文件用于,使用JQL语法操作项目关联的uniCloud空间的数据库,方便开发调试和远程数据库管理
|
||||
// 编写clientDB的js API(也支持常规js语法,比如var),可以对云数据库进行增删改查操作。不支持uniCloud-db组件写法
|
||||
// 可以全部运行,也可以选中部分代码运行。点击工具栏上的运行按钮或者按下【F5】键运行代码
|
||||
// 如果文档中存在多条JQL语句,只有最后一条语句生效
|
||||
// 如果混写了普通js,最后一条语句需是数据库操作语句
|
||||
// 此处代码运行不受DB Schema的权限控制,移植代码到实际业务中注意在schema中配好permission
|
||||
// 不支持clientDB的action
|
||||
// 数据库查询有最大返回条数限制,详见:https://uniapp.dcloud.net.cn/uniCloud/cf-database.html#limit
|
||||
// 详细JQL语法,请参考:https://uniapp.dcloud.net.cn/uniCloud/jql.html
|
||||
|
||||
// 下面示例查询uni-id-users表的所有数据
|
||||
db.collection('jjx-enquiry-quote').update({status: 0});
|
||||
@@ -0,0 +1,961 @@
|
||||
// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init
|
||||
|
||||
// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据
|
||||
|
||||
{
|
||||
"vk-test": {
|
||||
"data": [
|
||||
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "location",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "location","Direction": "2dsphere"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uni-id-users": {
|
||||
"data": [
|
||||
{
|
||||
"_id":"001",
|
||||
"username": "admin",
|
||||
"password": "03caebb36670995fc261a275d212cad65e4bbebd",
|
||||
"register_date": 1596416400000,
|
||||
"register_ip": "127.0.0.1",
|
||||
"nickname": "超级管理员",
|
||||
"role":["admin"],
|
||||
"token": [],
|
||||
"allow_login_background":true
|
||||
}
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "username",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "username","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "mobile",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "mobile","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "email",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "email","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "wx_openid.app-plus",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "wx_openid.app-plus","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "wx_openid.mp-weixin",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "wx_openid.mp-weixin","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "wx_unionid",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "wx_unionid","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "ali_openid",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "ali_openid","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "my_invite_code",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "my_invite_code","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "inviter_uid",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "inviter_uid","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "invite_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "invite_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "role",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "role","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "register_date",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "register_date","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-verify-codes": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "mobile",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "mobile",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "code",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"IndexName": "email",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "email",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "code",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"IndexName": "type",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "type","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "state",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "state","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-tempdata": {
|
||||
"data": [
|
||||
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "expired",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "expired","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-open-data": {
|
||||
"data": [
|
||||
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "expired",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "expired","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uni-id-log":{
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "user_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uni-id-roles":{
|
||||
"data": [
|
||||
{
|
||||
"_id": "001",
|
||||
"_add_time": 1596416400000,
|
||||
"enable":true,
|
||||
"role_id":"admin",
|
||||
"role_name": "超级管理员",
|
||||
"comment":"系统内置角色 - 请勿修改",
|
||||
"permission": []
|
||||
},
|
||||
{
|
||||
"_id": "005",
|
||||
"_add_time": 1596416400000,
|
||||
"enable":true,
|
||||
"role_id":"query-all",
|
||||
"role_name": "boss",
|
||||
"comment":"系统内置角色 - 请勿修改",
|
||||
"permission": []
|
||||
},
|
||||
{
|
||||
"_id": "006",
|
||||
"_add_time": 1596416400000,
|
||||
"enable":true,
|
||||
"role_id":"custom-role-1",
|
||||
"role_name": "自定义角色-1",
|
||||
"comment":"更细粒化的自定义角色权限示例",
|
||||
"permission": []
|
||||
}
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "role_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "role_id","Direction": "1"}],"MgoIsUnique": true}
|
||||
},
|
||||
{
|
||||
"IndexName": "permission",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "permission","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "role_name",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "role_name","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uni-id-permissions":{
|
||||
"data": [
|
||||
{
|
||||
"_id": "sys-permission",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-permission",
|
||||
"permission_name": "系统内置权限",
|
||||
"comment":"系统内置权限",
|
||||
"url": "",
|
||||
"sort": 103,
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-permission-add",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-permission-add",
|
||||
"permission_name": "系统内置 - 增",
|
||||
"comment":"所有函数名以add开头的云函数",
|
||||
"url": ["*/add*"],
|
||||
"icon":"vk-icon-add",
|
||||
"sort": 1,
|
||||
"parent_id":"sys-permission",
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"curd_category":1,
|
||||
"level":3
|
||||
},
|
||||
{
|
||||
"_id": "sys-permission-delete",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-permission-delete",
|
||||
"permission_name": "系统内置 - 删",
|
||||
"comment":"所有函数名以delete开头的云函数",
|
||||
"url": ["*/delete*"],
|
||||
"icon":"vk-icon-delete",
|
||||
"sort": 2,
|
||||
"parent_id":"sys-permission",
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"curd_category":2,
|
||||
"level":4
|
||||
},
|
||||
{
|
||||
"_id": "sys-permission-update",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-permission-update",
|
||||
"permission_name": "系统内置 - 改",
|
||||
"comment":"所有函数名以update开头的云函数",
|
||||
"url": ["*/update*"],
|
||||
"icon":"el-icon-edit",
|
||||
"sort": 3,
|
||||
"parent_id":"sys-permission",
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"curd_category":3,
|
||||
"level":3
|
||||
},
|
||||
{
|
||||
"_id": "sys-permission-read",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-permission-read",
|
||||
"permission_name": "系统内置 - 查",
|
||||
"comment":"包含所有的查询操作",
|
||||
"url": ["*/get*","*/find*","*/select*"],
|
||||
"icon":"vk-icon-text",
|
||||
"sort": 4,
|
||||
"parent_id":"sys-permission",
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"curd_category":4,
|
||||
"level":3
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-manage",
|
||||
"permission_name": "用户角色权限菜单",
|
||||
"comment":"",
|
||||
"sort": 101,
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage-user",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-manage-user",
|
||||
"permission_name": "系统 - 用户管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system/user/sys/*"],
|
||||
"sort": 1,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"sys-manage"
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage-role",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-manage-role",
|
||||
"permission_name": "系统 - 角色管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system/role/sys/*"],
|
||||
"sort": 2,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"sys-manage"
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage-permission",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-manage-permission",
|
||||
"permission_name": "系统 - 权限管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system/permission/sys/*"],
|
||||
"sort": 3,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"sys-manage"
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage-menu",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-manage-menu",
|
||||
"permission_name": "系统 - 菜单管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system/menu/sys/*"],
|
||||
"sort": 4,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"sys-manage"
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage-app",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"sys-manage-app",
|
||||
"permission_name": "系统 - 应用管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system/app/sys/*"],
|
||||
"sort": 5,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"sys-manage"
|
||||
},
|
||||
{
|
||||
"_id": "sys-manage-app-upgrade-center",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id": "sys-manage-app-upgrade-center",
|
||||
"permission_name": "系统 - App升级中心",
|
||||
"comment":"",
|
||||
"url": ["admin/system/app-upgrade-center/sys/*"],
|
||||
"sort": 6,
|
||||
"enable": true,
|
||||
"match_mode": 1,
|
||||
"parent_id": "sys-manage"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"system-uni",
|
||||
"permission_name": "系统设置",
|
||||
"comment":"",
|
||||
"sort": 102,
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-uni-id-files",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"system-uni-uni-id-files",
|
||||
"permission_name": "系统 - 素材管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system_uni/uni-id-files/*"],
|
||||
"sort": 1,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-vk-global-data",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"system-uni-vk-global-data",
|
||||
"permission_name": "系统 - 缓存管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system_uni/global-data/sys/*"],
|
||||
"sort": 2,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-vk-components-dynamic",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"system-uni-vk-components-dynamic",
|
||||
"permission_name": "系统 - 动态组件数据管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system_uni/components-dynamic/sys/*"],
|
||||
"sort": 3,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-uni-id-log",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"system-uni-uni-id-log",
|
||||
"permission_name": "系统 - 用户登录日志管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system_uni/uni-id-log/sys/*"],
|
||||
"sort": 4,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-opendb-admin-log",
|
||||
"_add_time": 1596416400000,
|
||||
"permission_id":"system-uni-opendb-admin-log",
|
||||
"permission_name": "系统 - 操作日志管理",
|
||||
"comment":"",
|
||||
"url": ["admin/system_uni/admin-log/sys/*"],
|
||||
"sort": 5,
|
||||
"enable":true,
|
||||
"match_mode":1,
|
||||
"parent_id":"system-uni"
|
||||
}
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "permission_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "permission_id","Direction": "1"}],"MgoIsUnique": true}
|
||||
},
|
||||
{
|
||||
"IndexName": "parent_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "parent_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "url",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "url","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "sort",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "sort","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-admin-menus":{
|
||||
"data": [
|
||||
{
|
||||
"_id": "sys-admin",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-admin",
|
||||
"name": "用户角色权限",
|
||||
"icon":"el-icon-s-tools",
|
||||
"url": "",
|
||||
"comment":"系统内置",
|
||||
"sort": 100,
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-user-manage",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-user-manage",
|
||||
"name": "用户管理",
|
||||
"icon":"el-icon-s-custom",
|
||||
"url": "/pages_plugs/system/user/list",
|
||||
"comment":"1个角色可以分配多个角色",
|
||||
"sort": 1,
|
||||
"parent_id":"sys-admin",
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-role-manage",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-role-manage",
|
||||
"name": "角色管理",
|
||||
"icon":"el-icon-user",
|
||||
"url": "/pages_plugs/system/role/list",
|
||||
"comment":"1个角色可以分配多个权限和菜单",
|
||||
"sort": 2,
|
||||
"parent_id":"sys-admin",
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-permission-manage",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-permission-manage",
|
||||
"name": "权限管理",
|
||||
"icon":"vk-icon-lock",
|
||||
"url": "/pages_plugs/system/permission/list",
|
||||
"comment":"1个权限可以匹配多个云函数",
|
||||
"sort": 3,
|
||||
"parent_id":"sys-admin",
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-menus-manage",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-menus-manage",
|
||||
"name": "菜单管理",
|
||||
"icon":"el-icon-tickets",
|
||||
"url": "/pages_plugs/system/menu/list",
|
||||
"comment":"控制admin左侧菜单的显示和隐藏",
|
||||
"sort": 4,
|
||||
"parent_id":"sys-admin",
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-app-manage",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-app-manage",
|
||||
"name": "应用管理",
|
||||
"icon":"el-icon-cloudy",
|
||||
"url": "/pages_plugs/system/app/list",
|
||||
"comment":"应用管理",
|
||||
"sort": 5,
|
||||
"parent_id":"sys-admin",
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "sys-app-upgrade-center",
|
||||
"_add_time": 1596416400000,
|
||||
"menu_id":"sys-app-upgrade-center",
|
||||
"name": "App升级中心",
|
||||
"icon":"vk-icon-shengji3-xianxing",
|
||||
"url": "/pages_plugs/system/app-upgrade-center/list",
|
||||
"comment":"管理和发布新的app版本",
|
||||
"sort": 6,
|
||||
"parent_id":"sys-admin",
|
||||
"enable":true
|
||||
},
|
||||
{
|
||||
"_id": "system-uni",
|
||||
"_add_time": 1596416400000,
|
||||
"enable": true,
|
||||
"icon": "el-icon-s-tools",
|
||||
"menu_id": "system-uni",
|
||||
"name": "系统设置",
|
||||
"sort": 110
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-uni-id-files",
|
||||
"sort": 1,
|
||||
"url": "/pages_plugs/system_uni/uni-id-files/list",
|
||||
"_add_time": 1596416400000,
|
||||
"enable": true,
|
||||
"icon": "el-icon-folder-opened",
|
||||
"menu_id": "system-uni-uni-id-files",
|
||||
"name": "素材管理",
|
||||
"parent_id": "system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-vk-global-data",
|
||||
"enable": true,
|
||||
"icon": "",
|
||||
"menu_id": "system-uni-vk-global-data",
|
||||
"name": "系统缓存管理",
|
||||
"parent_id": "system-uni",
|
||||
"sort": 2,
|
||||
"url": "/pages_plugs/system_uni/vk-global-data",
|
||||
"_add_time": 1596416400000
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-vk-components-dynamic",
|
||||
"sort": 3,
|
||||
"url": "/pages_plugs/system_uni/vk-components-dynamic",
|
||||
"_add_time": 1596416400000,
|
||||
"enable": true,
|
||||
"icon": "",
|
||||
"menu_id": "system-uni-vk-components-dynamic",
|
||||
"name": "动态组件数据",
|
||||
"parent_id": "system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-vk-pay-orders",
|
||||
"sort": 4,
|
||||
"url": "/pages_plugs/system_uni/vk-pay-orders",
|
||||
"_add_time": 1596416400000,
|
||||
"enable": true,
|
||||
"icon": "",
|
||||
"menu_id": "system-uni-vk-pay-orders",
|
||||
"name": "支付订单明细",
|
||||
"parent_id": "system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-uni-id-log",
|
||||
"sort": 8,
|
||||
"url": "/pages_plugs/system_uni/uni-id-log",
|
||||
"_add_time": 1596416400000,
|
||||
"enable": true,
|
||||
"icon": "",
|
||||
"menu_id": "system-uni-uni-id-log",
|
||||
"name": "用户登录日志",
|
||||
"parent_id": "system-uni"
|
||||
},
|
||||
{
|
||||
"_id": "system-uni-opendb-admin-log",
|
||||
"sort": 9,
|
||||
"url": "/pages_plugs/system_uni/opendb-admin-log",
|
||||
"_add_time": 1596416400000,
|
||||
"enable": true,
|
||||
"icon": "",
|
||||
"menu_id": "system-uni-opendb-admin-log",
|
||||
"name": "系统操作日志",
|
||||
"parent_id": "system-uni"
|
||||
}
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "menu_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "menu_id","Direction": "1"}],"MgoIsUnique": true}
|
||||
},
|
||||
{
|
||||
"IndexName": "parent_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "parent_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "url",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "url","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "sort",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "sort","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-app-list": {
|
||||
"data": [
|
||||
{
|
||||
"_id":"001",
|
||||
"appid": "__UNI__01F080F",
|
||||
"type": "client",
|
||||
"name": "用户端",
|
||||
"description": "此为用户端应用",
|
||||
"create_date": 1596416400000,
|
||||
"_add_time": 1596416400000,
|
||||
"_add_time_str": "2020-08-03 09:00:00"
|
||||
},
|
||||
{
|
||||
"_id":"002",
|
||||
"appid": "__UNI__570A7FB",
|
||||
"type": "admin",
|
||||
"name": "管理端",
|
||||
"description": "此为管理端应用",
|
||||
"create_date": 1596416400000,
|
||||
"_add_time": 1596416400000,
|
||||
"_add_time_str": "2020-08-03 09:00:00"
|
||||
}
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "appid",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "appid","Direction": "1"}],"MgoIsUnique": true}
|
||||
},
|
||||
{
|
||||
"IndexName": "name",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "name","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "type",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "type","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "create_date",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "create_date","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "enable_upgrade_center",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "enable_upgrade_center", "Direction": "1" }], "MgoIsUnique": false }
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-app-versions": {
|
||||
"data": [],
|
||||
"index": [{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "_add_time", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "appid",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "appid", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "name",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "name", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "platform",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "platform", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "type",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "type", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "uni_platform",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "uni_platform", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "create_env",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "create_env", "Direction": "1" }], "MgoIsUnique": false }
|
||||
},
|
||||
{
|
||||
"IndexName": "stable_publish",
|
||||
"MgoKeySchema": { "MgoIndexKeys": [{ "Name": "stable_publish", "Direction": "1" }], "MgoIsUnique": false }
|
||||
}
|
||||
]
|
||||
},
|
||||
"opendb-admin-log":{
|
||||
"data": [
|
||||
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "user_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "title",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "title","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"vk-components-dynamic":{
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "data_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "data_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "title",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "title","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "type",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "type","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "sort",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "sort","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "show",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "show","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "name",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "name","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"vk-global-data":{
|
||||
"data":[
|
||||
|
||||
],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "key",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "key","Direction": "1"}],"MgoIsUnique": true}
|
||||
},
|
||||
{
|
||||
"IndexName": "expired_at",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "expired_at","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"vk-files": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "user_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "sort",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "sort","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "status",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "status","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "type",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "type","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "display_name",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "display_name","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "url",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "url","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"vk-files-categories": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "name",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "name","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "sort",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "sort","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"vk-pay-orders": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "out_trade_no",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "out_trade_no","Direction": "1"}],"MgoIsUnique": true}
|
||||
},
|
||||
{
|
||||
"IndexName": "user_order_success",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_order_success","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "transaction_id",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "transaction_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "total_fee",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "total_fee","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "pid",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "pid","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"vk-pay-config": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"jjx-spot-category": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "parentId",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "parent_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "level",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "level","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"jjx-spot-goods": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "userId",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"jjx-spot-cooperate": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "userId",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"jjx-enquiry-sheet": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "userId",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
},
|
||||
"jjx-enquiry-quote": {
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"IndexName": "_add_time",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
|
||||
},
|
||||
{
|
||||
"IndexName": "userId",
|
||||
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "user_id","Direction": "1"}],"MgoIsUnique": false}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"}}}
|
||||
@@ -0,0 +1,24 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"status": {
|
||||
"bsonType": "int",
|
||||
"description": "状态 0待创建 1待签署 2已签署 -1已作废"
|
||||
},
|
||||
"partyList": {
|
||||
"bsonType": "array",
|
||||
"description": "当事人"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"status": {
|
||||
"bsonType": "int",
|
||||
"description": "状态 0默认 1已被选择"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":["user_id","content"],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"user_id":{"bsonType":"string","description":"用户id,参考uni-id-users表"},"user_name":{"bsonType":"string","description":"用户名或昵称,冗余设计","title":"用户"},"content":{"bsonType":"string","description":"日志内容,如:修改密码","title":"内容"},"ip":{"bsonType":"string","description":"ip地址","title":"IP","forceDefaultValue":{"$env":"clientIP"}},"create_date":{"bsonType":"timestamp","description":"创建时间","title":"时间","forceDefaultValue":{"$env":"now"}}},"version":"0.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":["name","menu_id"],"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"},"comment":{"bsonType":"string","description":"备注,菜单说明"},"sort":{"bsonType":"int","description":"菜单序号(越大越靠后)"},"parent_id":{"bsonType":"string","description":"父级菜单Id"},"permission":{"bsonType":"array","description":"菜单权限列表"},"enable":{"bsonType":"bool","description":"是否启用菜单,true启用、false禁用"},"create_date":{"bsonType":"timestamp","description":"菜单创建时间","forceDefaultValue":{"$env":"now"}}},"version":"0.0.1"}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":["appid","uni_platform","version","type","create_env"],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"记录id,自动生成"},"appid":{"bsonType":"string","trim":"both","description":"应用的AppID","label":"AppID","componentForEdit":{"name":"uni-easyinput","props":{"disabled":true}}},"name":{"bsonType":"string","trim":"both","description":"应用名称","label":"应用名称","componentForEdit":{"name":"uni-easyinput","props":{"disabled":true}}},"title":{"bsonType":"string","description":"更新标题","label":"更新标题"},"contents":{"bsonType":"string","description":"更新内容","label":"更新内容","componentForEdit":{"name":"textarea"},"componentForShow":{"name":"textarea","props":{"disabled":true}}},"platform":{"bsonType":"array","enum":[{"value":"Android","text":"安卓"},{"value":"iOS","text":"苹果"}],"description":"更新平台,Android || iOS || [Android, iOS]","label":"平台"},"type":{"bsonType":"string","enum":[{"value":"native_app","text":"原生App安装包"},{"value":"wgt","text":"Wgt资源包"}],"description":"安装包类型,native_app || wgt","label":"安装包类型"},"uni_platform":{"bsonType":"string","description":"uni平台信息,如:mp-weixin\/web\/ios\/android","label":"uni 平台"},"version":{"bsonType":"string","description":"当前包版本号,必须大于当前线上发行版本号","label":"版本号"},"min_uni_version":{"bsonType":"string","description":"原生App最低版本","label":"原生App最低版本"},"url":{"bsonType":"string","description":"可下载或跳转的链接","label":"链接"},"stable_publish":{"bsonType":"bool","description":"是否上线发行","label":"上线发行"},"is_silently":{"bsonType":"bool","description":"是否静默更新","label":"静默更新","defaultValue":false},"is_mandatory":{"bsonType":"bool","description":"是否强制更新","label":"强制更新","defaultValue":false},"create_date":{"bsonType":"timestamp","label":"上传时间","forceDefaultValue":{"$env":"now"},"componentForEdit":{"name":"uni-dateformat"}},"create_env":{"bsonType":"string","description":"创建来源,uni-stat:uni统计自动创建,upgrade-center:升级中心管理员创建"},"store_list":{"bsonType":"array","description":"发布的应用市场","label":"应用市场","properties":{"id":{"bsonType":"string","description":"应用id,自动生成","label":"id"},"name":{"bsonType":"string","description":"应用名称","label":"应用名称"},"scheme":{"bsonType":"string","description":"应用 scheme","label":"应用 scheme"},"enable":{"bsonType":"bool","description":"是否启用"},"priority":{"bsonType":"int","description":"按照从大到小排序","label":"优先级"}}}},"version":"0.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":["_id","value"],"properties":{"_id":{"bsonType":"string","description":"key,格式:uni-id:[provider]:[appid]:[openid]:[access-token|user-access-token|session-key|encrypt-key-version|ticket]"},"value":{"bsonType":"object","description":"字段_id对应的值"},"expired":{"bsonType":"timestamp","description":"过期时间"}},"version":"0.0.1"}
|
||||
@@ -0,0 +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"}},"version":"0.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":[],"properties":{"_id":{"description":"ID,系统自动生成"},"mobile":{"bsonType":"string","description":"手机号码"},"email":{"bsonType":"string","description":"邮箱"},"device_uuid":{"bsonType":"string","description":"设备UUID,常用于图片验证码"},"code":{"bsonType":"string","description":"验证码"},"scene":{"bsonType":"string","description":"使用验证码的场景,如:login, bind, unbind, pay"},"state":{"bsonType":"int","description":"验证状态:0 未验证、1 已验证、2 已作废"},"ip":{"bsonType":"string","description":"请求时客户端IP地址"},"created_date":{"bsonType":"timestamp","description":"创建时间"},"expired_date":{"bsonType":"timestamp","description":"过期时间"}},"version":"0.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","properties":{"_id":{"description":"ID,系统自动生成"},"create_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}},"device_id":{"bsonType":"string","description":"设备唯一标识"},"ip":{"bsonType":"string","description":"ip地址"},"state":{"bsonType":"int","description":"结果:0 失败、1 成功"},"type":{"bsonType":"string","description":"操作类型","enum":["logout","login","register","reset-pwd","bind-mobile","bind-weixin","bind-qq","bind-apple","bind-alipay"]},"ua":{"bsonType":"string","description":"userAgent"},"user_id":{"bsonType":"string","foreignKey":"uni-id-users._id","description":"用户id,参考uni-id-users表"},"username":{"bsonType":"string","description":"用户名"},"email":{"bsonType":"string","description":"邮箱"},"mobile":{"bsonType":"string","description":"手机号"},"appid":{"bsonType":"string","description":"客户端DCloud AppId"}},"required":[],"version":"0.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":["permission_id","permission_name"],"properties":{"_id":{"description":"存储文档 ID,系统自动生成"},"permission_id":{"bsonType":"string","description":"权限唯一标识,不可修改,不允许重复","label":"权限标识","trim":"both","title":"权限ID","component":{"name":"input"}},"permission_name":{"bsonType":"string","description":"权限名称","label":"权限名称","title":"权限名称","trim":"both","component":{"name":"input"}},"comment":{"bsonType":"string","description":"备注","label":"备注","title":"备注","trim":"both","component":{"name":"textarea"}},"create_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}}},"version":"0.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
{"bsonType":"object","required":["role_id"],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"存储文档 ID,系统自动生成"},"role_id":{"title":"唯一ID","bsonType":"string","description":"角色唯一标识,不可修改,不允许重复","trim":"both"},"role_name":{"title":"名称","bsonType":"string","description":"角色名称","trim":"both"},"permission":{"title":"权限","bsonType":"array","foreignKey":"uni-id-permissions.permission_id","description":"角色拥有的权限列表"},"comment":{"title":"备注","bsonType":"string","description":"备注","trim":"both"},"create_date":{"bsonType":"timestamp","description":"创建时间","forceDefaultValue":{"$env":"now"}}},"version":"0.0.1"}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user