system.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. return array
  3. (
  4. 'name' => '系统',
  5. 'order' => 'sort asc',
  6. 'struct' => array
  7. (
  8. 'name' => array
  9. (
  10. 'name' => '系统名称',
  11. 'type' => 'varchar(32)',
  12. ),
  13. 'key' => array
  14. (
  15. 'name' => '系统标识',
  16. 'type' => 'varchar(32)',
  17. ),
  18. 'partition' => array
  19. (
  20. 'name' => '数据隔离类型',
  21. 'type' => 'varchar(20)',
  22. 'default' => 'no',
  23. 'value' => array
  24. (
  25. 'no' => '不做数据隔离',
  26. 'database' => '分库隔离',
  27. 'table' => '分表隔离',
  28. 'field' => '分区隔离',
  29. 'where' => '分条件隔离',
  30. ),
  31. ),
  32. 'info_table' => array
  33. (
  34. 'name' => '基本信息表名',
  35. 'type' => 'varchar(100)',
  36. ),
  37. 'user_table' => array
  38. (
  39. 'name' => '用户表表名',
  40. 'type' => 'varchar(100)',
  41. ),
  42. 'role_table' => array
  43. (
  44. 'name' => '角色表表名',
  45. 'type' => 'varchar(100)',
  46. ),
  47. 'sort' => array
  48. (
  49. 'name' => '排序',
  50. 'type' => 'int(11)',
  51. ),
  52. ),
  53. 'default' => array
  54. (
  55. 'field' => 'id,name,`key`,`partition`,info_table,user_table,role_table,sort',
  56. 'value' => array
  57. (
  58. '1,"平台系统","platform","no","manage/platform","manage/admin","manage/role",-1000',
  59. '2,"集团系统","group","database","manage/group","manage/group_user","manage/group_role",-900',
  60. ),
  61. 'num' => 1,
  62. ),
  63. );