modpropertyset.map.inc.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modPropertySet']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'property_set',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => '',
  18. 'category' => 0,
  19. 'description' => '',
  20. 'properties' => NULL,
  21. ),
  22. 'fieldMeta' =>
  23. array (
  24. 'name' =>
  25. array (
  26. 'dbtype' => 'varchar',
  27. 'precision' => '50',
  28. 'phptype' => 'string',
  29. 'null' => false,
  30. 'default' => '',
  31. 'index' => 'unique',
  32. ),
  33. 'category' =>
  34. array (
  35. 'dbtype' => 'int',
  36. 'precision' => '10',
  37. 'phptype' => 'integer',
  38. 'null' => false,
  39. 'default' => 0,
  40. 'index' => 'fk',
  41. ),
  42. 'description' =>
  43. array (
  44. 'dbtype' => 'varchar',
  45. 'precision' => '191',
  46. 'phptype' => 'string',
  47. 'null' => false,
  48. 'default' => '',
  49. ),
  50. 'properties' =>
  51. array (
  52. 'dbtype' => 'text',
  53. 'phptype' => 'array',
  54. 'null' => true,
  55. ),
  56. ),
  57. 'indexes' =>
  58. array (
  59. 'name' =>
  60. array (
  61. 'alias' => 'name',
  62. 'primary' => false,
  63. 'unique' => true,
  64. 'type' => 'BTREE',
  65. 'columns' =>
  66. array (
  67. 'name' =>
  68. array (
  69. 'length' => '',
  70. 'collation' => 'A',
  71. 'null' => false,
  72. ),
  73. ),
  74. ),
  75. 'category' =>
  76. array (
  77. 'alias' => 'category',
  78. 'primary' => false,
  79. 'unique' => false,
  80. 'type' => 'BTREE',
  81. 'columns' =>
  82. array (
  83. 'category' =>
  84. array (
  85. 'length' => '',
  86. 'collation' => 'A',
  87. 'null' => false,
  88. ),
  89. ),
  90. ),
  91. ),
  92. 'composites' =>
  93. array (
  94. 'Elements' =>
  95. array (
  96. 'class' => 'modElementPropertySet',
  97. 'local' => 'id',
  98. 'foreign' => 'property_set',
  99. 'cardinality' => 'many',
  100. 'owner' => 'local',
  101. ),
  102. ),
  103. 'aggregates' =>
  104. array (
  105. 'Category' =>
  106. array (
  107. 'class' => 'modCategory',
  108. 'key' => 'id',
  109. 'local' => 'category',
  110. 'foreign' => 'id',
  111. 'cardinality' => 'one',
  112. 'owner' => 'foreign',
  113. ),
  114. ),
  115. );