modusergroupmember.map.inc.php 2.1 KB

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