fields.php 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079
  1. <?php
  2. return [
  3. 'address' => [
  4. 'type' => 'varchar',
  5. 'length' => 255,
  6. 'default' => null,
  7. 'is_null' => 1,
  8. 'comment' => '详细地址',
  9. ],
  10. 'address_id' => [
  11. 'type' => 'int',
  12. 'length' => 10,
  13. 'default' => '0',
  14. 'is_null' => 0,
  15. 'comment' => '地址ID',
  16. ],
  17. 'address_name' => [
  18. 'type' => 'varchar',
  19. 'length' => 255,
  20. 'collate' => 'utf8mb4_general_ci',
  21. 'is_null' => 0,
  22. 'comment' => '地址名称',
  23. ],
  24. 'admin_id' => [
  25. 'type' => 'int',
  26. 'length' => 10,
  27. 'default' => '0',
  28. 'is_null' => 0,
  29. 'comment' => '管理员ID',
  30. ],
  31. 'admin_ids' => [
  32. 'type' => 'varchar',
  33. 'length' => 100,
  34. 'comment' => '管理员ID(多选)',
  35. ],
  36. 'after' => [
  37. 'type' => 'decimal',
  38. 'length' => '10,2',
  39. 'is_null' => 0,
  40. 'comment' => '变动后',
  41. ],
  42. 'amount' => [
  43. 'type' => 'decimal',
  44. 'length' => '10,2',
  45. 'is_null' => 0,
  46. 'comment' => '商品结算金额',
  47. ],
  48. 'area_id' => [
  49. 'type' => 'int',
  50. 'length' => 11,
  51. 'default' => '0,' . "\n",
  52. 'is_null' => 0,
  53. 'comment' => '详细地址',
  54. ],
  55. 'avatar' => [
  56. 'type' => 'varchar',
  57. 'length' => 255,
  58. 'is_null' => 0,
  59. 'comment' => '头像',
  60. ],
  61. 'bank_name' => [
  62. 'type' => 'varchar',
  63. 'length' => 191,
  64. 'default' => null,
  65. 'is_null' => 1,
  66. 'comment' => '银行名',
  67. ],
  68. 'before' => [
  69. 'type' => 'decimal',
  70. 'length' => '10,2',
  71. 'is_null' => 0,
  72. 'comment' => '变动前',
  73. ],
  74. 'bio' => [
  75. 'type' => 'varchar',
  76. 'length' => 100,
  77. 'collate' => 'utf8mb4_general_ci',
  78. 'default' => '',
  79. 'is_null' => 1,
  80. 'comment' => '店铺简介',
  81. ],
  82. 'brand_id' => [
  83. 'type' => 'int',
  84. 'length' => 10,
  85. 'default' => '0',
  86. 'is_null' => 1,
  87. 'unsigned' => 1,
  88. 'comment' => '品牌ID',
  89. ],
  90. 'buyer_id' => [
  91. 'type' => 'int',
  92. 'length' => 11,
  93. 'is_null' => 0,
  94. 'comment' => '买家',
  95. ],
  96. 'card_no' => [
  97. 'type' => 'varchar',
  98. 'length' => 191,
  99. 'default' => null,
  100. 'is_null' => 1,
  101. 'comment' => '卡号',
  102. ],
  103. 'category_id' => [
  104. 'type' => 'int',
  105. 'length' => 10,
  106. 'default' => '0',
  107. 'is_null' => 0,
  108. 'unsigned' => 1,
  109. 'comment' => '分类ID',
  110. ],
  111. 'category_ids' => [
  112. 'type' => 'varchar',
  113. 'length' => 100,
  114. 'comment' => '分类ID(多选)',
  115. ],
  116. 'city' => [
  117. 'type' => 'varchar',
  118. 'length' => 50,
  119. 'default' => null,
  120. 'is_null' => 1,
  121. 'comment' => '市',
  122. ],
  123. 'code' => [
  124. 'type' => 'varchar',
  125. 'length' => 60,
  126. 'default' => null,
  127. 'is_null' => 1,
  128. 'comment' => '编码',
  129. ],
  130. 'color' => [
  131. 'type' => 'varchar',
  132. 'length' => 10,
  133. 'collate' => 'utf8mb4_general_ci',
  134. 'default' => '#dbb29d',
  135. 'is_null' => 0,
  136. 'comment' => '用户背景色',
  137. ],
  138. 'comment' => [
  139. 'type' => 'int',
  140. 'length' => 10,
  141. 'default' => '0',
  142. 'is_null' => 0,
  143. 'unsigned' => 1,
  144. 'comment' => '评论',
  145. ],
  146. 'comment_status' => [
  147. 'type' => 'tinyint',
  148. 'length' => 2,
  149. 'default' => '0',
  150. 'is_null' => 0,
  151. 'comment' => '评论状态',
  152. ],
  153. 'comment_id' => [
  154. 'type' => 'int',
  155. 'length' => 10,
  156. 'default' => null,
  157. 'is_null' => 1,
  158. 'comment' => '评论ID',
  159. ],
  160. 'confirmtime' => [
  161. 'type' => 'bigint',
  162. 'length' => 16,
  163. 'default' => null,
  164. 'is_null' => 1,
  165. 'comment' => '确认时间',
  166. ],
  167. 'content' => [
  168. 'type' => 'text',
  169. 'is_null' => 1,
  170. 'comment' => '内容',
  171. ],
  172. 'country' => [
  173. 'type' => 'varchar',
  174. 'length' => 50,
  175. 'default' => null,
  176. 'is_null' => 1,
  177. 'comment' => '国家',
  178. ],
  179. 'coupon_id' => [
  180. 'type' => 'int',
  181. 'length' => 10,
  182. 'default' => '0',
  183. 'is_null' => 0,
  184. 'comment' => '原始优惠券ID',
  185. ],
  186. 'coupon_no' => [
  187. 'type' => 'varchar',
  188. 'length' => 16,
  189. 'collate' => 'utf8mb4_general_ci',
  190. 'default' => '',
  191. 'is_null' => 0,
  192. 'comment' => '优惠券编码',
  193. ],
  194. 'coupon_price' => [
  195. 'type' => 'decimal',
  196. 'length' => '10,2',
  197. 'default' => '0.00',
  198. 'is_null' => 0,
  199. 'unsigned' => 1,
  200. 'comment' => '优惠券金额',
  201. ],
  202. 'cover' => [
  203. 'type' => 'text',
  204. 'collate' => 'utf8mb4_general_ci',
  205. 'is_null' => 1,
  206. 'comment' => '封面图',
  207. ],
  208. 'createtime' => [
  209. 'type' => 'bigint',
  210. 'length' => 16,
  211. 'default' => null,
  212. 'is_null' => 1,
  213. 'comment' => '创建时间',
  214. ],
  215. 'data' => [
  216. 'type' => 'text',
  217. 'is_null' => 0,
  218. 'comment' => '数据',
  219. ],
  220. 'date' => [
  221. 'type' => 'varchar',
  222. 'length' => 30,
  223. 'default' => null,
  224. 'is_null' => 1,
  225. 'comment' => '签到日期',
  226. ],
  227. 'dealtime' => [
  228. 'type' => 'bigint',
  229. 'length' => 16,
  230. 'default' => null,
  231. 'is_null' => 1,
  232. 'comment' => '成交时间(评论时间)',
  233. ],
  234. 'default' => [
  235. 'type' => 'enum',
  236. 'length' => [
  237. '0',
  238. '1',
  239. ],
  240. 'collate' => 'utf8mb4_general_ci',
  241. 'default' => '0',
  242. 'is_null' => 0,
  243. 'comment' => '默认:1=是,0=否',
  244. ],
  245. 'deletetime' => [
  246. 'type' => 'bigint',
  247. 'length' => 16,
  248. 'default' => null,
  249. 'is_null' => 1,
  250. 'comment' => '删除时间',
  251. ],
  252. 'description' => [
  253. 'type' => 'varchar',
  254. 'length' => 255,
  255. 'default' => null,
  256. 'is_null' => 1,
  257. 'comment' => '描述',
  258. ],
  259. 'discount' => [
  260. 'type' => 'decimal',
  261. 'length' => 2,
  262. 'default' => '0.0',
  263. 'is_null' => 1,
  264. 'unsigned' => 1,
  265. 'comment' => '折扣率',
  266. ],
  267. 'discount_price' => [
  268. 'type' => 'decimal',
  269. 'length' => '10,2',
  270. 'default' => '0.00',
  271. 'is_null' => 0,
  272. 'unsigned' => 1,
  273. 'comment' => '优惠价格',
  274. ],
  275. 'edu' => [
  276. 'type' => 'enum',
  277. 'length' => ['0', '1', '2', '3', '4', '5', '6'],
  278. 'is_null' => 1,
  279. 'comment' => '学历:0=小学文化,1=初中,2=高中,3=大专,4=本科,5=硕士,6=博士',
  280. ],
  281. 'enddate' => [
  282. 'type' => 'date',
  283. 'is_null' => 1,
  284. 'comment' => '结束日期',
  285. ],
  286. 'endtime' => [
  287. 'type' => 'bigint',
  288. 'length' => 16,
  289. 'default' => null,
  290. 'is_null' => 1,
  291. 'comment' => '结束时间',
  292. ],
  293. 'expire_day' => [
  294. 'type' => 'int',
  295. 'length' => 11,
  296. 'default' => '0',
  297. 'is_null' => 0,
  298. 'comment' => 'X天过期',
  299. ],
  300. 'expire_in' => [
  301. 'type' => 'int',
  302. 'length' => 11,
  303. 'default' => null,
  304. 'is_null' => 1,
  305. 'comment' => '过期周期(s)',
  306. ],
  307. 'expire_time' => [
  308. 'type' => 'bigint',
  309. 'length' => 16,
  310. 'default' => '0',
  311. 'is_null' => 0,
  312. 'comment' => '截至日期',
  313. ],
  314. 'flag' => [
  315. 'type' => 'set',
  316. 'length' => [
  317. 'hot',
  318. 'new',
  319. 'recommend',
  320. ],
  321. 'collate' => 'utf8mb4_general_ci',
  322. 'default' => '',
  323. 'is_null' => 1,
  324. 'comment' => '标志',
  325. ],
  326. 'follow' => [
  327. 'type' => 'int',
  328. 'length' => 10,
  329. 'default' => '0',
  330. 'is_null' => 1,
  331. 'comment' => '关注',
  332. ],
  333. 'goods_amount' => [
  334. 'type' => 'decimal',
  335. 'length' => '10,2',
  336. 'default' => '0.00',
  337. 'is_null' => 0,
  338. 'comment' => '商品总价',
  339. ],
  340. 'goods_id' => [
  341. 'type' => 'int',
  342. 'length' => 11,
  343. 'is_null' => 0,
  344. 'comment' => '所属产品',
  345. ],
  346. 'goods_ids' => [
  347. 'type' => 'varchar',
  348. 'length' => 1200,
  349. 'default' => null,
  350. 'is_null' => 1,
  351. 'comment' => '商品组',
  352. ],
  353. 'goods_image' => [
  354. 'type' => 'varchar',
  355. 'length' => 255,
  356. 'default' => null,
  357. 'is_null' => 1,
  358. 'comment' => '商品图片',
  359. ],
  360. 'goods_original_amount' => [
  361. 'type' => 'decimal',
  362. 'length' => '10,2',
  363. 'default' => '0.00',
  364. 'is_null' => 0,
  365. 'comment' => '商品原价',
  366. ],
  367. 'goods_original_price' => [
  368. 'type' => 'decimal',
  369. 'length' => '10,2',
  370. 'is_null' => 0,
  371. 'comment' => '商品原价',
  372. ],
  373. 'goods_price' => [
  374. 'type' => 'decimal',
  375. 'length' => '10,2',
  376. 'is_null' => 0,
  377. 'comment' => '商品价格',
  378. ],
  379. 'goods_sku_id' => [
  380. 'type' => 'int',
  381. 'length' => 10,
  382. 'default' => '0',
  383. 'is_null' => 0,
  384. 'unsigned' => 1,
  385. 'comment' => '订单ID',
  386. ],
  387. 'goods_sku_ids' => [
  388. 'type' => 'varchar',
  389. 'length' => 255,
  390. 'default' => 'NULL,' . "\n",
  391. 'is_null' => 1,
  392. 'comment' => '排序',
  393. ],
  394. 'goods_sku_price_id' => [
  395. 'type' => 'int',
  396. 'length' => 11,
  397. 'default' => '0',
  398. 'is_null' => 0,
  399. 'comment' => '商品规格',
  400. ],
  401. 'goods_sku_sn' => [
  402. 'type' => 'varchar',
  403. 'length' => 100,
  404. 'collate' => 'utf8mb4_general_ci',
  405. 'default' => '',
  406. 'is_null' => 0,
  407. 'comment' => '商品编码',
  408. ],
  409. 'goods_sku_text' => [
  410. 'type' => 'varchar',
  411. 'length' => 255,
  412. 'default' => null,
  413. 'is_null' => 1,
  414. 'comment' => '中文规格',
  415. ],
  416. 'goods_title' => [
  417. 'type' => 'varchar',
  418. 'length' => 255,
  419. 'default' => null,
  420. 'is_null' => 1,
  421. 'comment' => '商品名称',
  422. ],
  423. 'group' => [
  424. 'type' => 'varchar',
  425. 'length' => 50,
  426. 'default' => null,
  427. 'is_null' => 1,
  428. 'comment' => '分组',
  429. ],
  430. 'height' => [
  431. 'type' => 'int',
  432. 'length' => 5,
  433. 'default' => '0',
  434. 'is_null' => 1,
  435. 'unsigned' => 1,
  436. 'comment' => '高度',
  437. ],
  438. 'image' => [
  439. 'type' => 'varchar',
  440. 'length' => 100,
  441. 'collate' => 'utf8mb4_general_ci',
  442. 'default' => '',
  443. 'is_null' => 0,
  444. 'comment' => '图片',
  445. ],
  446. 'images' => [
  447. 'type' => 'varchar',
  448. 'length' => 512,
  449. 'default' => null,
  450. 'is_null' => 1,
  451. 'comment' => '图片',
  452. ],
  453. 'invalid' => [
  454. 'type' => 'int',
  455. 'length' => 10,
  456. 'default' => '0',
  457. 'is_null' => 1,
  458. 'unsigned' => 1,
  459. 'comment' => '是否失效',
  460. ],
  461. 'ip' => [
  462. 'type' => 'varchar',
  463. 'length' => 20,
  464. 'default' => null,
  465. 'is_null' => 1,
  466. 'comment' => '客户端IP',
  467. ],
  468. 'is_default' => [
  469. 'type' => 'enum',
  470. 'length' => [
  471. '0',
  472. '1',
  473. ],
  474. 'default' => '0',
  475. 'is_null' => 1,
  476. 'comment' => '默认',
  477. ],
  478. 'is_check' => [
  479. 'type' => 'int',
  480. 'length' => 1,
  481. 'default' => '0',
  482. 'is_null' => 1,
  483. 'comment' => '监控状态',
  484. ],
  485. 'is_nav' => [
  486. 'type' => 'tinyint',
  487. 'length' => 1,
  488. 'default' => '1',
  489. 'is_null' => 0,
  490. 'comment' => '是否导航显示',
  491. ],
  492. 'keywords' => [
  493. 'type' => 'varchar',
  494. 'length' => 100,
  495. 'collate' => 'utf8mb4_general_ci',
  496. 'default' => '',
  497. 'is_null' => 0,
  498. 'comment' => '关键字',
  499. ],
  500. 'lat' => [
  501. 'type' => 'decimal',
  502. 'length' => '10,2',
  503. 'default' => null,
  504. 'is_null' => 1,
  505. 'comment' => '纬度',
  506. ],
  507. 'likes' => [
  508. 'type' => 'int',
  509. 'length' => 10,
  510. 'default' => '0',
  511. 'is_null' => 0,
  512. 'unsigned' => 1,
  513. 'comment' => '收藏',
  514. ],
  515. 'logo' => [
  516. 'type' => 'varchar',
  517. 'length' => 500,
  518. 'collate' => 'utf8mb4_general_ci',
  519. 'default' => null,
  520. 'is_null' => 1,
  521. 'comment' => 'Logo',
  522. ],
  523. 'lng' => [
  524. 'type' => 'decimal',
  525. 'length' => '10,2',
  526. 'default' => null,
  527. 'is_null' => 1,
  528. 'comment' => '经度',
  529. ],
  530. 'memo' => [
  531. 'type' => 'varchar',
  532. 'length' => 255,
  533. 'default' => null,
  534. 'is_null' => 1,
  535. 'comment' => '备注',
  536. ],
  537. 'message' => [
  538. 'type' => 'text',
  539. 'is_null' => 1,
  540. 'comment' => '消息',
  541. ],
  542. 'mobile' => [
  543. 'type' => 'varchar',
  544. 'length' => 20,
  545. 'is_null' => 0,
  546. 'comment' => '手机号',
  547. ],
  548. 'money' => [
  549. 'type' => 'decimal',
  550. 'length' => '10,2',
  551. 'is_null' => 0,
  552. 'comment' => '金额',
  553. ],
  554. 'name' => [
  555. 'type' => 'varchar',
  556. 'length' => 50,
  557. 'default' => null,
  558. 'is_null' => 0,
  559. 'comment' => '名称',
  560. ],
  561. 'nickname' => [
  562. 'type' => 'varchar',
  563. 'length' => 255,
  564. 'default' => null,
  565. 'is_null' => 1,
  566. 'comment' => '昵称',
  567. ],
  568. 'notice' => [
  569. 'type' => 'text',
  570. 'collate' => 'utf8mb4_general_ci',
  571. 'is_null' => 1,
  572. 'comment' => '通知内容',
  573. ],
  574. 'num' => [
  575. 'type' => 'int',
  576. 'length' => 11,
  577. 'is_null' => 0,
  578. 'comment' => '数量',
  579. ],
  580. 'order_goods_id' => [
  581. 'type' => 'int',
  582. 'length' => 10,
  583. 'default' => '0',
  584. 'is_null' => 0,
  585. 'unsigned' => 1,
  586. 'comment' => '订单商品ID',
  587. ],
  588. 'order_id' => [
  589. 'type' => 'int',
  590. 'length' => 11,
  591. 'default' => '0',
  592. 'is_null' => 0,
  593. 'comment' => '订单',
  594. ],
  595. 'order_money' => [
  596. 'type' => 'decimal',
  597. 'length' => '10,2',
  598. 'default' => '0.00',
  599. 'is_null' => 0,
  600. 'comment' => '订单金额',
  601. ],
  602. 'order_no' => [
  603. 'type' => 'varchar',
  604. 'length' => 18,
  605. 'collate' => 'utf8mb4_general_ci',
  606. 'is_null' => 0,
  607. 'comment' => '订单号',
  608. ],
  609. 'order_price' => [
  610. 'type' => 'decimal',
  611. 'length' => '10,2',
  612. 'default' => '0.00',
  613. 'is_null' => 0,
  614. 'unsigned' => 1,
  615. 'comment' => '订单金额',
  616. ],
  617. 'order_sn' => [
  618. 'type' => 'varchar',
  619. 'length' => 60,
  620. 'is_null' => 0,
  621. 'comment' => '订单号',
  622. ],
  623. 'order_status' => [
  624. 'type' => 'tinyint',
  625. 'length' => 2,
  626. 'default' => '0',
  627. 'is_null' => 0,
  628. 'comment' => '订单状态',
  629. ],
  630. 'origin_price' => [
  631. 'type' => 'decimal',
  632. 'length' => '10,2',
  633. 'is_null' => 0,
  634. 'comment' => '原价',
  635. ],
  636. 'out_trade_no' => [
  637. 'type' => 'varchar',
  638. 'length' => 32,
  639. 'collate' => 'utf8mb4_general_ci',
  640. 'is_null' => 0,
  641. 'comment' => '交易号',
  642. ],
  643. 'pay_fee' => [
  644. 'type' => 'decimal',
  645. 'length' => '10,2',
  646. 'default' => '0.00',
  647. 'is_null' => 0,
  648. 'comment' => '实际支付金额',
  649. ],
  650. 'pay_id' => [
  651. 'type' => 'text',
  652. 'collate' => 'utf8mb4_general_ci',
  653. 'is_null' => 0,
  654. 'comment' => '支付订单号',
  655. ],
  656. 'pay_no' => [
  657. 'type' => 'varchar',
  658. 'length' => 32,
  659. 'collate' => 'utf8mb4_general_ci',
  660. 'is_null' => 0,
  661. 'comment' => '交易号',
  662. ],
  663. 'pay_price' => [
  664. 'type' => 'decimal',
  665. 'length' => '10,2',
  666. 'is_null' => 0,
  667. 'comment' => '支付金额',
  668. ],
  669. 'pay_state' => [
  670. 'type' => 'enum',
  671. 'length' => [
  672. '0',
  673. '1',
  674. '2',
  675. ],
  676. 'collate' => 'utf8mb4_general_ci',
  677. 'default' => '0',
  678. 'is_null' => 0,
  679. 'comment' => '支付状态',
  680. ],
  681. 'pay_type' => [
  682. 'type' => 'enum',
  683. 'length' => [
  684. 'wechat',
  685. 'alipay',
  686. 'wallet',
  687. 'score',
  688. ],
  689. 'is_null' => 1,
  690. 'comment' => '支付方式:wechat=微信支付,alipay=支付宝,wallet=钱包支付,score=积分支付',
  691. ],
  692. 'payment_json' => [
  693. 'type' => 'varchar',
  694. 'length' => 2500,
  695. 'default' => null,
  696. 'is_null' => 1,
  697. 'comment' => '交易原始数据',
  698. ],
  699. 'pay_time' => [
  700. 'type' => 'bigint',
  701. 'length' => 16,
  702. 'default' => null,
  703. 'is_null' => 1,
  704. 'comment' => '支付时间',
  705. ],
  706. 'pid' => [
  707. 'type' => 'int',
  708. 'length' => 11,
  709. 'default' => '0',
  710. 'is_null' => 1,
  711. 'comment' => '上级',
  712. ],
  713. 'platform' => [
  714. 'type' => 'set',
  715. 'length' => [
  716. 'H5',
  717. 'wxOfficialAccount',
  718. 'wxMiniProgram',
  719. 'App',
  720. 'preview',
  721. ],
  722. 'is_null' => 1,
  723. 'comment' => '适用平台:H5=H5,wxOfficialAccount=微信公众号网页,wxMiniProgram=微信小程序,App=App,preview=预览',
  724. ],
  725. 'price' => [
  726. 'type' => 'decimal',
  727. 'length' => '10,2',
  728. 'default' => '0.00',
  729. 'is_null' => 0,
  730. 'comment' => '价格',
  731. ],
  732. 'province' => [
  733. 'type' => 'varchar',
  734. 'length' => 50,
  735. 'default' => null,
  736. 'is_null' => 1,
  737. 'comment' => '省',
  738. ],
  739. 'real_name' => [
  740. 'type' => 'varchar',
  741. 'length' => 191,
  742. 'default' => null,
  743. 'is_null' => 1,
  744. 'comment' => '真实姓名',
  745. ],
  746. 'reason' => [
  747. 'type' => 'varchar',
  748. 'length' => 255,
  749. 'default' => null,
  750. 'is_null' => 1,
  751. 'comment' => '售后原因',
  752. ],
  753. 'remark' => [
  754. 'type' => 'varchar',
  755. 'length' => 255,
  756. 'default' => null,
  757. 'is_null' => 1,
  758. 'comment' => '备注',
  759. ],
  760. 'score' => [
  761. 'type' => 'float',
  762. 'length' => 3,
  763. 'default' => '0.0',
  764. 'is_null' => 1,
  765. 'unsigned' => 1,
  766. 'comment' => '积分',
  767. ],
  768. 'score_amount' => [
  769. 'type' => 'int',
  770. 'length' => 11,
  771. 'default' => '0',
  772. 'is_null' => 0,
  773. 'comment' => '积分总数',
  774. ],
  775. 'score_fee' => [
  776. 'type' => 'int',
  777. 'length' => 11,
  778. 'default' => '0',
  779. 'is_null' => 0,
  780. 'comment' => '积分支付数',
  781. ],
  782. 'secret' => [
  783. 'type' => 'varchar',
  784. 'length' => 255,
  785. 'collate' => 'utf8mb4_general_ci',
  786. 'default' => null,
  787. 'is_null' => 1,
  788. 'comment' => 'Secret',
  789. ],
  790. 'sex' => [
  791. 'type' => 'enum',
  792. 'length' => ['0', '1'],
  793. 'is_null' => 1,
  794. 'comment' => '性别:0=男,1=女',
  795. ],
  796. 'shop_id' => [
  797. 'type' => 'int',
  798. 'length' => 10,
  799. 'default' => '0',
  800. 'is_null' => 0,
  801. 'comment' => '店铺ID',
  802. ],
  803. 'shop_name' => [
  804. 'type' => 'varchar',
  805. 'length' => 32,
  806. 'collate' => 'utf8mb4_general_ci',
  807. 'default' => '',
  808. 'is_null' => 0,
  809. 'comment' => '店铺名称',
  810. ],
  811. 'sku_price_id' => [
  812. 'type' => 'int',
  813. 'length' => 11,
  814. 'default' => '0',
  815. 'is_null' => 0,
  816. 'comment' => '规格',
  817. ],
  818. 'sn' => [
  819. 'type' => 'varchar',
  820. 'length' => 50,
  821. 'default' => null,
  822. 'is_null' => 1,
  823. 'comment' => '货号',
  824. ],
  825. 'spec' => [
  826. 'type' => 'enum',
  827. 'length' => [
  828. 'single',
  829. 'multi',
  830. ],
  831. 'collate' => 'utf8mb4_general_ci',
  832. 'default' => 'single',
  833. 'is_null' => 0,
  834. 'comment' => '商品规格:single=单规格,multi=多规格',
  835. ],
  836. 'startdate' => [
  837. 'type' => 'date',
  838. 'is_null' => 1,
  839. 'comment' => '开始日期',
  840. ],
  841. 'starttime' => [
  842. 'type' => 'bigint',
  843. 'length' => 16,
  844. 'default' => null,
  845. 'is_null' => 1,
  846. 'comment' => '开始时间',
  847. ],
  848. 'state' => [
  849. 'type' => 'enum',
  850. 'length' => [
  851. '0',
  852. '1',
  853. ],
  854. 'collate' => 'utf8mb4_general_ci',
  855. 'default' => '1',
  856. 'is_null' => 0,
  857. 'comment' => '状态:0=隐藏,1=显示',
  858. ],
  859. 'status' => [
  860. 'type' => 'varchar',
  861. 'length' => 20,
  862. 'default' => null,
  863. 'is_null' => 1,
  864. 'comment' => '状态',
  865. ],
  866. 'stock' => [
  867. 'type' => 'int',
  868. 'length' => 11,
  869. 'default' => '0',
  870. 'is_null' => 0,
  871. 'comment' => '库存',
  872. ],
  873. 'store_id' => [
  874. 'type' => 'int',
  875. 'length' => 11,
  876. 'default' => '0',
  877. 'is_null' => 0,
  878. 'comment' => '门店',
  879. ],
  880. 'store_ids' => [
  881. 'type' => 'varchar',
  882. 'length' => 255,
  883. 'is_null' => 0,
  884. 'comment' => '包含门店',
  885. ],
  886. 'subscribe' => [
  887. 'type' => 'enum',
  888. 'length' => [
  889. '0',
  890. '1',
  891. ],
  892. 'is_null' => 1,
  893. 'comment' => '关注状态:0=取消关注,1=已关注',
  894. ],
  895. 'subscribe_time' => [
  896. 'type' => 'bigint',
  897. 'length' => 16,
  898. 'default' => null,
  899. 'is_null' => 1,
  900. 'comment' => '关注时间',
  901. ],
  902. 'switch' => [
  903. 'type' => 'tinyint',
  904. 'length' => 1,
  905. 'default' => '0',
  906. 'is_null' => 0,
  907. 'comment' => '开关',
  908. ],
  909. 'thumbnail' => [
  910. 'type' => 'text',
  911. 'collate' => 'utf8mb4_general_ci',
  912. 'is_null' => 1,
  913. 'comment' => '缩略图',
  914. ],
  915. 'tip' => [
  916. 'type' => 'varchar',
  917. 'length' => 100,
  918. 'default' => '',
  919. 'is_null' => 0,
  920. 'comment' => '变量描述',
  921. ],
  922. 'title' => [
  923. 'type' => 'varchar',
  924. 'length' => 50,
  925. 'default' => null,
  926. 'is_null' => 1,
  927. 'comment' => '活动名称',
  928. ],
  929. 'total_amount' => [
  930. 'type' => 'decimal',
  931. 'length' => '10,2',
  932. 'default' => '0.00',
  933. 'is_null' => 0,
  934. 'comment' => '订单总金额',
  935. ],
  936. 'total_fee' => [
  937. 'type' => 'decimal',
  938. 'length' => '10,2',
  939. 'default' => '0.00',
  940. 'is_null' => 0,
  941. 'comment' => '支付金额',
  942. ],
  943. 'total_income' => [
  944. 'type' => 'decimal',
  945. 'length' => '10,2',
  946. 'default' => '0.00',
  947. 'is_null' => 0,
  948. 'comment' => '总收益',
  949. ],
  950. 'trade_no' => [
  951. 'type' => 'varchar',
  952. 'length' => 32,
  953. 'collate' => 'utf8mb4_general_ci',
  954. 'default' => '',
  955. 'is_null' => 1,
  956. 'comment' => '交易订单号',
  957. ],
  958. 'transaction_id' => [
  959. 'type' => 'varchar',
  960. 'length' => 60,
  961. 'default' => null,
  962. 'is_null' => 1,
  963. 'comment' => '交易单号',
  964. ],
  965. 'type' => [
  966. 'type' => 'varchar',
  967. 'length' => 20,
  968. 'default' => null,
  969. 'is_null' => 1,
  970. 'comment' => '类型',
  971. ],
  972. 'updatetime' => [
  973. 'type' => 'bigint',
  974. 'length' => 16,
  975. 'default' => null,
  976. 'is_null' => 1,
  977. 'comment' => '更新时间',
  978. ],
  979. 'url' => [
  980. 'type' => 'varchar',
  981. 'length' => 255,
  982. 'default' => null,
  983. 'is_null' => 1,
  984. 'comment' => '商品链接',
  985. ],
  986. 'user_id' => [
  987. 'type' => 'int',
  988. 'length' => 11,
  989. 'default' => '0',
  990. 'is_null' => 0,
  991. 'comment' => '会员ID',
  992. ],
  993. 'user_ids' => [
  994. 'type' => 'varchar',
  995. 'length' => 100,
  996. 'comment' => '会员ID(多选)',
  997. ],
  998. 'user_nickname' => [
  999. 'type' => 'varchar',
  1000. 'length' => 50,
  1001. 'default' => null,
  1002. 'is_null' => 1,
  1003. 'comment' => '用户昵称',
  1004. ],
  1005. 'user_no' => [
  1006. 'type' => 'varchar',
  1007. 'length' => 16,
  1008. 'collate' => 'utf8mb4_general_ci',
  1009. 'default' => '0',
  1010. 'is_null' => 0,
  1011. 'comment' => '账户号',
  1012. ],
  1013. 'usetime' => [
  1014. 'type' => 'bigint',
  1015. 'length' => 16,
  1016. 'default' => null,
  1017. 'is_null' => 1,
  1018. 'comment' => '使用时间',
  1019. ],
  1020. 'uuid' => [
  1021. 'type' => 'varchar',
  1022. 'length' => 36,
  1023. 'collate' => 'utf8mb4_general_ci',
  1024. 'is_null' => 0,
  1025. 'comment' => 'app唯一编码',
  1026. ],
  1027. 'value' => [
  1028. 'type' => 'longtext',
  1029. 'collate' => 'utf8mb4_general_ci',
  1030. 'is_null' => 1,
  1031. 'comment' => '配置:key=名称,value=值2',
  1032. ],
  1033. 'views' => [
  1034. 'type' => 'int',
  1035. 'length' => 10,
  1036. 'default' => '0',
  1037. 'is_null' => 0,
  1038. 'unsigned' => 1,
  1039. 'comment' => '点击',
  1040. ],
  1041. 'wallet' => [
  1042. 'type' => 'decimal',
  1043. 'length' => '10,2',
  1044. 'is_null' => 0,
  1045. 'comment' => '变动金额',
  1046. ],
  1047. 'wallet_type' => [
  1048. 'type' => 'enum',
  1049. 'length' => [
  1050. 'money',
  1051. 'score',
  1052. ],
  1053. 'is_null' => 0,
  1054. 'comment' => '日志类型:money=余额,score=积分',
  1055. ],
  1056. 'weigh' => [
  1057. 'type' => 'int',
  1058. 'length' => 10,
  1059. 'default' => '0',
  1060. 'is_null' => 1,
  1061. 'comment' => '权重',
  1062. ],
  1063. 'weight' => [
  1064. 'type' => 'int',
  1065. 'length' => 11,
  1066. 'default' => null,
  1067. 'is_null' => 1,
  1068. 'comment' => '重量(kg)',
  1069. ],
  1070. 'width' => [
  1071. 'type' => 'int',
  1072. 'length' => 5,
  1073. 'default' => '0',
  1074. 'is_null' => 1,
  1075. 'unsigned' => 1,
  1076. 'comment' => '宽度',
  1077. ],
  1078. ];