ey_users.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <?php
  2. return array (
  3. 'users_id' =>
  4. array (
  5. 'name' => 'users_id',
  6. 'type' => 'int(11) unsigned',
  7. 'notnull' => false,
  8. 'default' => NULL,
  9. 'primary' => true,
  10. 'autoinc' => true,
  11. ),
  12. 'username' =>
  13. array (
  14. 'name' => 'username',
  15. 'type' => 'varchar(30)',
  16. 'notnull' => false,
  17. 'default' => '',
  18. 'primary' => false,
  19. 'autoinc' => false,
  20. ),
  21. 'password' =>
  22. array (
  23. 'name' => 'password',
  24. 'type' => 'varchar(32)',
  25. 'notnull' => false,
  26. 'default' => '',
  27. 'primary' => false,
  28. 'autoinc' => false,
  29. ),
  30. 'nickname' =>
  31. array (
  32. 'name' => 'nickname',
  33. 'type' => 'varchar(50)',
  34. 'notnull' => false,
  35. 'default' => '',
  36. 'primary' => false,
  37. 'autoinc' => false,
  38. ),
  39. 'is_mobile' =>
  40. array (
  41. 'name' => 'is_mobile',
  42. 'type' => 'tinyint(1)',
  43. 'notnull' => false,
  44. 'default' => '0',
  45. 'primary' => false,
  46. 'autoinc' => false,
  47. ),
  48. 'mobile' =>
  49. array (
  50. 'name' => 'mobile',
  51. 'type' => 'varchar(20)',
  52. 'notnull' => false,
  53. 'default' => '',
  54. 'primary' => false,
  55. 'autoinc' => false,
  56. ),
  57. 'is_email' =>
  58. array (
  59. 'name' => 'is_email',
  60. 'type' => 'tinyint(1)',
  61. 'notnull' => false,
  62. 'default' => '0',
  63. 'primary' => false,
  64. 'autoinc' => false,
  65. ),
  66. 'email' =>
  67. array (
  68. 'name' => 'email',
  69. 'type' => 'varchar(60)',
  70. 'notnull' => false,
  71. 'default' => '',
  72. 'primary' => false,
  73. 'autoinc' => false,
  74. ),
  75. 'paypwd' =>
  76. array (
  77. 'name' => 'paypwd',
  78. 'type' => 'varchar(50)',
  79. 'notnull' => false,
  80. 'default' => '',
  81. 'primary' => false,
  82. 'autoinc' => false,
  83. ),
  84. 'users_money' =>
  85. array (
  86. 'name' => 'users_money',
  87. 'type' => 'decimal(10,2)',
  88. 'notnull' => false,
  89. 'default' => '0.00',
  90. 'primary' => false,
  91. 'autoinc' => false,
  92. ),
  93. 'frozen_money' =>
  94. array (
  95. 'name' => 'frozen_money',
  96. 'type' => 'decimal(10,2)',
  97. 'notnull' => false,
  98. 'default' => '0.00',
  99. 'primary' => false,
  100. 'autoinc' => false,
  101. ),
  102. 'reg_time' =>
  103. array (
  104. 'name' => 'reg_time',
  105. 'type' => 'int(11) unsigned',
  106. 'notnull' => false,
  107. 'default' => '0',
  108. 'primary' => false,
  109. 'autoinc' => false,
  110. ),
  111. 'last_login' =>
  112. array (
  113. 'name' => 'last_login',
  114. 'type' => 'int(11) unsigned',
  115. 'notnull' => false,
  116. 'default' => '0',
  117. 'primary' => false,
  118. 'autoinc' => false,
  119. ),
  120. 'last_ip' =>
  121. array (
  122. 'name' => 'last_ip',
  123. 'type' => 'varchar(15)',
  124. 'notnull' => false,
  125. 'default' => '',
  126. 'primary' => false,
  127. 'autoinc' => false,
  128. ),
  129. 'login_count' =>
  130. array (
  131. 'name' => 'login_count',
  132. 'type' => 'int(11)',
  133. 'notnull' => false,
  134. 'default' => '0',
  135. 'primary' => false,
  136. 'autoinc' => false,
  137. ),
  138. 'head_pic' =>
  139. array (
  140. 'name' => 'head_pic',
  141. 'type' => 'varchar(255)',
  142. 'notnull' => false,
  143. 'default' => '',
  144. 'primary' => false,
  145. 'autoinc' => false,
  146. ),
  147. 'province' =>
  148. array (
  149. 'name' => 'province',
  150. 'type' => 'int(6)',
  151. 'notnull' => false,
  152. 'default' => '0',
  153. 'primary' => false,
  154. 'autoinc' => false,
  155. ),
  156. 'city' =>
  157. array (
  158. 'name' => 'city',
  159. 'type' => 'int(6)',
  160. 'notnull' => false,
  161. 'default' => '0',
  162. 'primary' => false,
  163. 'autoinc' => false,
  164. ),
  165. 'district' =>
  166. array (
  167. 'name' => 'district',
  168. 'type' => 'int(6)',
  169. 'notnull' => false,
  170. 'default' => '0',
  171. 'primary' => false,
  172. 'autoinc' => false,
  173. ),
  174. 'level' =>
  175. array (
  176. 'name' => 'level',
  177. 'type' => 'smallint(5)',
  178. 'notnull' => false,
  179. 'default' => '0',
  180. 'primary' => false,
  181. 'autoinc' => false,
  182. ),
  183. 'open_level_time' =>
  184. array (
  185. 'name' => 'open_level_time',
  186. 'type' => 'int(11) unsigned',
  187. 'notnull' => false,
  188. 'default' => '0',
  189. 'primary' => false,
  190. 'autoinc' => false,
  191. ),
  192. 'level_maturity_days' =>
  193. array (
  194. 'name' => 'level_maturity_days',
  195. 'type' => 'varchar(20)',
  196. 'notnull' => false,
  197. 'default' => '',
  198. 'primary' => false,
  199. 'autoinc' => false,
  200. ),
  201. 'discount' =>
  202. array (
  203. 'name' => 'discount',
  204. 'type' => 'decimal(10,2)',
  205. 'notnull' => false,
  206. 'default' => '1.00',
  207. 'primary' => false,
  208. 'autoinc' => false,
  209. ),
  210. 'total_amount' =>
  211. array (
  212. 'name' => 'total_amount',
  213. 'type' => 'decimal(10,2)',
  214. 'notnull' => false,
  215. 'default' => '0.00',
  216. 'primary' => false,
  217. 'autoinc' => false,
  218. ),
  219. 'is_activation' =>
  220. array (
  221. 'name' => 'is_activation',
  222. 'type' => 'tinyint(1)',
  223. 'notnull' => false,
  224. 'default' => '1',
  225. 'primary' => false,
  226. 'autoinc' => false,
  227. ),
  228. 'register_place' =>
  229. array (
  230. 'name' => 'register_place',
  231. 'type' => 'tinyint(1)',
  232. 'notnull' => false,
  233. 'default' => '2',
  234. 'primary' => false,
  235. 'autoinc' => false,
  236. ),
  237. 'open_id' =>
  238. array (
  239. 'name' => 'open_id',
  240. 'type' => 'varchar(50)',
  241. 'notnull' => false,
  242. 'default' => '',
  243. 'primary' => false,
  244. 'autoinc' => false,
  245. ),
  246. 'thirdparty' =>
  247. array (
  248. 'name' => 'thirdparty',
  249. 'type' => 'tinyint(1)',
  250. 'notnull' => false,
  251. 'default' => '0',
  252. 'primary' => false,
  253. 'autoinc' => false,
  254. ),
  255. 'is_lock' =>
  256. array (
  257. 'name' => 'is_lock',
  258. 'type' => 'tinyint(1)',
  259. 'notnull' => false,
  260. 'default' => '0',
  261. 'primary' => false,
  262. 'autoinc' => false,
  263. ),
  264. 'admin_id' =>
  265. array (
  266. 'name' => 'admin_id',
  267. 'type' => 'int(10)',
  268. 'notnull' => false,
  269. 'default' => '0',
  270. 'primary' => false,
  271. 'autoinc' => false,
  272. ),
  273. 'lang' =>
  274. array (
  275. 'name' => 'lang',
  276. 'type' => 'varchar(20)',
  277. 'notnull' => false,
  278. 'default' => 'cn',
  279. 'primary' => false,
  280. 'autoinc' => false,
  281. ),
  282. 'is_del' =>
  283. array (
  284. 'name' => 'is_del',
  285. 'type' => 'tinyint(1)',
  286. 'notnull' => false,
  287. 'default' => '0',
  288. 'primary' => false,
  289. 'autoinc' => false,
  290. ),
  291. 'update_time' =>
  292. array (
  293. 'name' => 'update_time',
  294. 'type' => 'int(11) unsigned',
  295. 'notnull' => false,
  296. 'default' => '0',
  297. 'primary' => false,
  298. 'autoinc' => false,
  299. ),
  300. );