moddashboard.map.inc.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modDashboard']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'dashboard',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'fields' =>
  12. array (
  13. 'name' => NULL,
  14. 'description' => NULL,
  15. 'hide_trees' => 0,
  16. ),
  17. 'fieldMeta' =>
  18. array (
  19. 'name' =>
  20. array (
  21. 'dbtype' => 'nvarchar',
  22. 'precision' => '255',
  23. 'phptype' => 'string',
  24. 'null' => false,
  25. 'index' => 'index',
  26. ),
  27. 'description' =>
  28. array (
  29. 'dbtype' => 'nvarchar',
  30. 'precision' => 'max',
  31. 'phptype' => 'string',
  32. ),
  33. 'hide_trees' =>
  34. array (
  35. 'dbtype' => 'bit',
  36. 'phptype' => 'boolean',
  37. 'null' => false,
  38. 'default' => 0,
  39. 'index' => 'index',
  40. ),
  41. ),
  42. 'indexes' =>
  43. array (
  44. 'name' =>
  45. array (
  46. 'alias' => 'name',
  47. 'primary' => false,
  48. 'unique' => false,
  49. 'type' => 'BTREE',
  50. 'columns' =>
  51. array (
  52. 'name' =>
  53. array (
  54. 'length' => '',
  55. 'collation' => 'A',
  56. 'null' => false,
  57. ),
  58. ),
  59. ),
  60. 'hide_trees' =>
  61. array (
  62. 'alias' => 'hide_trees',
  63. 'primary' => false,
  64. 'unique' => false,
  65. 'type' => 'BTREE',
  66. 'columns' =>
  67. array (
  68. 'hide_trees' =>
  69. array (
  70. 'length' => '',
  71. 'collation' => 'A',
  72. 'null' => false,
  73. ),
  74. ),
  75. ),
  76. ),
  77. 'composites' =>
  78. array (
  79. 'Placements' =>
  80. array (
  81. 'class' => 'modDashboardWidgetPlacement',
  82. 'local' => 'id',
  83. 'foreign' => 'dashboard',
  84. 'cardinality' => 'many',
  85. 'owner' => 'local',
  86. ),
  87. ),
  88. 'aggregates' =>
  89. array (
  90. 'UserGroups' =>
  91. array (
  92. 'class' => 'modUserGroup',
  93. 'local' => 'id',
  94. 'foreign' => 'dashboard',
  95. 'cardinality' => 'many',
  96. 'owner' => 'local',
  97. ),
  98. ),
  99. );