moddashboardwidget.map.inc.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modDashboardWidget']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'dashboard_widget',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => '',
  18. 'description' => NULL,
  19. 'type' => NULL,
  20. 'content' => NULL,
  21. 'namespace' => '',
  22. 'lexicon' => 'core:dashboards',
  23. 'size' => 'half',
  24. ),
  25. 'fieldMeta' =>
  26. array (
  27. 'name' =>
  28. array (
  29. 'dbtype' => 'varchar',
  30. 'precision' => '191',
  31. 'phptype' => 'string',
  32. 'null' => false,
  33. 'default' => '',
  34. 'index' => 'index',
  35. ),
  36. 'description' =>
  37. array (
  38. 'dbtype' => 'text',
  39. 'phptype' => 'string',
  40. ),
  41. 'type' =>
  42. array (
  43. 'dbtype' => 'varchar',
  44. 'precision' => '100',
  45. 'phptype' => 'string',
  46. 'null' => false,
  47. 'index' => 'index',
  48. ),
  49. 'content' =>
  50. array (
  51. 'dbtype' => 'mediumtext',
  52. 'phptype' => 'string',
  53. ),
  54. 'namespace' =>
  55. array (
  56. 'dbtype' => 'varchar',
  57. 'precision' => '191',
  58. 'phptype' => 'string',
  59. 'null' => false,
  60. 'default' => '',
  61. 'index' => 'index',
  62. ),
  63. 'lexicon' =>
  64. array (
  65. 'dbtype' => 'varchar',
  66. 'precision' => '191',
  67. 'phptype' => 'string',
  68. 'null' => false,
  69. 'default' => 'core:dashboards',
  70. 'index' => 'index',
  71. ),
  72. 'size' =>
  73. array (
  74. 'dbtype' => 'varchar',
  75. 'precision' => '191',
  76. 'phptype' => 'string',
  77. 'null' => false,
  78. 'default' => 'half',
  79. ),
  80. ),
  81. 'indexes' =>
  82. array (
  83. 'name' =>
  84. array (
  85. 'alias' => 'name',
  86. 'primary' => false,
  87. 'unique' => false,
  88. 'type' => 'BTREE',
  89. 'columns' =>
  90. array (
  91. 'name' =>
  92. array (
  93. 'length' => '',
  94. 'collation' => 'A',
  95. 'null' => false,
  96. ),
  97. ),
  98. ),
  99. 'type' =>
  100. array (
  101. 'alias' => 'type',
  102. 'primary' => false,
  103. 'unique' => false,
  104. 'type' => 'BTREE',
  105. 'columns' =>
  106. array (
  107. 'type' =>
  108. array (
  109. 'length' => '',
  110. 'collation' => 'A',
  111. 'null' => false,
  112. ),
  113. ),
  114. ),
  115. 'namespace' =>
  116. array (
  117. 'alias' => 'namespace',
  118. 'primary' => false,
  119. 'unique' => false,
  120. 'type' => 'BTREE',
  121. 'columns' =>
  122. array (
  123. 'namespace' =>
  124. array (
  125. 'length' => '',
  126. 'collation' => 'A',
  127. 'null' => false,
  128. ),
  129. ),
  130. ),
  131. 'lexicon' =>
  132. array (
  133. 'alias' => 'lexicon',
  134. 'primary' => false,
  135. 'unique' => false,
  136. 'type' => 'BTREE',
  137. 'columns' =>
  138. array (
  139. 'lexicon' =>
  140. array (
  141. 'length' => '',
  142. 'collation' => 'A',
  143. 'null' => false,
  144. ),
  145. ),
  146. ),
  147. ),
  148. 'composites' =>
  149. array (
  150. 'Placements' =>
  151. array (
  152. 'class' => 'modDashboardWidgetPlacement',
  153. 'local' => 'id',
  154. 'foreign' => 'widget',
  155. 'cardinality' => 'many',
  156. 'owner' => 'local',
  157. ),
  158. ),
  159. 'aggregates' =>
  160. array (
  161. 'Namespace' =>
  162. array (
  163. 'class' => 'modNamespace',
  164. 'local' => 'namespace',
  165. 'foreign' => 'name',
  166. 'cardinality' => 'one',
  167. 'owner' => 'foreign',
  168. ),
  169. ),
  170. );