moduserprofile.map.inc.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modUserProfile']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'user_attributes',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'fields' =>
  12. array (
  13. 'internalKey' => NULL,
  14. 'fullname' => '',
  15. 'email' => '',
  16. 'phone' => '',
  17. 'mobilephone' => '',
  18. 'blocked' => 0,
  19. 'blockeduntil' => 0,
  20. 'blockedafter' => 0,
  21. 'logincount' => 0,
  22. 'lastlogin' => 0,
  23. 'thislogin' => 0,
  24. 'failedlogincount' => 0,
  25. 'sessionid' => '',
  26. 'dob' => 0,
  27. 'gender' => 0,
  28. 'address' => '',
  29. 'country' => '',
  30. 'city' => '',
  31. 'state' => '',
  32. 'zip' => '',
  33. 'fax' => '',
  34. 'photo' => '',
  35. 'comment' => '',
  36. 'website' => '',
  37. 'extended' => NULL,
  38. ),
  39. 'fieldMeta' =>
  40. array (
  41. 'internalKey' =>
  42. array (
  43. 'dbtype' => 'int',
  44. 'phptype' => 'integer',
  45. 'null' => false,
  46. 'index' => 'unique',
  47. ),
  48. 'fullname' =>
  49. array (
  50. 'dbtype' => 'nvarchar',
  51. 'precision' => '100',
  52. 'phptype' => 'string',
  53. 'null' => false,
  54. 'default' => '',
  55. ),
  56. 'email' =>
  57. array (
  58. 'dbtype' => 'nvarchar',
  59. 'precision' => '100',
  60. 'phptype' => 'string',
  61. 'null' => false,
  62. 'default' => '',
  63. ),
  64. 'phone' =>
  65. array (
  66. 'dbtype' => 'nvarchar',
  67. 'precision' => '100',
  68. 'phptype' => 'string',
  69. 'null' => false,
  70. 'default' => '',
  71. ),
  72. 'mobilephone' =>
  73. array (
  74. 'dbtype' => 'nvarchar',
  75. 'precision' => '100',
  76. 'phptype' => 'string',
  77. 'null' => false,
  78. 'default' => '',
  79. ),
  80. 'blocked' =>
  81. array (
  82. 'dbtype' => 'bit',
  83. 'phptype' => 'boolean',
  84. 'null' => false,
  85. 'default' => 0,
  86. ),
  87. 'blockeduntil' =>
  88. array (
  89. 'dbtype' => 'int',
  90. 'phptype' => 'integer',
  91. 'null' => false,
  92. 'default' => 0,
  93. ),
  94. 'blockedafter' =>
  95. array (
  96. 'dbtype' => 'int',
  97. 'phptype' => 'integer',
  98. 'null' => false,
  99. 'default' => 0,
  100. ),
  101. 'logincount' =>
  102. array (
  103. 'dbtype' => 'int',
  104. 'phptype' => 'integer',
  105. 'null' => false,
  106. 'default' => 0,
  107. ),
  108. 'lastlogin' =>
  109. array (
  110. 'dbtype' => 'int',
  111. 'phptype' => 'integer',
  112. 'null' => false,
  113. 'default' => 0,
  114. ),
  115. 'thislogin' =>
  116. array (
  117. 'dbtype' => 'int',
  118. 'phptype' => 'integer',
  119. 'null' => false,
  120. 'default' => 0,
  121. ),
  122. 'failedlogincount' =>
  123. array (
  124. 'dbtype' => 'int',
  125. 'phptype' => 'integer',
  126. 'null' => false,
  127. 'default' => 0,
  128. ),
  129. 'sessionid' =>
  130. array (
  131. 'dbtype' => 'nvarchar',
  132. 'precision' => '100',
  133. 'phptype' => 'string',
  134. 'null' => false,
  135. 'default' => '',
  136. ),
  137. 'dob' =>
  138. array (
  139. 'dbtype' => 'int',
  140. 'phptype' => 'integer',
  141. 'null' => false,
  142. 'default' => 0,
  143. ),
  144. 'gender' =>
  145. array (
  146. 'dbtype' => 'tinyint',
  147. 'precision' => '1',
  148. 'phptype' => 'integer',
  149. 'null' => false,
  150. 'default' => 0,
  151. ),
  152. 'address' =>
  153. array (
  154. 'dbtype' => 'nvarchar',
  155. 'precision' => 'max',
  156. 'phptype' => 'string',
  157. 'null' => false,
  158. 'default' => '',
  159. ),
  160. 'country' =>
  161. array (
  162. 'dbtype' => 'nvarchar',
  163. 'precision' => '255',
  164. 'phptype' => 'string',
  165. 'null' => false,
  166. 'default' => '',
  167. ),
  168. 'city' =>
  169. array (
  170. 'dbtype' => 'nvarchar',
  171. 'precision' => '255',
  172. 'phptype' => 'string',
  173. 'null' => false,
  174. 'default' => '',
  175. ),
  176. 'state' =>
  177. array (
  178. 'dbtype' => 'nvarchar',
  179. 'precision' => '25',
  180. 'phptype' => 'string',
  181. 'null' => false,
  182. 'default' => '',
  183. ),
  184. 'zip' =>
  185. array (
  186. 'dbtype' => 'nvarchar',
  187. 'precision' => '25',
  188. 'phptype' => 'string',
  189. 'null' => false,
  190. 'default' => '',
  191. ),
  192. 'fax' =>
  193. array (
  194. 'dbtype' => 'nvarchar',
  195. 'precision' => '100',
  196. 'phptype' => 'string',
  197. 'null' => false,
  198. 'default' => '',
  199. ),
  200. 'photo' =>
  201. array (
  202. 'dbtype' => 'nvarchar',
  203. 'precision' => '255',
  204. 'phptype' => 'string',
  205. 'null' => false,
  206. 'default' => '',
  207. ),
  208. 'comment' =>
  209. array (
  210. 'dbtype' => 'nvarchar',
  211. 'precision' => 'max',
  212. 'phptype' => 'string',
  213. 'null' => false,
  214. 'default' => '',
  215. ),
  216. 'website' =>
  217. array (
  218. 'dbtype' => 'nvarchar',
  219. 'precision' => '255',
  220. 'phptype' => 'string',
  221. 'null' => false,
  222. 'default' => '',
  223. ),
  224. 'extended' =>
  225. array (
  226. 'dbtype' => 'nvarchar',
  227. 'precision' => 'max',
  228. 'phptype' => 'json',
  229. 'null' => true,
  230. 'index' => 'fulltext',
  231. 'indexgrp' => 'extended',
  232. ),
  233. ),
  234. 'indexes' =>
  235. array (
  236. 'internalKey' =>
  237. array (
  238. 'alias' => 'internalKey',
  239. 'primary' => false,
  240. 'unique' => true,
  241. 'type' => 'BTREE',
  242. 'columns' =>
  243. array (
  244. 'internalKey' =>
  245. array (
  246. 'length' => '',
  247. 'collation' => 'A',
  248. 'null' => false,
  249. ),
  250. ),
  251. ),
  252. ),
  253. 'aggregates' =>
  254. array (
  255. 'User' =>
  256. array (
  257. 'class' => 'modUser',
  258. 'local' => 'internalKey',
  259. 'foreign' => 'id',
  260. 'cardinality' => 'one',
  261. 'owner' => 'foreign',
  262. ),
  263. ),
  264. );