modresourcegroup.map.inc.php 2.0 KB

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