modlexiconentry.map.inc.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modLexiconEntry']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'lexicon_entries',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'fields' =>
  12. array (
  13. 'name' => '',
  14. 'value' => '',
  15. 'topic' => 'default',
  16. 'namespace' => 'core',
  17. 'language' => 'en',
  18. 'createdon' => NULL,
  19. 'editedon' => NULL,
  20. ),
  21. 'fieldMeta' =>
  22. array (
  23. 'name' =>
  24. array (
  25. 'dbtype' => 'nvarchar',
  26. 'precision' => '255',
  27. 'phptype' => 'string',
  28. 'null' => false,
  29. 'default' => '',
  30. 'index' => 'index',
  31. ),
  32. 'value' =>
  33. array (
  34. 'dbtype' => 'nvarchar',
  35. 'precision' => 'max',
  36. 'phptype' => 'string',
  37. 'null' => false,
  38. 'default' => '',
  39. ),
  40. 'topic' =>
  41. array (
  42. 'dbtype' => 'nvarchar',
  43. 'precision' => '255',
  44. 'phptype' => 'string',
  45. 'null' => false,
  46. 'default' => 'default',
  47. 'index' => 'index',
  48. ),
  49. 'namespace' =>
  50. array (
  51. 'dbtype' => 'nvarchar',
  52. 'precision' => '40',
  53. 'phptype' => 'string',
  54. 'null' => false,
  55. 'default' => 'core',
  56. 'index' => 'index',
  57. ),
  58. 'language' =>
  59. array (
  60. 'dbtype' => 'nvarchar',
  61. 'precision' => '20',
  62. 'phptype' => 'string',
  63. 'null' => false,
  64. 'default' => 'en',
  65. 'index' => 'index',
  66. ),
  67. 'createdon' =>
  68. array (
  69. 'dbtype' => 'datetime',
  70. 'phptype' => 'datetime',
  71. ),
  72. 'editedon' =>
  73. array (
  74. 'dbtype' => 'datetime',
  75. 'phptype' => 'timestamp',
  76. 'null' => true,
  77. ),
  78. ),
  79. 'indexes' =>
  80. array (
  81. 'name' =>
  82. array (
  83. 'alias' => 'name',
  84. 'primary' => false,
  85. 'unique' => false,
  86. 'type' => 'BTREE',
  87. 'columns' =>
  88. array (
  89. 'name' =>
  90. array (
  91. 'length' => '',
  92. 'collation' => 'A',
  93. 'null' => false,
  94. ),
  95. ),
  96. ),
  97. 'topic' =>
  98. array (
  99. 'alias' => 'topic',
  100. 'primary' => false,
  101. 'unique' => false,
  102. 'type' => 'BTREE',
  103. 'columns' =>
  104. array (
  105. 'topic' =>
  106. array (
  107. 'length' => '',
  108. 'collation' => 'A',
  109. 'null' => false,
  110. ),
  111. ),
  112. ),
  113. 'namespace' =>
  114. array (
  115. 'alias' => 'namespace',
  116. 'primary' => false,
  117. 'unique' => false,
  118. 'type' => 'BTREE',
  119. 'columns' =>
  120. array (
  121. 'namespace' =>
  122. array (
  123. 'length' => '',
  124. 'collation' => 'A',
  125. 'null' => false,
  126. ),
  127. ),
  128. ),
  129. 'language' =>
  130. array (
  131. 'alias' => 'language',
  132. 'primary' => false,
  133. 'unique' => false,
  134. 'type' => 'BTREE',
  135. 'columns' =>
  136. array (
  137. 'language' =>
  138. array (
  139. 'length' => '',
  140. 'collation' => 'A',
  141. 'null' => false,
  142. ),
  143. ),
  144. ),
  145. ),
  146. 'aggregates' =>
  147. array (
  148. 'Namespace' =>
  149. array (
  150. 'class' => 'modNamespace',
  151. 'local' => 'namespace',
  152. 'foreign' => 'name',
  153. 'cardinality' => 'one',
  154. 'owner' => 'foreign',
  155. ),
  156. ),
  157. );