modaccesspolicy.map.inc.php 3.5 KB

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