modusergroupmember.map.inc.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modUserGroupMember']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'member_groups',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'user_group' => 0,
  18. 'member' => 0,
  19. 'role' => 1,
  20. 'rank' => 0,
  21. ),
  22. 'fieldMeta' =>
  23. array (
  24. 'user_group' =>
  25. array (
  26. 'dbtype' => 'int',
  27. 'precision' => '10',
  28. 'attributes' => 'unsigned',
  29. 'phptype' => 'integer',
  30. 'null' => false,
  31. 'default' => 0,
  32. ),
  33. 'member' =>
  34. array (
  35. 'dbtype' => 'int',
  36. 'precision' => '10',
  37. 'attributes' => 'unsigned',
  38. 'phptype' => 'integer',
  39. 'null' => false,
  40. 'default' => 0,
  41. ),
  42. 'role' =>
  43. array (
  44. 'dbtype' => 'int',
  45. 'precision' => '10',
  46. 'attributes' => 'unsigned',
  47. 'phptype' => 'integer',
  48. 'null' => false,
  49. 'default' => 1,
  50. 'index' => 'index',
  51. ),
  52. 'rank' =>
  53. array (
  54. 'dbtype' => 'int',
  55. 'precision' => '10',
  56. 'attributes' => 'unsigned',
  57. 'phptype' => 'integer',
  58. 'null' => false,
  59. 'default' => 0,
  60. 'index' => 'index',
  61. ),
  62. ),
  63. 'indexes' =>
  64. array (
  65. 'role' =>
  66. array (
  67. 'alias' => 'role',
  68. 'primary' => false,
  69. 'unique' => false,
  70. 'type' => 'BTREE',
  71. 'columns' =>
  72. array (
  73. 'role' =>
  74. array (
  75. 'length' => '',
  76. 'collation' => 'A',
  77. 'null' => false,
  78. ),
  79. ),
  80. ),
  81. 'rank' =>
  82. array (
  83. 'alias' => 'rank',
  84. 'primary' => false,
  85. 'unique' => false,
  86. 'type' => 'BTREE',
  87. 'columns' =>
  88. array (
  89. 'rank' =>
  90. array (
  91. 'length' => '',
  92. 'collation' => 'A',
  93. 'null' => false,
  94. ),
  95. ),
  96. ),
  97. ),
  98. 'aggregates' =>
  99. array (
  100. 'UserGroupRole' =>
  101. array (
  102. 'class' => 'modUserGroupRole',
  103. 'local' => 'role',
  104. 'foreign' => 'id',
  105. 'cardinality' => 'one',
  106. 'owner' => 'foreign',
  107. ),
  108. 'UserGroup' =>
  109. array (
  110. 'class' => 'modUserGroup',
  111. 'local' => 'user_group',
  112. 'foreign' => 'id',
  113. 'cardinality' => 'one',
  114. 'owner' => 'foreign',
  115. ),
  116. 'User' =>
  117. array (
  118. 'class' => 'modUser',
  119. 'local' => 'member',
  120. 'foreign' => 'id',
  121. 'cardinality' => 'one',
  122. 'owner' => 'foreign',
  123. ),
  124. ),
  125. );