modusersetting.map.inc.php 2.5 KB

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