modtemplatevarresource.map.inc.php 2.4 KB

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