modusergroup.map.inc.php 3.6 KB

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