moduserprofile.map.inc.php 5.5 KB

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