db_init.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. // 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/hellodb?id=db-init
  2. // 编写完毕后对本文件点右键,可按配置规则创建表和添加数据
  3. {
  4. "uni-id-users": {
  5. "data": []
  6. },
  7. "opendb-verify-codes": {
  8. "data": []
  9. },
  10. "opendb-app-list": {
  11. "data": [],
  12. "index": [{
  13. "IndexName": "appid",
  14. "MgoKeySchema": {
  15. "MgoIndexKeys": [{
  16. "Name": "appid",
  17. "Direction": "1"
  18. }],
  19. "MgoIsUnique": true
  20. }
  21. }, {
  22. "IndexName": "name",
  23. "MgoKeySchema": {
  24. "MgoIndexKeys": [{
  25. "Name": "name",
  26. "Direction": "1"
  27. }],
  28. "MgoIsUnique": false
  29. }
  30. }]
  31. },
  32. "opendb-app-versions": {
  33. "data": [],
  34. "index": [{
  35. "IndexName": "appid",
  36. "MgoKeySchema": {
  37. "MgoIndexKeys": [{
  38. "Name": "appid",
  39. "Direction": "1"
  40. }, {
  41. "Name": "uni_platform",
  42. "Direction": "1"
  43. }, {
  44. "Name": "create_env",
  45. "Direction": "1"
  46. }],
  47. "MgoIsUnique": false
  48. }
  49. }, {
  50. "IndexName": "查找上线发行应用",
  51. "MgoKeySchema": {
  52. "MgoIndexKeys": [{
  53. "Name": "appid",
  54. "Direction": "1"
  55. }, {
  56. "Name": "platform",
  57. "Direction": "1"
  58. }, {
  59. "Name": "stable_publish",
  60. "Direction": "1"
  61. }, {
  62. "Name": "uni_platform",
  63. "Direction": "1"
  64. }, {
  65. "Name": "create_env",
  66. "Direction": "1"
  67. }],
  68. "MgoIsUnique": false
  69. }
  70. }]
  71. },
  72. "uni-id-roles": {
  73. "data": []
  74. },
  75. "uni-id-permissions": {
  76. "data": []
  77. },
  78. "uni-id-log": {
  79. "data": []
  80. },
  81. "opendb-admin-menus": {
  82. "data": [{
  83. "menu_id": "index",
  84. "name": "首页",
  85. "icon": "uni-icons-home",
  86. "url": "/",
  87. "sort": 100,
  88. "parent_id": "",
  89. "permission": [],
  90. "enable": true,
  91. "create_date": 1602662469396
  92. }, {
  93. "menu_id": "system_management",
  94. "name": "系统管理",
  95. "icon": "admin-icons-fl-xitong",
  96. "url": "",
  97. "sort": 1000,
  98. "parent_id": "",
  99. "permission": [],
  100. "enable": true,
  101. "create_date": 1602662469396
  102. }, {
  103. "menu_id": "system_user",
  104. "name": "用户管理",
  105. "icon": "admin-icons-manager-user",
  106. "url": "/pages/system/user/list",
  107. "sort": 1010,
  108. "parent_id": "system_management",
  109. "permission": [],
  110. "enable": true,
  111. "create_date": 1602662469398
  112. }, {
  113. "menu_id": "system_role",
  114. "name": "角色管理",
  115. "icon": "admin-icons-manager-role",
  116. "url": "/pages/system/role/list",
  117. "sort": 1020,
  118. "parent_id": "system_management",
  119. "permission": [],
  120. "enable": true,
  121. "create_date": 1602662469397
  122. }, {
  123. "menu_id": "system_permission",
  124. "name": "权限管理",
  125. "icon": "admin-icons-manager-permission",
  126. "url": "/pages/system/permission/list",
  127. "sort": 1030,
  128. "parent_id": "system_management",
  129. "permission": [],
  130. "enable": true,
  131. "create_date": 1602662469396
  132. }, {
  133. "menu_id": "system_menu",
  134. "name": "菜单管理",
  135. "icon": "admin-icons-manager-menu",
  136. "url": "/pages/system/menu/list",
  137. "sort": 1040,
  138. "parent_id": "system_management",
  139. "permission": [],
  140. "enable": true,
  141. "create_date": 1602662469396
  142. }, {
  143. "menu_id": "system_app",
  144. "name": "应用管理",
  145. "icon": "admin-icons-manager-app",
  146. "url": "/pages/system/app/list",
  147. "sort": 1035,
  148. "parent_id": "system_management",
  149. "permission": [],
  150. "enable": true,
  151. "create_date": 1602662469399
  152. }, {
  153. "menu_id": "system_update",
  154. "name": "App升级中心",
  155. "icon": "uni-icons-cloud-upload",
  156. "url": "/uni_modules/uni-upgrade-center/pages/version/list",
  157. "sort": 1036,
  158. "parent_id": "system_management",
  159. "permission": [],
  160. "enable": true,
  161. "create_date": 1656491532434
  162. }, {
  163. "menu_id": "system_tag",
  164. "name": "标签管理",
  165. "icon": "admin-icons-manager-tag",
  166. "url": "/pages/system/tag/list",
  167. "sort": 1037,
  168. "parent_id": "system_management",
  169. "permission": [],
  170. "enable": true,
  171. "create_date": 1602662479389
  172. }, {
  173. "permission": [],
  174. "enable": true,
  175. "menu_id": "safety_statistics",
  176. "name": "安全审计",
  177. "icon": "admin-icons-safety",
  178. "url": "",
  179. "sort": 3100,
  180. "parent_id": "",
  181. "create_date": 1638356430871
  182. }, {
  183. "permission": [],
  184. "enable": true,
  185. "menu_id": "safety_statistics_user_log",
  186. "name": "用户日志",
  187. "icon": "",
  188. "url": "/pages/system/safety/list",
  189. "sort": 3101,
  190. "parent_id": "safety_statistics",
  191. "create_date": 1638356430871
  192. }, {
  193. "permission": [],
  194. "enable": true,
  195. "menu_id": "uni-stat",
  196. "name": "uni 统计",
  197. "icon": "admin-icons-tongji",
  198. "url": "",
  199. "sort": 2100,
  200. "parent_id": "",
  201. "create_date": 1638356430871
  202. }, {
  203. "parent_id": "uni-stat",
  204. "permission": [],
  205. "enable": true,
  206. "menu_id": "uni-stat-device",
  207. "name": "设备统计",
  208. "icon": "admin-icons-shebeitongji",
  209. "url": "",
  210. "sort": 2120,
  211. "create_date": 1638356902516
  212. }, {
  213. "parent_id": "uni-stat-device",
  214. "permission": [],
  215. "enable": true,
  216. "menu_id": "uni-stat-device-overview",
  217. "name": "概况",
  218. "icon": "",
  219. "url": "/pages/uni-stat/device/overview/overview",
  220. "sort": 2121,
  221. "create_date": 1638356902516
  222. }, {
  223. "parent_id": "uni-stat-device",
  224. "permission": [],
  225. "enable": true,
  226. "menu_id": "uni-stat-device-activity",
  227. "name": "活跃度",
  228. "icon": "",
  229. "url": "/pages/uni-stat/device/activity/activity",
  230. "sort": 2122,
  231. "create_date": 1638356902516
  232. }, {
  233. "parent_id": "uni-stat-device",
  234. "permission": [],
  235. "enable": true,
  236. "menu_id": "uni-stat-device-trend",
  237. "name": "趋势分析",
  238. "icon": "",
  239. "url": "/pages/uni-stat/device/trend/trend",
  240. "sort": 2123,
  241. "create_date": 1638356902516
  242. }, {
  243. "parent_id": "uni-stat-device",
  244. "permission": [],
  245. "enable": true,
  246. "menu_id": "uni-stat-device-retention",
  247. "name": "留存",
  248. "icon": "",
  249. "url": "/pages/uni-stat/device/retention/retention",
  250. "sort": 2124,
  251. "create_date": 1638356902516
  252. }, {
  253. "parent_id": "uni-stat-device",
  254. "permission": [],
  255. "enable": true,
  256. "menu_id": "uni-stat-device-comparison",
  257. "name": "平台对比",
  258. "icon": "",
  259. "url": "/pages/uni-stat/device/comparison/comparison",
  260. "sort": 2125,
  261. "create_date": 1638356902516
  262. }, {
  263. "parent_id": "uni-stat-device",
  264. "permission": [],
  265. "enable": true,
  266. "menu_id": "uni-stat-device-stickiness",
  267. "name": "粘性",
  268. "icon": "",
  269. "url": "/pages/uni-stat/device/stickiness/stickiness",
  270. "sort": 2126,
  271. "create_date": 1638356902516
  272. }, {
  273. "parent_id": "uni-stat",
  274. "permission": [],
  275. "enable": true,
  276. "menu_id": "uni-stat-user",
  277. "name": "注册用户统计",
  278. "icon": "admin-icons-yonghutongji",
  279. "url": "",
  280. "sort": 2122,
  281. "create_date": 1638356902516
  282. }, {
  283. "parent_id": "uni-stat-user",
  284. "permission": [],
  285. "enable": true,
  286. "menu_id": "uni-stat-user-overview",
  287. "name": "概况",
  288. "icon": "",
  289. "url": "/pages/uni-stat/user/overview/overview",
  290. "sort": 2121,
  291. "create_date": 1638356902516
  292. }, {
  293. "parent_id": "uni-stat-user",
  294. "permission": [],
  295. "enable": true,
  296. "menu_id": "uni-stat-user-activity",
  297. "name": "活跃度",
  298. "icon": "",
  299. "url": "/pages/uni-stat/user/activity/activity",
  300. "sort": 2122,
  301. "create_date": 1638356902516
  302. }, {
  303. "parent_id": "uni-stat-user",
  304. "permission": [],
  305. "enable": true,
  306. "icon": "",
  307. "menu_id": "uni-stat-user-trend",
  308. "name": "趋势分析",
  309. "url": "/pages/uni-stat/user/trend/trend",
  310. "sort": 2123,
  311. "create_date": 1638356902516
  312. }, {
  313. "parent_id": "uni-stat-user",
  314. "permission": [],
  315. "enable": true,
  316. "menu_id": "uni-stat-user-retention",
  317. "name": "留存",
  318. "icon": "",
  319. "url": "/pages/uni-stat/user/retention/retention",
  320. "sort": 2124,
  321. "create_date": 1638356902516
  322. }, {
  323. "parent_id": "uni-stat-user",
  324. "permission": [],
  325. "enable": true,
  326. "menu_id": "uni-stat-user-comparison",
  327. "name": "平台对比",
  328. "icon": "",
  329. "url": "/pages/uni-stat/user/comparison/comparison",
  330. "sort": 2125,
  331. "create_date": 1638356902516
  332. }, {
  333. "parent_id": "uni-stat-user",
  334. "permission": [],
  335. "enable": true,
  336. "menu_id": "uni-stat-user-stickiness",
  337. "name": "粘性",
  338. "icon": "",
  339. "url": "/pages/uni-stat/user/stickiness/stickiness",
  340. "sort": 2126,
  341. "create_date": 1638356902516
  342. }, {
  343. "parent_id": "uni-stat",
  344. "permission": [],
  345. "enable": true,
  346. "menu_id": "uni-stat-page-analysis",
  347. "name": "页面统计",
  348. "icon": "admin-icons-page-ent",
  349. "url": "",
  350. "sort": 2123,
  351. "create_date": 1638356902516
  352. }, {
  353. "parent_id": "uni-stat-page-analysis",
  354. "permission": [],
  355. "enable": true,
  356. "menu_id": "uni-stat-page-res",
  357. "name": "受访页",
  358. "icon": "",
  359. "url": "/pages/uni-stat/page-res/page-res",
  360. "sort": 2131,
  361. "create_date": 1638356902516
  362. }, {
  363. "parent_id": "uni-stat-page-analysis",
  364. "permission": [],
  365. "enable": true,
  366. "menu_id": "uni-stat-page-ent",
  367. "name": "入口页",
  368. "icon": "",
  369. "url": "/pages/uni-stat/page-ent/page-ent",
  370. "sort": 2132,
  371. "create_date": 1638356902516
  372. }, {
  373. "parent_id": "uni-stat",
  374. "permission": [],
  375. "enable": true,
  376. "menu_id": "uni-stat-senceChannel",
  377. "name": "渠道/场景值分析",
  378. "icon": "admin-icons-qudaofenxi",
  379. "url": "",
  380. "sort": 2150,
  381. "create_date": 1638356902516
  382. }, {
  383. "parent_id": "uni-stat-senceChannel",
  384. "permission": [],
  385. "enable": true,
  386. "menu_id": "uni-stat-senceChannel-scene",
  387. "name": "场景值(小程序)",
  388. "icon": "",
  389. "url": "/pages/uni-stat/scene/scene",
  390. "sort": 2151,
  391. "create_date": 1638356902516
  392. }, {
  393. "parent_id": "uni-stat-senceChannel",
  394. "permission": [],
  395. "enable": true,
  396. "menu_id": "uni-stat-senceChannel-channel",
  397. "name": "渠道(app)",
  398. "icon": "",
  399. "url": "/pages/uni-stat/channel/channel",
  400. "sort": 2152,
  401. "create_date": 1638356902516
  402. }, {
  403. "parent_id": "uni-stat",
  404. "permission": [],
  405. "enable": true,
  406. "menu_id": "uni-stat-event-event",
  407. "name": "自定义事件",
  408. "icon": "admin-icons-shijianfenxi",
  409. "url": "/pages/uni-stat/event/event",
  410. "sort": 2160,
  411. "create_date": 1638356902516
  412. }, {
  413. "parent_id": "uni-stat",
  414. "permission": [],
  415. "enable": true,
  416. "menu_id": "uni-stat-error",
  417. "name": "错误统计",
  418. "icon": "admin-icons-cuowutongji",
  419. "url": "",
  420. "sort": 2170,
  421. "create_date": 1638356902516
  422. }, {
  423. "parent_id": "uni-stat-error",
  424. "permission": [],
  425. "enable": true,
  426. "menu_id": "uni-stat-error-js",
  427. "name": "js报错",
  428. "icon": "",
  429. "url": "/pages/uni-stat/error/js/js",
  430. "sort": 2171,
  431. "create_date": 1638356902516
  432. }, {
  433. "parent_id": "uni-stat-error",
  434. "permission": [],
  435. "enable": true,
  436. "menu_id": "uni-stat-error-app",
  437. "name": "app崩溃",
  438. "icon": "",
  439. "url": "/pages/uni-stat/error/app/app",
  440. "sort": 2172,
  441. "create_date": 1638356902516
  442. },
  443. {
  444. "menu_id": "uni-stat-pay",
  445. "name": "支付统计",
  446. "icon": "uni-icons-circle",
  447. "url": "",
  448. "sort": 2122,
  449. "parent_id": "uni-stat",
  450. "permission": [],
  451. "enable": true,
  452. "create_date": 1667386977981
  453. }, {
  454. "menu_id": "uni-stat-pay-overview",
  455. "name": "概况",
  456. "icon": "",
  457. "url": "/pages/uni-stat/pay-order/overview/overview",
  458. "sort": 21221,
  459. "parent_id": "uni-stat-pay",
  460. "permission": [],
  461. "enable": true,
  462. "create_date": 1667387038602
  463. },
  464. {
  465. "menu_id": "uni-stat-pay-funnel",
  466. "name": "转换漏斗分析",
  467. "icon": "",
  468. "url": "/pages/uni-stat/pay-order/funnel/funnel",
  469. "sort": 21222,
  470. "parent_id": "uni-stat-pay",
  471. "permission": [],
  472. "enable": true,
  473. "create_date": 1668430092890
  474. },
  475. {
  476. "menu_id": "uni-stat-pay-ranking",
  477. "name": "价值用户排行",
  478. "icon": "",
  479. "url": "/pages/uni-stat/pay-order/ranking/ranking",
  480. "sort": 21223,
  481. "parent_id": "uni-stat-pay",
  482. "permission": [],
  483. "enable": true,
  484. "create_date": 1668430128302
  485. },
  486. {
  487. "menu_id": "uni-stat-pay-order-list",
  488. "name": "订单明细",
  489. "icon": "",
  490. "url": "/pages/uni-stat/pay-order/list/list",
  491. "sort": 21224,
  492. "parent_id": "uni-stat-pay",
  493. "permission": [],
  494. "enable": true,
  495. "create_date": 1667387078947
  496. }
  497. ]
  498. },
  499. "uni-id-tag": {},
  500. "uni-id-device": {},
  501. "opendb-device": {},
  502. "opendb-department": {},
  503. "opendb-sms-task": {},
  504. "opendb-sms-log": {},
  505. "opendb-sms-template": {},
  506. "opendb-open-data": {},
  507. "uni-stat-app-versions": {},
  508. "uni-stat-active-devices": {},
  509. "uni-stat-active-users": {},
  510. "uni-stat-app-channels": {},
  511. "uni-stat-app-crash-logs": {},
  512. "uni-stat-app-platforms": {},
  513. "uni-stat-error-logs": {},
  514. "uni-stat-error-result": {},
  515. "uni-stat-event-logs": {},
  516. "uni-stat-event-result": {},
  517. "uni-stat-events": {},
  518. "uni-stat-loyalty-result": {},
  519. "uni-stat-mp-scenes": {},
  520. "uni-stat-page-logs": {},
  521. "uni-stat-page-result": {},
  522. "uni-stat-pages": {},
  523. "uni-stat-result": {},
  524. "uni-stat-run-errors": {},
  525. "uni-stat-session-logs": {},
  526. "uni-stat-share-logs": {},
  527. "uni-stat-user-session-logs": {},
  528. "uni-pay-orders": {},
  529. "uni-stat-pay-result": {}
  530. }