modusergrouprole.map.inc.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modUserGroupRole']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'user_group_roles',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => NULL,
  18. 'description' => NULL,
  19. 'authority' => 9999,
  20. ),
  21. 'fieldMeta' =>
  22. array (
  23. 'name' =>
  24. array (
  25. 'dbtype' => 'varchar',
  26. 'precision' => '191',
  27. 'phptype' => 'string',
  28. 'null' => false,
  29. 'index' => 'unique',
  30. ),
  31. 'description' =>
  32. array (
  33. 'dbtype' => 'mediumtext',
  34. 'phptype' => 'string',
  35. ),
  36. 'authority' =>
  37. array (
  38. 'dbtype' => 'int',
  39. 'precision' => '10',
  40. 'attributes' => 'unsigned',
  41. 'phptype' => 'integer',
  42. 'null' => false,
  43. 'default' => 9999,
  44. 'index' => 'index',
  45. ),
  46. ),
  47. 'indexes' =>
  48. array (
  49. 'name' =>
  50. array (
  51. 'alias' => 'name',
  52. 'primary' => false,
  53. 'unique' => true,
  54. 'type' => 'BTREE',
  55. 'columns' =>
  56. array (
  57. 'name' =>
  58. array (
  59. 'length' => '',
  60. 'collation' => 'A',
  61. 'null' => false,
  62. ),
  63. ),
  64. ),
  65. 'authority' =>
  66. array (
  67. 'alias' => 'authority',
  68. 'primary' => false,
  69. 'unique' => false,
  70. 'type' => 'BTREE',
  71. 'columns' =>
  72. array (
  73. 'authority' =>
  74. array (
  75. 'length' => '',
  76. 'collation' => 'A',
  77. 'null' => false,
  78. ),
  79. ),
  80. ),
  81. ),
  82. 'aggregates' =>
  83. array (
  84. 'UserGroupMembers' =>
  85. array (
  86. 'class' => 'modUserGroupMember',
  87. 'local' => 'id',
  88. 'foreign' => 'role',
  89. 'cardinality' => 'many',
  90. 'owner' => 'local',
  91. ),
  92. ),
  93. );