ey_shop_order.php 5.8 KB

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