modusersetting.map.inc.php 2.3 KB

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