modworkspace.map.inc.php 2.3 KB

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