moduser.map.inc.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modUser']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'users',
  10. 'extends' => 'modPrincipal',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'username' => '',
  18. 'password' => '',
  19. 'cachepwd' => '',
  20. 'class_key' => 'modUser',
  21. 'active' => 1,
  22. 'remote_key' => NULL,
  23. 'remote_data' => NULL,
  24. 'hash_class' => 'hashing.modNative',
  25. 'salt' => '',
  26. 'primary_group' => 0,
  27. 'session_stale' => NULL,
  28. 'sudo' => 0,
  29. 'createdon' => 0,
  30. ),
  31. 'fieldMeta' =>
  32. array (
  33. 'username' =>
  34. array (
  35. 'dbtype' => 'varchar',
  36. 'precision' => '100',
  37. 'phptype' => 'string',
  38. 'null' => false,
  39. 'default' => '',
  40. 'index' => 'unique',
  41. ),
  42. 'password' =>
  43. array (
  44. 'dbtype' => 'varchar',
  45. 'precision' => '255',
  46. 'phptype' => 'string',
  47. 'null' => false,
  48. 'default' => '',
  49. ),
  50. 'cachepwd' =>
  51. array (
  52. 'dbtype' => 'varchar',
  53. 'precision' => '255',
  54. 'phptype' => 'string',
  55. 'null' => false,
  56. 'default' => '',
  57. ),
  58. 'class_key' =>
  59. array (
  60. 'dbtype' => 'varchar',
  61. 'precision' => '100',
  62. 'phptype' => 'string',
  63. 'null' => false,
  64. 'default' => 'modUser',
  65. 'index' => 'index',
  66. ),
  67. 'active' =>
  68. array (
  69. 'dbtype' => 'tinyint',
  70. 'precision' => '1',
  71. 'phptype' => 'boolean',
  72. 'attributes' => 'unsigned',
  73. 'null' => false,
  74. 'default' => 1,
  75. ),
  76. 'remote_key' =>
  77. array (
  78. 'dbtype' => 'varchar',
  79. 'precision' => '191',
  80. 'phptype' => 'string',
  81. 'null' => true,
  82. 'index' => 'index',
  83. ),
  84. 'remote_data' =>
  85. array (
  86. 'dbtype' => 'text',
  87. 'phptype' => 'json',
  88. 'null' => true,
  89. ),
  90. 'hash_class' =>
  91. array (
  92. 'dbtype' => 'varchar',
  93. 'precision' => '100',
  94. 'phptype' => 'string',
  95. 'null' => false,
  96. 'default' => 'hashing.modNative',
  97. ),
  98. 'salt' =>
  99. array (
  100. 'dbtype' => 'varchar',
  101. 'precision' => '100',
  102. 'phptype' => 'string',
  103. 'null' => false,
  104. 'default' => '',
  105. ),
  106. 'primary_group' =>
  107. array (
  108. 'dbtype' => 'int',
  109. 'precision' => '10',
  110. 'phptype' => 'integer',
  111. 'attributes' => 'unsigned',
  112. 'null' => false,
  113. 'default' => 0,
  114. 'index' => 'index',
  115. ),
  116. 'session_stale' =>
  117. array (
  118. 'dbtype' => 'text',
  119. 'phptype' => 'array',
  120. 'null' => true,
  121. ),
  122. 'sudo' =>
  123. array (
  124. 'dbtype' => 'tinyint',
  125. 'precision' => '1',
  126. 'phptype' => 'boolean',
  127. 'attributes' => 'unsigned',
  128. 'null' => false,
  129. 'default' => 0,
  130. ),
  131. 'createdon' =>
  132. array (
  133. 'dbtype' => 'int',
  134. 'precision' => '20',
  135. 'phptype' => 'timestamp',
  136. 'null' => false,
  137. 'default' => 0,
  138. ),
  139. ),
  140. 'indexes' =>
  141. array (
  142. 'username' =>
  143. array (
  144. 'alias' => 'username',
  145. 'primary' => false,
  146. 'unique' => true,
  147. 'type' => 'BTREE',
  148. 'columns' =>
  149. array (
  150. 'username' =>
  151. array (
  152. 'length' => '',
  153. 'collation' => 'A',
  154. 'null' => false,
  155. ),
  156. ),
  157. ),
  158. 'class_key' =>
  159. array (
  160. 'alias' => 'class_key',
  161. 'primary' => false,
  162. 'unique' => false,
  163. 'type' => 'BTREE',
  164. 'columns' =>
  165. array (
  166. 'class_key' =>
  167. array (
  168. 'length' => '',
  169. 'collation' => 'A',
  170. 'null' => false,
  171. ),
  172. ),
  173. ),
  174. 'remote_key' =>
  175. array (
  176. 'alias' => 'remote_key',
  177. 'primary' => false,
  178. 'unique' => false,
  179. 'type' => 'BTREE',
  180. 'columns' =>
  181. array (
  182. 'remote_key' =>
  183. array (
  184. 'length' => '',
  185. 'collation' => 'A',
  186. 'null' => false,
  187. ),
  188. ),
  189. ),
  190. 'primary_group' =>
  191. array (
  192. 'alias' => 'primary_group',
  193. 'primary' => false,
  194. 'unique' => false,
  195. 'type' => 'BTREE',
  196. 'columns' =>
  197. array (
  198. 'primary_group' =>
  199. array (
  200. 'length' => '',
  201. 'collation' => 'A',
  202. 'null' => false,
  203. ),
  204. ),
  205. ),
  206. ),
  207. 'composites' =>
  208. array (
  209. 'Profile' =>
  210. array (
  211. 'class' => 'modUserProfile',
  212. 'local' => 'id',
  213. 'foreign' => 'internalKey',
  214. 'cardinality' => 'one',
  215. 'owner' => 'local',
  216. ),
  217. 'UserSettings' =>
  218. array (
  219. 'class' => 'modUserSetting',
  220. 'local' => 'id',
  221. 'foreign' => 'user',
  222. 'cardinality' => 'many',
  223. 'owner' => 'local',
  224. ),
  225. 'UserGroupMembers' =>
  226. array (
  227. 'class' => 'modUserGroupMember',
  228. 'local' => 'id',
  229. 'foreign' => 'member',
  230. 'cardinality' => 'many',
  231. 'owner' => 'local',
  232. ),
  233. 'ActiveUsers' =>
  234. array (
  235. 'class' => 'modActiveUser',
  236. 'local' => 'id',
  237. 'foreign' => 'internalKey',
  238. 'cardinality' => 'many',
  239. 'owner' => 'local',
  240. ),
  241. ),
  242. 'aggregates' =>
  243. array (
  244. 'CreatedResources' =>
  245. array (
  246. 'class' => 'modResource',
  247. 'local' => 'id',
  248. 'foreign' => 'createdby',
  249. 'cardinality' => 'many',
  250. 'owner' => 'local',
  251. ),
  252. 'EditedResources' =>
  253. array (
  254. 'class' => 'modResource',
  255. 'local' => 'id',
  256. 'foreign' => 'editedby',
  257. 'cardinality' => 'many',
  258. 'owner' => 'local',
  259. ),
  260. 'DeletedResources' =>
  261. array (
  262. 'class' => 'modResource',
  263. 'local' => 'id',
  264. 'foreign' => 'deletedby',
  265. 'cardinality' => 'many',
  266. 'owner' => 'local',
  267. ),
  268. 'PublishedResources' =>
  269. array (
  270. 'class' => 'modResource',
  271. 'local' => 'id',
  272. 'foreign' => 'publishedby',
  273. 'cardinality' => 'many',
  274. 'owner' => 'local',
  275. ),
  276. 'SentMessages' =>
  277. array (
  278. 'class' => 'modUserMessage',
  279. 'local' => 'id',
  280. 'foreign' => 'sender',
  281. 'cardinality' => 'many',
  282. 'owner' => 'local',
  283. ),
  284. 'ReceivedMessages' =>
  285. array (
  286. 'class' => 'modUserMessage',
  287. 'local' => 'id',
  288. 'foreign' => 'recipient',
  289. 'cardinality' => 'many',
  290. 'owner' => 'local',
  291. ),
  292. 'PrimaryGroup' =>
  293. array (
  294. 'class' => 'modUserGroup',
  295. 'local' => 'primary_group',
  296. 'foreign' => 'id',
  297. 'cardinality' => 'one',
  298. 'owner' => 'foreign',
  299. ),
  300. ),
  301. );