modresourcegroup.map.inc.php 1.8 KB

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