modworkspace.map.inc.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modWorkspace']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'workspaces',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => '',
  18. 'path' => '',
  19. 'created' => NULL,
  20. 'active' => 0,
  21. 'attributes' => NULL,
  22. ),
  23. 'fieldMeta' =>
  24. array (
  25. 'name' =>
  26. array (
  27. 'dbtype' => 'varchar',
  28. 'precision' => '191',
  29. 'phptype' => 'string',
  30. 'null' => false,
  31. 'default' => '',
  32. 'index' => 'index',
  33. ),
  34. 'path' =>
  35. array (
  36. 'dbtype' => 'varchar',
  37. 'precision' => '191',
  38. 'phptype' => 'string',
  39. 'null' => false,
  40. 'default' => '',
  41. 'index' => 'unique',
  42. ),
  43. 'created' =>
  44. array (
  45. 'dbtype' => 'datetime',
  46. 'phptype' => 'timestamp',
  47. 'null' => false,
  48. ),
  49. 'active' =>
  50. array (
  51. 'dbtype' => 'tinyint',
  52. 'precision' => '1',
  53. 'attributes' => 'unsigned',
  54. 'phptype' => 'boolean',
  55. 'null' => false,
  56. 'default' => 0,
  57. 'index' => 'index',
  58. ),
  59. 'attributes' =>
  60. array (
  61. 'dbtype' => 'mediumtext',
  62. 'phptype' => 'array',
  63. ),
  64. ),
  65. 'indexes' =>
  66. array (
  67. 'name' =>
  68. array (
  69. 'alias' => 'name',
  70. 'primary' => false,
  71. 'unique' => false,
  72. 'type' => 'BTREE',
  73. 'columns' =>
  74. array (
  75. 'name' =>
  76. array (
  77. 'length' => '',
  78. 'collation' => 'A',
  79. 'null' => false,
  80. ),
  81. ),
  82. ),
  83. 'path' =>
  84. array (
  85. 'alias' => 'path',
  86. 'primary' => false,
  87. 'unique' => true,
  88. 'type' => 'BTREE',
  89. 'columns' =>
  90. array (
  91. 'path' =>
  92. array (
  93. 'length' => '',
  94. 'collation' => 'A',
  95. 'null' => false,
  96. ),
  97. ),
  98. ),
  99. 'active' =>
  100. array (
  101. 'alias' => 'active',
  102. 'primary' => false,
  103. 'unique' => false,
  104. 'type' => 'BTREE',
  105. 'columns' =>
  106. array (
  107. 'active' =>
  108. array (
  109. 'length' => '',
  110. 'collation' => 'A',
  111. 'null' => false,
  112. ),
  113. ),
  114. ),
  115. ),
  116. 'composites' =>
  117. array (
  118. 'Packages' =>
  119. array (
  120. 'class' => 'transport.modTransportPackage',
  121. 'local' => 'id',
  122. 'foreign' => 'workspace',
  123. 'cardinality' => 'many',
  124. 'owner' => 'local',
  125. ),
  126. ),
  127. );