modtemplatevartemplate.map.inc.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modTemplateVarTemplate']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_tmplvar_templates',
  10. 'extends' => 'xPDOObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'tmplvarid' => 0,
  18. 'templateid' => 0,
  19. 'rank' => 0,
  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' => 'pk',
  31. ),
  32. 'templateid' =>
  33. array (
  34. 'dbtype' => 'int',
  35. 'precision' => '11',
  36. 'phptype' => 'integer',
  37. 'null' => false,
  38. 'default' => 0,
  39. 'index' => 'pk',
  40. ),
  41. 'rank' =>
  42. array (
  43. 'dbtype' => 'int',
  44. 'precision' => '11',
  45. 'phptype' => 'integer',
  46. 'null' => false,
  47. 'default' => 0,
  48. ),
  49. ),
  50. 'indexes' =>
  51. array (
  52. 'PRIMARY' =>
  53. array (
  54. 'alias' => 'PRIMARY',
  55. 'primary' => true,
  56. 'unique' => true,
  57. 'type' => 'BTREE',
  58. 'columns' =>
  59. array (
  60. 'tmplvarid' =>
  61. array (
  62. 'length' => '',
  63. 'collation' => 'A',
  64. 'null' => false,
  65. ),
  66. 'templateid' =>
  67. array (
  68. 'length' => '',
  69. 'collation' => 'A',
  70. 'null' => false,
  71. ),
  72. ),
  73. ),
  74. ),
  75. 'aggregates' =>
  76. array (
  77. 'TemplateVar' =>
  78. array (
  79. 'class' => 'modTemplateVar',
  80. 'key' => 'id',
  81. 'local' => 'tmplvarid',
  82. 'foreign' => 'id',
  83. 'cardinality' => 'one',
  84. 'owner' => 'foreign',
  85. ),
  86. 'Template' =>
  87. array (
  88. 'class' => 'modTemplate',
  89. 'key' => 'id',
  90. 'local' => 'templateid',
  91. 'foreign' => 'id',
  92. 'cardinality' => 'one',
  93. 'owner' => 'foreign',
  94. ),
  95. ),
  96. );