modtemplatevarresource.map.inc.php 2.3 KB

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