提交 e3f8e91b 编写于 作者: A Anne_LXM

调整db_init.json 按collection拆分

上级 a697b0bc
{
"name" : "hello uniCloud",
"appid" : "__UNI__8113B5C",
"appid" : "",
"description" : "为开发者提供的基于 serverless 模式和 js 编程的云开发平台。示例代码",
"versionName" : "1.0.2",
"versionCode" : 102,
"versionName" : "1.0.0",
"versionCode" : 100,
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,
......
[
{
"_id": "1",
"title": "西游记",
"author": "吴承恩"
},
{
"_id": "2",
"title": "水浒传",
"author": "施耐庵"
},
{
"_id": "3",
"title": "三国演义",
"author": "罗贯中"
},
{
"_id": "4",
"title": "红楼梦",
"author": "曹雪芹"
}
]
\ No newline at end of file
[
{
"IndexName": "parent_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "parent_id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
\ No newline at end of file
[
{
"menu_id": "system_management",
"name": "系统管理",
"icon": "uni-icons-gear",
"url": "",
"sort": 1000,
"parent_id": "",
"permission": [],
"enable": true,
"create_date": 1602662469396
},
{
"menu_id": "system_user",
"name": "用户管理",
"icon": "uni-icons-person",
"url": "/pages/system/user/list",
"sort": 1010,
"parent_id": "system_management",
"permission": [],
"enable": true,
"create_date": 1602662469398
},
{
"menu_id": "system_role",
"name": "角色管理",
"icon": "uni-icons-personadd",
"url": "/pages/system/role/list",
"sort": 1020,
"parent_id": "system_management",
"permission": [],
"enable": true,
"create_date": 1602662469397
},
{
"menu_id": "system_permission",
"name": "权限管理",
"icon": "uni-icons-locked",
"url": "/pages/system/permission/list",
"sort": 1030,
"parent_id": "system_management",
"permission": [],
"enable": true,
"create_date": 1602662469396
},
{
"menu_id": "system_menu",
"name": "菜单管理",
"icon": "uni-icons-settings",
"url": "/pages/system/menu/list",
"sort": 1040,
"parent_id": "system_management",
"permission": [],
"enable": true,
"create_date": 1602662469396
}
]
\ No newline at end of file
[
{
"IndexName": "appid",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "appid",
"Direction": "1"
}
],
"MgoIsUnique": true
}
},
{
"IndexName": "name",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "name",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
\ No newline at end of file
[
{
"IndexName": "appid",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "appid",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "查找上线发行应用",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "appid",
"Direction": "1"
},
{
"Name": "platform",
"Direction": "1"
},
{
"Name": "stable_publish",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
\ No newline at end of file
[
{
"_id": "5fe77207974b6900018c6c9c",
"name": "总部",
"parent_id": "",
"status": 0
},
{
"_id": "5fe77232974b6900018c6cb1",
"name": "一级部门A",
"parent_id": "5fe77207974b6900018c6c9c",
"status": 0
}
]
\ No newline at end of file
[
{
"view_count": 0,
"_id": "65365ac355b3379a66170144",
"data": "这是一个由clientDB实现的留言板示例;权限部分由DBschema和action云函数控制。\n规则如下:\n 1.未登陆的游客,只能看到审核通过的留言。\n 2.登陆的用户还可以:发表留言,会进入审核状态,期间支持查看和删除。审核通过后可以重新编辑留言。但在重新编辑后会自动再次进入审核状态。\n 3.审核员和管理员可以:查看所有状态的留言,操作:审核、编辑、删除。"
}
]
\ No newline at end of file
[
{
"book_id": "1",
"quantity": 111,
"create_date": 5
},
{
"book_id": "2",
"quantity": 222,
"create_date": 3
},
{
"book_id": "3",
"quantity": 333,
"create_date": 6
},
{
"book_id": "4",
"quantity": 444,
"create_date": 9
},
{
"book_id": "3",
"quantity": 555,
"create_date": 4
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"state": 0,
"text": "该用户比较懒啥也没写!"
}
]
\ No newline at end of file
[
{
"IndexName": "permission_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "permission_id",
"Direction": "1"
}
],
"MgoIsUnique": true
}
}
]
\ No newline at end of file
[
{
"permission_id": "P_TEST_ADD",
"permission_name": "增加permission-test表数据"
},
{
"permission_id": "P_TEST_UPDATE",
"permission_name": "修改permission-test表数据"
}
]
\ No newline at end of file
[
{
"IndexName": "role_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "role_id",
"Direction": "1"
}
],
"MgoIsUnique": true
}
},
{
"IndexName": "permission",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "permission",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
\ No newline at end of file
[
{
"role_id": "USER",
"role_name": "用户",
"permission": [
"P_TEST_ADD"
]
},
{
"role_id": "AUDITOR",
"role_name": "审核员",
"permission": [
"P_TEST_UPDATE"
]
}
]
\ No newline at end of file
[
{
"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
}
}
]
\ No newline at end of file
[
{
"username": "admin",
"nickname": "admin",
"password": "03caebb36670995fc261a275d212cad65e4bbebd",
"role": [
"admin"
]
},
{
"username": "user",
"nickname": "user",
"password": "03caebb36670995fc261a275d212cad65e4bbebd",
"role": [
"USER"
]
},
{
"username": "auditor",
"nickname": "auditor",
"password": "03caebb36670995fc261a275d212cad65e4bbebd",
"role": [
"AUDITOR"
]
}
]
\ No newline at end of file
[
{
"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
}
}
]
\ No newline at end of file
......@@ -6,12 +6,12 @@
"dependencies": {
"buffer-equal-constant-time": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"resolved": "https://registry.npmmirror.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
},
"ecdsa-sig-formatter": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"resolved": "https://registry.npmmirror.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
"requires": {
"safe-buffer": "^5.0.1"
......@@ -19,7 +19,7 @@
},
"jsonwebtoken": {
"version": "8.5.1",
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
"resolved": "https://registry.npmmirror.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
"integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
"requires": {
"jws": "^3.2.2",
......@@ -36,7 +36,7 @@
},
"jwa": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
"resolved": "https://registry.npmmirror.com/jwa/-/jwa-1.4.1.tgz",
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
"requires": {
"buffer-equal-constant-time": "1.0.1",
......@@ -46,7 +46,7 @@
},
"jws": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
"resolved": "https://registry.npmmirror.com/jws/-/jws-3.2.2.tgz",
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
"requires": {
"jwa": "^1.4.1",
......@@ -55,58 +55,58 @@
},
"lodash.includes": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
"resolved": "https://registry.npmmirror.com/lodash.includes/-/lodash.includes-4.3.0.tgz",
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
},
"lodash.isboolean": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
"resolved": "https://registry.npmmirror.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="
},
"lodash.isinteger": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
"resolved": "https://registry.npmmirror.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="
},
"lodash.isnumber": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
"resolved": "https://registry.npmmirror.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="
},
"lodash.isplainobject": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"resolved": "https://registry.npmmirror.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="
},
"lodash.isstring": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
"resolved": "https://registry.npmmirror.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="
},
"lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
"resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
},
"lodash.once": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
"resolved": "https://registry.npmmirror.com/lodash.once/-/lodash.once-4.1.1.tgz",
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
},
"ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
},
"safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
},
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
"version": "5.7.2",
"resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz",
"integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g=="
},
"uni-captcha": {
"version": "file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册