modaccesspolicy.map.inc.php 3.4 KB

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