modusergrouprole.map.inc.php 1.7 KB

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