moduser.map.inc.php 5.9 KB

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