db_init.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "opendb-admin-menus": {
  3. "data": [{
  4. "enable": true,
  5. "icon": "",
  6. "menu_id": "admin_log",
  7. "name": "系统日志",
  8. "parent_id": "system_management",
  9. "permission": [],
  10. "sort": 1020,
  11. "url": "/pages/opendb-admin-log/list"
  12. }
  13. ]
  14. },
  15. "opendb-admin-log": {
  16. "data": [
  17. {
  18. "user_name": "史玉柱",
  19. "content": "修改密码",
  20. "ip": "192.168.12.31",
  21. "crate_date": 1602662469396,
  22. "create_date": 1602662469396
  23. },
  24. {
  25. "user_name": "张瑞敏",
  26. "content": "登录",
  27. "ip": "192.168.12.1",
  28. "crate_date": 1602662469396,
  29. "create_date": 1602642469396
  30. },
  31. {
  32. "user_name": "马云",
  33. "content": "退出登录",
  34. "ip": "192.168.0.2",
  35. "create_date": 1602662260396
  36. },
  37. {
  38. "user_name": "柳传志",
  39. "content": "注册",
  40. "ip": "192.168.12.3",
  41. "crate_date": 1602662460098,
  42. "create_date": 1602662460098
  43. }
  44. ],
  45. "schema": {
  46. "bsonType": "object",
  47. "required": [
  48. "user_id",
  49. "content"
  50. ],
  51. "permission": {
  52. "read": false,
  53. "create": false,
  54. "update": false,
  55. "delete": false
  56. },
  57. "properties": {
  58. "_id": {
  59. "description": "ID,系统自动生成"
  60. },
  61. "user_id": {
  62. "bsonType": "string",
  63. "description": "用户id,参考uni-id-users表"
  64. },
  65. "user_name": {
  66. "bsonType": "string",
  67. "description": "用户名或昵称,冗余设计",
  68. "title": "用户"
  69. },
  70. "content": {
  71. "bsonType": "string",
  72. "description": "日志内容,如:修改密码",
  73. "title": "内容"
  74. },
  75. "ip": {
  76. "bsonType": "string",
  77. "description": "ip地址",
  78. "title": "IP"
  79. },
  80. "create_date": {
  81. "bsonType": "timestamp",
  82. "description": "创建时间",
  83. "title": "时间"
  84. }
  85. }
  86. }
  87. }
  88. }