szjshop.sql 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.0.10.20
  3. -- https://www.phpmyadmin.net
  4. --
  5. -- 主机: localhost
  6. -- 生成日期: 2022-03-29 14:19:10
  7. -- 服务器版本: 5.6.42
  8. -- PHP 版本: 5.4.45
  9. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  10. SET time_zone = "+00:00";
  11. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  12. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  13. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  14. /*!40101 SET NAMES utf8 */;
  15. --
  16. -- 数据库: `szjshop`
  17. --
  18. -- --------------------------------------------------------
  19. --
  20. -- 表的结构 `szj_accesss`
  21. --
  22. CREATE TABLE IF NOT EXISTS `szj_accesss` (
  23. `access_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '节点ID',
  24. `access_name` varchar(20) NOT NULL COMMENT '节点名称',
  25. `pid` int(10) unsigned NOT NULL COMMENT '上级ID',
  26. `router_path` varchar(255) NOT NULL COMMENT '跳转地址',
  27. `router_name` varchar(100) NOT NULL COMMENT '节点路由 对应vue路由',
  28. `access_icon` varchar(30) NOT NULL COMMENT '节点图标',
  29. `access_sort` int(10) unsigned NOT NULL COMMENT '节点排序',
  30. `level` tinyint(1) unsigned NOT NULL COMMENT '节点等级',
  31. `is_nav` tinyint(1) unsigned NOT NULL COMMENT '是否导航节点',
  32. `admin_id` int(10) unsigned NOT NULL COMMENT '操作管理员',
  33. `access_status` tinyint(1) unsigned NOT NULL COMMENT '节点状态',
  34. `vuecomponent` varchar(255) NOT NULL COMMENT '加载页面',
  35. `mobile_show` tinyint(1) unsigned NOT NULL COMMENT '移动端是否显示',
  36. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '变动时间',
  37. `create_time` datetime NOT NULL COMMENT '创建时间',
  38. PRIMARY KEY (`access_id`),
  39. KEY `is_nav` (`is_nav`,`access_status`),
  40. KEY `mobile_show` (`mobile_show`)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理节点' AUTO_INCREMENT=90 ;
  42. --
  43. -- 转存表中的数据 `szj_accesss`
  44. --
  45. INSERT INTO `szj_accesss` (`access_id`, `access_name`, `pid`, `router_path`, `router_name`, `access_icon`, `access_sort`, `level`, `is_nav`, `admin_id`, `access_status`, `vuecomponent`, `mobile_show`, `update_time`, `create_time`) VALUES
  46. (1, '系统管理', 0, '', 'system', '', 10, 1, 1, 17, 1, '', 1, '2022-02-19 09:48:20', '2020-10-23 17:01:01'),
  47. (2, '权限管理', 1, '', 'system_auth', '', 10, 2, 1, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-23 17:02:20'),
  48. (3, '管理员列表', 2, 'users', 'admin_user', '', 5, 3, 1, 1, 1, 'adminUser.vue', 1, '2022-02-19 09:48:20', '2020-10-23 17:02:37'),
  49. (4, '角色列表', 2, 'roles', 'admin_role', '', 15, 3, 1, 1, 1, 'roles.vue', 1, '2022-02-19 09:48:20', '2020-10-23 17:03:00'),
  50. (5, '权限节点', 2, 'access', 'admin_access', '', 20, 3, 1, 1, 1, 'accesss.vue', 0, '2022-02-19 09:48:20', '2020-10-23 17:43:57'),
  51. (8, '添加管理员', 2, '', 'create_admin_user', '', 6, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 11:14:15'),
  52. (9, '编辑管理员', 2, '', 'update_admin_user', '', 7, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 11:15:23'),
  53. (10, '删除管理员', 2, '', 'delete_admin_user', '', 8, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 11:16:10'),
  54. (11, '添加权限节点', 2, '', 'create_admin_access', '', 21, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2020-10-26 12:24:13'),
  55. (12, '编辑权限节点', 2, '', 'update_admin_access', '', 22, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2020-10-26 12:43:23'),
  56. (13, '删除权限节点', 2, '', 'delete_admin_access', '', 23, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2020-10-26 14:21:54'),
  57. (23, '添加角色', 2, '', 'create_admin_role', '', 16, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 17:15:52'),
  58. (24, '编辑角色', 2, '', 'update_admin_role', '', 17, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 17:17:12'),
  59. (25, '删除角色', 2, '', 'delete_admin_role', '', 18, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 17:17:34'),
  60. (26, '角色授权', 2, '', 'admin_role_access', '', 19, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-26 17:18:18'),
  61. (27, '配置管理', 1, '', 'configs', '', 15, 2, 1, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-29 18:28:45'),
  62. (28, '配置列表', 27, 'configs', 'config_list', '', 5, 3, 1, 1, 1, 'configs.vue', 1, '2022-02-19 09:48:20', '2020-10-29 18:30:02'),
  63. (29, '配置设置', 27, 'confset', 'config_setting', '', 15, 3, 1, 1, 1, 'confset.vue', 1, '2022-02-19 09:48:20', '2020-10-29 18:30:56'),
  64. (30, '添加配置', 27, '', 'create_config', '', 6, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-31 13:57:59'),
  65. (31, '编辑配置', 27, '', 'update_config', '', 7, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-31 13:58:31'),
  66. (32, '删除配置', 27, '', 'delete_config', '', 8, 3, 0, 1, 1, '', 1, '2022-02-19 09:48:20', '2020-10-31 13:59:00'),
  67. (45, '文章管理', 1, '', 'articles', '', 20, 2, 1, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 18:56:26'),
  68. (46, '文章列表', 45, 'articles', 'article_index', '', 5, 3, 1, 1, 1, 'articles.vue', 0, '2022-02-19 09:48:20', '2021-05-25 18:57:30'),
  69. (47, '文章分类', 45, 'articles/category', 'article_category', '', 10, 3, 1, 1, 1, 'articlesCategory.vue', 0, '2022-02-19 09:48:20', '2021-05-25 18:57:58'),
  70. (48, '添加文章', 45, '', 'create_article', '', 6, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 19:05:25'),
  71. (49, '更新文章', 45, '', 'update_article', '', 7, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 19:05:59'),
  72. (50, '删除文章', 45, '', 'delete_article', '', 8, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 19:06:35'),
  73. (51, '添加文章分类', 45, '', 'create_article_category', '', 11, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 19:10:38'),
  74. (52, '更新文章分类', 45, '', 'update_article_category', '', 12, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 19:11:10'),
  75. (53, '删除文章分类', 45, '', 'delete_article_category', '', 13, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2021-05-25 19:11:45'),
  76. (55, '商城管理', 0, '', 'shops', '', 5, 1, 1, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-01-17 12:12:15'),
  77. (58, '商品管理', 55, '', 'shopsProduct', '', 10, 2, 1, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:35:21'),
  78. (59, '商品列表', 58, 'shops/productList', 'select_products', '', 10, 3, 1, 1, 1, 'shops/products.vue', 0, '2022-02-19 09:48:20', '2022-02-09 11:36:46'),
  79. (60, '商品分类', 58, 'shops/productCategory', 'select_product_category', '', 20, 3, 1, 1, 1, 'shops/productCategory.vue', 0, '2022-02-19 09:48:20', '2022-02-09 11:37:43'),
  80. (61, '商品类型', 58, 'shops/productTypes', 'select_product_types', '', 30, 3, 1, 1, 1, 'shops/productTypes.vue', 0, '2022-02-19 09:48:20', '2022-02-09 11:38:39'),
  81. (62, '供货商列表', 58, 'shops/productSuppliers', 'select_product_suppliers', '', 40, 3, 1, 1, 1, 'shops/productSuppliers.vue', 0, '2022-02-19 09:48:20', '2022-02-09 11:39:37'),
  82. (63, '添加商品', 58, '', 'create_products', '', 12, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:41:10'),
  83. (64, '更新商品', 58, '', 'update_products', '', 14, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:41:40'),
  84. (65, '删除商品', 58, '', 'delete_products', '', 16, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:42:03'),
  85. (66, '添加商品分类', 58, '', 'create_product_category', '', 22, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:43:24'),
  86. (67, '更新商品分类', 58, '', 'update_product_category', '', 24, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:43:47'),
  87. (68, '删除商品分类', 58, '', 'delete_product_category', '', 26, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:44:15'),
  88. (69, '添加商品类型', 58, '', 'create_product_types', '', 32, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:44:45'),
  89. (70, '更新商品类型', 58, '', 'update_product_types', '', 34, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:45:08'),
  90. (71, '删除商品类型', 58, '', 'delete_product_types', '', 36, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:45:39'),
  91. (72, '添加供货商', 58, '', 'create_product_suppliers', '', 42, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:46:29'),
  92. (73, '更新供货商', 58, '', 'update_product_suppliers', '', 44, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:47:01'),
  93. (74, '删除供货商', 58, '', 'delete_product_suppliers', '', 46, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-09 11:47:26'),
  94. (75, '商品类型属性', 58, 'shops/productTypesItem', 'select_product_types_item', '', 50, 3, 0, 1, 1, 'shops/productTypesItem.vue', 0, '2022-02-19 09:48:20', '2022-02-12 15:24:25'),
  95. (78, '订单管理', 55, '', 'shopOrders', '', 20, 2, 1, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-17 09:19:54'),
  96. (79, '订单列表', 78, 'shops/OrderList', 'select_orders', '', 10, 3, 1, 1, 1, 'shops/orderList.vue', 0, '2022-02-19 09:48:20', '2022-02-17 09:20:52'),
  97. (80, '订单详情', 78, 'shops/orderInfo', 'select_orders_info', '', 15, 3, 0, 1, 1, 'shops/orderInfo.vue', 0, '2022-02-19 09:48:20', '2022-02-18 16:35:42'),
  98. (81, '商城配置', 55, '', 'shopsConfig', '', 30, 2, 1, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:08:11'),
  99. (82, '支付配置', 81, 'shops/paysConfig', 'select_pays_config', '', 10, 3, 1, 1, 1, 'shops/paysConfig.vue', 0, '2022-02-19 09:48:20', '2022-02-19 10:09:01'),
  100. (83, '添加支付配置', 81, '', 'create_pays_config', '', 12, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:09:35'),
  101. (84, '更新支付配置', 81, '', 'update_pays_config', '', 14, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:10:08'),
  102. (85, '删除支付配置', 81, '', 'delete_pays_config', '', 16, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:10:35'),
  103. (86, '配送方式', 81, 'shops/shippingsConfig', 'select_shippings_config', '', 20, 3, 1, 1, 1, 'shops/shippingsConfig.vue', 0, '2022-02-19 09:48:20', '2022-02-19 10:11:37'),
  104. (87, '添加配送方式', 81, '', 'create_shippings_config', '', 22, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:12:10'),
  105. (88, '更新配送方式', 81, '', 'update_shippings_config', '', 24, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:12:38'),
  106. (89, '删除配送方式', 81, '', 'delete_shippings_config', '', 26, 3, 0, 1, 1, '', 0, '2022-02-19 09:48:20', '2022-02-19 10:13:07');
  107. -- --------------------------------------------------------
  108. --
  109. -- 表的结构 `szj_access_role`
  110. --
  111. CREATE TABLE IF NOT EXISTS `szj_access_role` (
  112. `role_id` int(10) unsigned NOT NULL COMMENT '角色ID',
  113. `access_id` varchar(5000) NOT NULL COMMENT '节点ID',
  114. PRIMARY KEY (`role_id`),
  115. KEY `access_id` (`access_id`(255))
  116. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色权限节点';
  117. --
  118. -- 转存表中的数据 `szj_access_role`
  119. --
  120. INSERT INTO `szj_access_role` (`role_id`, `access_id`) VALUES
  121. (1, '1,2,3,8,9,10,4,23,24,25,26,5,11,12,13,27,28,30,31,32,29,45,46,48,49,50,47,51,52,53'),
  122. (3, '1,2,3,4,5,27,28,45,46,48,47,52');
  123. -- --------------------------------------------------------
  124. --
  125. -- 表的结构 `szj_address`
  126. --
  127. CREATE TABLE IF NOT EXISTS `szj_address` (
  128. `address_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '地址ID',
  129. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  130. `uname` varchar(255) NOT NULL COMMENT '收货人姓名',
  131. `mobile` varchar(11) NOT NULL COMMENT '收货人电话',
  132. `province_id` int(10) unsigned NOT NULL COMMENT '所在省ID',
  133. `province_name` varchar(255) NOT NULL COMMENT '所在省名称',
  134. `city_id` int(10) unsigned NOT NULL COMMENT '所在市ID',
  135. `city_name` varchar(255) NOT NULL COMMENT '所在市名称',
  136. `county_id` int(10) unsigned NOT NULL COMMENT '所在县ID',
  137. `county_name` varchar(255) NOT NULL COMMENT '所在县名称',
  138. `address` varchar(255) NOT NULL COMMENT '地址详情',
  139. `is_use` tinyint(1) unsigned NOT NULL COMMENT '是否使用',
  140. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  141. `create_time` datetime NOT NULL COMMENT '创建时间',
  142. PRIMARY KEY (`address_id`),
  143. KEY `user_id` (`user_id`)
  144. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='收货地址表' AUTO_INCREMENT=7 ;
  145. --
  146. -- 转存表中的数据 `szj_address`
  147. --
  148. INSERT INTO `szj_address` (`address_id`, `user_id`, `uname`, `mobile`, `province_id`, `province_name`, `city_id`, `city_name`, `county_id`, `county_name`, `address`, `is_use`, `update_time`, `create_time`) VALUES
  149. (4, 1, '一个小哥', '15219840108', 440000, '广东省', 441600, '河源市', 441602, '源城区', '宝源学校公交车站', 1, '2022-03-26 12:03:57', '2022-03-18 17:06:49'),
  150. (5, 1, '罗生', '15219840108', 510000, '四川省', 510700, '绵阳市', 510722, '三台县', '刘营镇7村二组', 0, '2022-03-26 12:03:51', '2022-03-22 09:30:24'),
  151. (6, 2, '罗勇', '15219840108', 440000, '广东省', 441600, '河源市', 441602, '源城区', '永福农贸中心市场三楼', 1, '2022-03-29 02:58:20', '2022-03-29 10:57:35');
  152. -- --------------------------------------------------------
  153. --
  154. -- 表的结构 `szj_admin_user`
  155. --
  156. CREATE TABLE IF NOT EXISTS `szj_admin_user` (
  157. `admin_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '管理员ID',
  158. `username` varchar(20) NOT NULL,
  159. `password` varchar(255) NOT NULL,
  160. `role_id` int(10) unsigned NOT NULL,
  161. `admin_status` tinyint(1) unsigned NOT NULL,
  162. `login_ip` varchar(15) NOT NULL,
  163. `login_time` datetime NOT NULL,
  164. `login_count` int(10) unsigned NOT NULL COMMENT '登录次数',
  165. `admin_token` varchar(255) NOT NULL,
  166. `admin_code` char(6) NOT NULL,
  167. `other_auth` varchar(255) NOT NULL,
  168. `action_user` int(10) unsigned NOT NULL COMMENT '操作user_id',
  169. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '变动时间',
  170. `create_time` datetime NOT NULL COMMENT '创建时间',
  171. PRIMARY KEY (`admin_id`),
  172. KEY `role_id` (`role_id`),
  173. KEY `username` (`username`)
  174. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台管理员' AUTO_INCREMENT=18 ;
  175. --
  176. -- 转存表中的数据 `szj_admin_user`
  177. --
  178. INSERT INTO `szj_admin_user` (`admin_id`, `username`, `password`, `role_id`, `admin_status`, `login_ip`, `login_time`, `login_count`, `admin_token`, `admin_code`, `other_auth`, `action_user`, `update_time`, `create_time`) VALUES
  179. (1, 'szjcomo', '4a4232bf90b84f41223e88eb06895b21', 0, 1, '127.0.0.1', '2022-03-29 09:07:18', 230, '', 'abcd', '', 1, '2022-03-29 01:07:57', '2020-10-22 18:43:14'),
  180. (13, '宁晓欣', '079d3d19737fa31306abac3064cf6916', 1, 1, '192.168.1.222', '2021-03-01 17:24:11', 2, '', '3844', '', 1, '2021-12-16 04:10:15', '2021-03-01 17:19:17'),
  181. (17, '天地乾坤', 'a09b8ad35c7decf3addba761edc154e4', 1, 1, '192.168.1.158', '2022-01-20 18:56:53', 16, '', '5393', '', 1, '2022-03-19 10:09:32', '2021-12-16 15:46:52');
  182. -- --------------------------------------------------------
  183. --
  184. -- 表的结构 `szj_articles`
  185. --
  186. CREATE TABLE IF NOT EXISTS `szj_articles` (
  187. `article_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章ID',
  188. `article_title` varchar(200) NOT NULL COMMENT '文章标题',
  189. `article_desc` varchar(255) NOT NULL COMMENT '文章描述',
  190. `article_content` text NOT NULL COMMENT '文章内容',
  191. `article_image` varchar(255) NOT NULL COMMENT '封面图片',
  192. `article_type` tinyint(1) unsigned NOT NULL COMMENT '文章类型 0文章 1视频',
  193. `category_id` int(10) unsigned NOT NULL COMMENT '分类ID',
  194. `article_tags` varchar(255) NOT NULL COMMENT '文章标签,多个用逗号隔开',
  195. `article_status` tinyint(1) unsigned NOT NULL COMMENT '文章状态',
  196. `article_author` varchar(100) NOT NULL COMMENT '文章作者',
  197. `article_views` int(10) unsigned NOT NULL COMMENT '浏览次数',
  198. `article_template_info` varchar(255) NOT NULL COMMENT '文章详情模版',
  199. `article_recommend` tinyint(1) unsigned NOT NULL COMMENT '文章推荐 0不推荐 1推荐',
  200. `article_template_list` varchar(255) NOT NULL COMMENT '文章列表模版',
  201. `article_sort` int(10) unsigned NOT NULL COMMENT '文章排序',
  202. `view_auth` tinyint(1) unsigned NOT NULL COMMENT '0 所有人 1超管',
  203. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  204. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  205. `create_time` datetime NOT NULL COMMENT '创建时间',
  206. PRIMARY KEY (`article_id`),
  207. KEY `category_id` (`category_id`),
  208. KEY `article_status` (`article_status`)
  209. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章表' AUTO_INCREMENT=4 ;
  210. --
  211. -- 转存表中的数据 `szj_articles`
  212. --
  213. INSERT INTO `szj_articles` (`article_id`, `article_title`, `article_desc`, `article_content`, `article_image`, `article_type`, `category_id`, `article_tags`, `article_status`, `article_author`, `article_views`, `article_template_info`, `article_recommend`, `article_template_list`, `article_sort`, `view_auth`, `admin_id`, `update_time`, `create_time`) VALUES
  214. (2, '发表第一篇文章', '', '<div class="como-editor-cus-template"><section class="_135editor" draggable="true" data-tools="135编辑器" data-id="108115"><section style="text-align: center;margin: 10px auto;"><section style="border: 1px solid #6669a9;padding: 25px 20px 30px 25px;margin-left: 5px;box-shadow: -5px 6px 0 0 #bfc2e9"><section style="display: inline-block;margin-bottom: 20px;"><section style="display: flex;justify-content: center;align-items: flex-end;"><section style="text-align: left;transform: rotate(0deg);"><section class="135brush" data-brushtype="text" style="font-size: 16px; letter-spacing: 1.5px;">如何搭配长春花蓝</section><section class="135brush" data-brushtype="text" style="font-size: 12px;letter-spacing: 0.5px;color: #666;">Good times</section></section><section style="font-size: 46px;letter-spacing: 1.5px;color: #bfc2e9;line-height: 42px;font-style: italic;margin-left: -30px;"><strong>0</strong><strong class="autonum" data-original-title="" title="">1</strong></section></section><section class="assistant" style="display: flex; justify-content: flex-end; margin-top: -10px; margin-right: -5px;"><section class="assistant" style="width: 75px; height: 1px; background-color: rgb(51, 51, 51); transform: rotate(-25deg);"></section></section></section><section class="box-edit _135editor" style="margin-top: 15px;"><section style="display: flex;justify-content: flex-start;align-items: flex-start;"><section class="assistant" style="width: 7px; height: 7px; background-color: rgb(102, 105, 169); border-radius: 50%; flex-shrink: 0; margin-top: 9px; margin-right: 7px;"></section><section data-autoskip="1" class="135brush" style="text-align: justify; line-height: 1.75em; letter-spacing: 1.5px; background: transparent;"><p style="vertical-align: inherit;"><font size="2">透过暖色调及冷色调的搭配运用,达到互相补强的效果,有活力。</font></p></section></section></section><section class="box-edit _135editor" style="margin-top: 15px;"><section style="display: flex;justify-content: flex-start;align-items: flex-start;"><section class="assistant" style="width: 7px; height: 7px; background-color: rgb(102, 105, 169); border-radius: 50%; flex-shrink: 0; margin-top: 9px; margin-right: 7px;"></section><section data-autoskip="1" class="135brush" style="text-align: justify; line-height: 1.75em; letter-spacing: 1.5px; background: transparent;"><p style="vertical-align:inherit;"><font size="2">融合大自然色调,突出绿色与温和的PANTONE 17-3938的兼容性。</font></p></section></section></section><section class="box-edit _135editor" style="margin-top: 15px;"><section style="display: flex;justify-content: flex-start;align-items: flex-start;"><section class="assistant" style="width: 7px; height: 7px; background-color: rgb(102, 105, 169); border-radius: 50%; flex-shrink: 0; margin-top: 9px; margin-right: 7px;"></section><section data-autoskip="1" class="135brush" style="text-align: justify; line-height: 1.75em; letter-spacing: 1.5px; background: transparent;"><p style="vertical-align: inherit;"><font size="2">围绕着所有蓝色色调中最快乐和最温暖的色调,搭配经典和中性色调。</font></p></section></section></section></section></section></section></div><p><br/></p>', 'http://attachs.sizhijie.com/szjkj-common-oss/a9473cab62a3de960c0f982927241d02fe000d99.png', 0, 1, '', 1, '', 10, '', 0, '', 99, 0, 1, '2022-01-17 03:06:37', '2021-12-18 18:57:48'),
  215. (3, '发表第二篇文章', '', '<div class="como-editor-cus-template"><section class="_135editor" draggable="true" data-role="title" data-tools="135编辑器" data-id="107853"><section style="text-align: center;margin: 10px 7px;"><section style="display: inline-block;"><section style="display: flex;justify-content: flex-end;transform: translate(7px,0px);"><section><section class="assistant" style="width: 15px; height: 13px; background-color: rgb(253, 153, 24); margin-bottom: 2px; margin-left: 2px;"></section><section class="assistant" style="width: 6px; height: 4px; background-color: rgb(253, 153, 24);"></section></section></section><section style="background-color: rgb(49, 83, 230); padding: 5px 15px; margin-top: -14px; margin-bottom: -14px;"><section style="font-size: 20px;letter-spacing: 1.5px;color: #fff;transform: rotate(0deg);"><strong class="135brush" data-brushtype="text">工作成果与亮点</strong></section></section><section style="transform: translate(-7px,0px);"><section class="assistant" style="width: 6px; height: 4px; background-color: rgb(253, 153, 24); margin-bottom: 2px; margin-left: 11px;"></section><section class="assistant" style="width: 15px; height: 13px; background-color: rgb(253, 153, 24);"><br/></section></section></section></section></section></div><div class="como-editor-cus-template"><section class="_135editor" draggable="true" data-tools="135编辑器" data-id="108114"><section style="margin: 20px auto;"><section style="display: flex;"><section style="display: flex;"><section class="assistant" style="width: 1px; height: 100%; background-color: rgb(102, 105, 169);"></section></section><section style="flex: 1;"><section class="box-edit _135editor"><section style="display: inline-block;"><section style="background-color: rgb(102, 105, 169); padding-bottom: 5px; padding-left: 8px; text-align: center;"><section style="display: flex;justify-content: center;align-items: flex-start;"><section style="width: 22px; height: 22px; background-color: rgb(255, 255, 255); border-radius: 50%; flex-shrink: 0; margin-top: 5px; margin-right: 8px;"><section style="letter-spacing: 0px; color: rgb(102, 105, 169); line-height: 22px;">0<span class="autonum" data-original-title="" title="">1</span></section></section><section style="background-color: rgb(240, 241, 255); padding-right: 8px; padding-bottom: 6px; padding-left: 8px; box-shadow: rgb(240, 241, 255) 0px -7px 0px 0px;"><section class="135brush" data-brushtype="text" style="letter-spacing: 1.5px; color: rgb(102, 105, 169);">长春花蓝搭配技巧</section></section></section></section></section><section data-autoskip="1" class="135brush" style="margin-top: 9px; margin-right: 15px; margin-left: 24px; padding-bottom: 7px; border-bottom: 1px dashed rgb(102, 105, 169); text-align: justify; line-height: 1.75em; letter-spacing: 1.5px; background: transparent;"><p style="vertical-align: inherit;"><font size="2">透过暖色调及冷色调的搭配运用,达到互相补强的效果,有活力。</font></p></section></section><section class="box-edit _135editor" style="margin-top: 30px;"><section style="display: inline-block;"><section style="background-color: rgb(102, 105, 169); padding-bottom: 5px; padding-left: 8px; text-align: center;"><section style="display: flex;justify-content: center;align-items: flex-start;"><section style="width: 22px; height: 22px; background-color: rgb(255, 255, 255); border-radius: 50%; flex-shrink: 0; margin-top: 5px; margin-right: 8px;"><section style="letter-spacing: 0px; color: rgb(102, 105, 169); line-height: 22px;">0<span class="autonum" data-original-title="" title="">2</span></section></section><section style="background-color: rgb(240, 241, 255); padding-right: 8px; padding-bottom: 6px; padding-left: 8px; box-shadow: rgb(240, 241, 255) 0px -7px 0px 0px;"><section class="135brush" data-brushtype="text" style="letter-spacing: 1.5px; color: rgb(102, 105, 169);">长春花蓝搭配技巧</section></section></section></section></section><section data-autoskip="1" class="135brush" style="margin-top: 9px; margin-right: 15px; margin-left: 24px; padding-bottom: 7px; border-bottom: 1px dashed rgb(102, 105, 169); text-align: justify; line-height: 1.75em; letter-spacing: 1.5px; background: transparent;"><p style="vertical-align: inherit;"><font size="2">透过暖色调及冷色调的搭配运用,达到互相补强的效果,有活力。</font></p></section></section><section class="box-edit _135editor" style="margin-top: 30px;"><section style="display: inline-block;"><section style="background-color: rgb(102, 105, 169); padding-bottom: 5px; padding-left: 8px; text-align: center;"><section style="display: flex;justify-content: center;align-items: flex-start;"><section style="width: 22px; height: 22px; background-color: rgb(255, 255, 255); border-radius: 50%; flex-shrink: 0; margin-top: 5px; margin-right: 8px;"><section style="letter-spacing: 0px; color: rgb(102, 105, 169); line-height: 22px;">0<span class="autonum" data-original-title="" title="">3</span></section></section><section style="background-color: rgb(240, 241, 255); padding-right: 8px; padding-bottom: 6px; padding-left: 8px; box-shadow: rgb(240, 241, 255) 0px -7px 0px 0px;"><section class="135brush" data-brushtype="text" style="letter-spacing: 1.5px; color: rgb(102, 105, 169);">长春花蓝搭配技巧</section></section></section></section></section><section data-autoskip="1" class="135brush" style="margin-top: 9px; margin-right: 15px; margin-left: 24px; padding-bottom: 7px; border-bottom: 1px dashed rgb(102, 105, 169); text-align: justify; line-height: 1.75em; letter-spacing: 1.5px; background: transparent;"><p style="vertical-align: inherit;"><font size="2">透过暖色调及冷色调的搭配运用,达到互相补强的效果,有活力。</font></p></section></section></section></section></section></section></div><p><br/></p>', 'http://attachs.sizhijie.com/szjkj-common-oss/71ef9c02dc55929b0d5c29e3ea37f5c3216eb911.jpeg', 0, 1, '', 1, '', 10, '', 0, '', 99, 0, 1, '2022-01-17 03:06:06', '2021-12-18 19:01:59');
  216. -- --------------------------------------------------------
  217. --
  218. -- 表的结构 `szj_articles_category`
  219. --
  220. CREATE TABLE IF NOT EXISTS `szj_articles_category` (
  221. `category_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  222. `category_name` varchar(200) NOT NULL COMMENT '分类名称',
  223. `category_desc` varchar(255) NOT NULL COMMENT '分类描述',
  224. `category_image` varchar(255) NOT NULL COMMENT '分类图片',
  225. `pid` int(10) unsigned NOT NULL COMMENT '上级id',
  226. `category_sort` int(10) unsigned NOT NULL COMMENT '分类排序',
  227. `category_status` tinyint(1) unsigned NOT NULL COMMENT '分类状态',
  228. `category_level` tinyint(1) unsigned NOT NULL COMMENT '分类等级',
  229. `category_recommend` tinyint(1) unsigned NOT NULL COMMENT '是否推荐',
  230. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  231. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  232. `create_time` datetime NOT NULL COMMENT '添加时间',
  233. PRIMARY KEY (`category_id`),
  234. KEY `category_status` (`category_status`)
  235. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章分类表' AUTO_INCREMENT=7 ;
  236. --
  237. -- 转存表中的数据 `szj_articles_category`
  238. --
  239. INSERT INTO `szj_articles_category` (`category_id`, `category_name`, `category_desc`, `category_image`, `pid`, `category_sort`, `category_status`, `category_level`, `category_recommend`, `admin_id`, `update_time`, `create_time`) VALUES
  240. (1, '测试分类', '', 'http://attachs.sizhijie.com/szjkj-common-oss/36f609a1e4c56beee5a00982f802bdc682a99f2a.jpeg', 0, 99, 1, 1, 0, 1, '2021-12-21 03:34:31', '2021-08-08 18:57:42'),
  241. (3, '市教育局', '', 'http://attachs.sizhijie.com/szjkj-common-oss/61e036fbe8e8cacd8d0f5654b24191fc41c0795c.png', 0, 99, 1, 1, 0, 1, '2021-12-21 03:37:33', '2021-12-18 17:56:36'),
  242. (4, '源城区教育局', '', '', 3, 99, 1, 2, 0, 1, '2022-01-17 03:57:55', '2021-12-18 17:57:16'),
  243. (5, '江东新区教育办', '', '', 3, 99, 1, 2, 0, 1, '2021-12-18 09:59:03', '2021-12-18 17:58:06'),
  244. (6, '紫金县教育局', '', '', 3, 99, 1, 2, 0, 1, '2021-12-18 09:59:25', '2021-12-18 17:58:28');
  245. -- --------------------------------------------------------
  246. --
  247. -- 表的结构 `szj_carts`
  248. --
  249. CREATE TABLE IF NOT EXISTS `szj_carts` (
  250. `cart_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '购物车ID',
  251. `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
  252. `product_count` int(10) unsigned NOT NULL COMMENT '商品数量',
  253. `is_select` tinyint(1) unsigned NOT NULL COMMENT '是否选中',
  254. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  255. `random_key` varchar(10) NOT NULL COMMENT '随机数',
  256. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  257. `create_time` datetime NOT NULL COMMENT '创建时间',
  258. PRIMARY KEY (`cart_id`),
  259. KEY `user_id` (`user_id`)
  260. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户购物车表' AUTO_INCREMENT=86 ;
  261. -- --------------------------------------------------------
  262. --
  263. -- 表的结构 `szj_collects`
  264. --
  265. CREATE TABLE IF NOT EXISTS `szj_collects` (
  266. `collect_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '收藏ID',
  267. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  268. `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
  269. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  270. `create_time` datetime NOT NULL COMMENT '创建时间',
  271. PRIMARY KEY (`collect_id`)
  272. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户收藏表' AUTO_INCREMENT=1 ;
  273. -- --------------------------------------------------------
  274. --
  275. -- 表的结构 `szj_configs`
  276. --
  277. CREATE TABLE IF NOT EXISTS `szj_configs` (
  278. `config_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  279. `field_index` varchar(100) NOT NULL COMMENT '索引字段',
  280. `field_type` varchar(20) NOT NULL COMMENT '字段类型仅支持[text,textarea,number,switch,datetime,image,images]',
  281. `field_label` varchar(20) NOT NULL COMMENT '表单label',
  282. `field_group` varchar(50) NOT NULL COMMENT '所属分组',
  283. `field_options` varchar(255) NOT NULL COMMENT '其它选项',
  284. `field_desc` varchar(50) NOT NULL COMMENT '提示文字',
  285. `field_status` tinyint(1) unsigned NOT NULL COMMENT '配置状态',
  286. `field_value` text NOT NULL COMMENT '字段值',
  287. `field_sort` int(10) unsigned NOT NULL COMMENT '配置排序',
  288. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  289. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  290. `create_time` datetime NOT NULL COMMENT '创建时间',
  291. PRIMARY KEY (`config_id`),
  292. KEY `config_name` (`field_index`)
  293. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置设置' AUTO_INCREMENT=25 ;
  294. --
  295. -- 转存表中的数据 `szj_configs`
  296. --
  297. INSERT INTO `szj_configs` (`config_id`, `field_index`, `field_type`, `field_label`, `field_group`, `field_options`, `field_desc`, `field_status`, `field_value`, `field_sort`, `admin_id`, `update_time`, `create_time`) VALUES
  298. (1, 'system_group', 'textarea', '总配置组', 'website', '', '请输入系统总配置分组项', 1, 'website|系统设置\nwechat|微信配置\nthird_party|思智捷服务', 1, 1, '2022-03-28 08:54:45', '2020-10-24 12:11:57'),
  299. (2, 'website_title', 'text', '商城名称', 'website', '', '请输入商城名称', 1, '思智捷科技数据管理系统', 2, 1, '2022-03-28 01:56:16', '2020-10-24 13:43:35'),
  300. (8, 'home_swipers', 'images', '首页轮播', 'website', '', '请配置商城首页轮播图', 1, 'http://attachs.sizhijie.com/szjkj-common-oss/bcb2e93e3f7fcbc4ea8d4df9f23dc83e60b21504.jpg', 4, 1, '2022-03-28 01:57:28', '2020-10-31 14:15:06'),
  301. (11, 'editor_templates_uri', 'text', '编辑器模版接口', 'third_party', '', '请输入思智捷科技提供的编辑器模版调用接口地址', 1, 'https://apis.sizhijie.com/templates/list', 5, 1, '2022-03-28 08:59:03', '2021-01-14 10:37:52'),
  302. (13, 'files_upload_uri', 'text', '资料上传域名', 'third_party', '', '请配置思智捷科技提供的图片文件上传的域名', 1, 'https://apis.sizhijie.com/oss/v1/upload?identity=eyJkYXRhIjp7InVzZXiOjE0LCJ1c2VyXZGUiOiJtWHJYVloifX0=JfaWQ2Nv', 4, 1, '2022-03-28 08:59:21', '2021-08-09 19:05:14'),
  303. (14, 'image_ocr_uri', 'text', '图像识别域名', 'third_party', '', '请配置思智捷科技图像识别调用接口地址', 1, 'https://apis.sizhijie.com', 6, 1, '2022-03-28 08:58:45', '2021-08-09 19:06:17'),
  304. (15, 'wechat_account_appid', 'text', '公众号appid', 'wechat', '', '请输入微信公众号appid', 1, 'wx6aab892e5b7b6023', 10, 1, '2022-03-28 07:54:02', '2022-03-28 09:51:19'),
  305. (16, 'wechat_account_secret', 'text', '公众号secret', 'wechat', '', '微信公众号secret', 1, 'b000a5a1d69925397b6725db34879167', 15, 1, '2022-03-28 07:54:02', '2022-03-28 09:52:14'),
  306. (17, 'wechat_account_token', 'text', '公众号token', 'wechat', '', '请配置微信公众号通信的token', 1, 'szjcomo2022', 20, 1, '2022-03-28 07:55:07', '2022-03-28 09:54:56'),
  307. (18, 'wechat_account_jsapi_uri', 'text', '页面调用地址', 'wechat', '', '请配置公众号JSAPI页面调用地址', 1, 'http://test.enroll.sizhijie.com/#/shop/home', 25, 1, '2022-03-28 06:54:52', '2022-03-28 11:47:01'),
  308. (19, 'wechat_account_jsapi_list', 'text', '公众号JS接口', 'wechat', '', '请配置微信公众号jsapi需要调用的接口列表,用,号隔开', 1, 'chooseWXPay,updateTimelineShareData,updateAppMessageShareData,chooseImage', 30, 1, '2022-03-28 06:56:49', '2022-03-28 11:48:51'),
  309. (20, 'wechat_account_jsapi_debug', 'radio', '公众号js调试', 'wechat', '[{"name":"开启","value":1},{"name":"关闭","value":0}]', '是否开启微信公众号jsapi调试模式', 1, '0', 35, 1, '2022-03-28 08:15:02', '2022-03-28 11:49:57'),
  310. (21, 'wechat_pay_token', 'text', '微信支付赁证', 'third_party', '', '请配置思智捷科技提供的微信支付调用赁证', 1, 'eyJkYXRhIjp7InVzZXJfaWQiOjMsImNJiaGhGSGEiLCJ1c2VyX3R5cGUiInBheV90eXBlIjoxfX0=vZGUiOiOjAs', 10, 1, '2022-03-29 02:35:59', '2022-03-28 16:55:14'),
  311. (22, 'wechat_pay_domain', 'text', '微信支付域名', 'third_party', '', '请配置思智捷科技提供的微信支付调用的域名', 1, 'https://apis.sizhijie.com', 15, 1, '2022-03-28 08:58:24', '2022-03-28 16:56:53'),
  312. (23, 'wechat_pay_callback', 'text', '支付回调地址', 'wechat', '', '请配置微信支付后回调通知地址', 1, 'http://test.enroll.sizhijie.com/oneshop/wechat/pay/callbck', 40, 1, '2022-03-28 09:15:09', '2022-03-28 17:03:31'),
  313. (24, 'wechat_pay_key', 'text', '微信支付密钥', 'wechat', '', '请配置微信支付密钥', 1, '4f85c69db495f09529b69947adddb0ee', 45, 1, '2022-03-29 02:44:14', '2022-03-29 10:43:17');
  314. -- --------------------------------------------------------
  315. --
  316. -- 表的结构 `szj_orders`
  317. --
  318. CREATE TABLE IF NOT EXISTS `szj_orders` (
  319. `order_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单ID',
  320. `order_sn` char(22) NOT NULL COMMENT '订单号',
  321. `order_status` tinyint(3) unsigned NOT NULL COMMENT '订单状态 0待付款 1 待发货 2待收货 3待评价 4已完成 6已关闭',
  322. `pay_sn` varchar(255) NOT NULL COMMENT '支付单号',
  323. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  324. `order_amount` float(10,2) unsigned NOT NULL COMMENT '实际支付总金额',
  325. `user_remarks` varchar(255) NOT NULL COMMENT '用户备注说明',
  326. `seller_remarks` varchar(255) NOT NULL COMMENT '卖家备注',
  327. `consignee` varchar(255) NOT NULL COMMENT '收货人姓名',
  328. `province_id` int(10) unsigned NOT NULL COMMENT '收货省份ID',
  329. `city_id` int(10) unsigned NOT NULL COMMENT '收货城市ID',
  330. `county_id` int(10) unsigned NOT NULL COMMENT '收货县/区ID',
  331. `address` varchar(255) NOT NULL COMMENT '详细地址',
  332. `mobile` varchar(255) NOT NULL COMMENT '收货人电话',
  333. `shipping_id` int(10) unsigned NOT NULL COMMENT '用户选择的配送方式',
  334. `pay_id` int(10) unsigned NOT NULL COMMENT '用户选择的支付方式',
  335. `shipping_fee` float(10,2) unsigned NOT NULL COMMENT '配送费用',
  336. `surplus_amout` float(10,2) unsigned NOT NULL COMMENT '余额使用金额',
  337. `activity_id` int(11) NOT NULL COMMENT '全局活动ID',
  338. `activity_name` varchar(255) NOT NULL COMMENT '活动名称',
  339. `activity_desc` varchar(255) NOT NULL COMMENT '全局活动名称',
  340. `is_urge` tinyint(3) unsigned NOT NULL COMMENT '是否催发货 及催发货次数',
  341. `is_express` tinyint(1) unsigned NOT NULL COMMENT '是否需要快递',
  342. `express_sn` varchar(255) NOT NULL COMMENT '快递单号',
  343. `express_id` int(10) unsigned NOT NULL COMMENT '快递公司ID',
  344. `deliver_desc` varchar(255) NOT NULL COMMENT '发货说明',
  345. `deliver_time` datetime NOT NULL COMMENT '发货时间',
  346. `query_time` datetime NOT NULL COMMENT '用户确认收货时间',
  347. `success_time` datetime NOT NULL COMMENT '交易完成时间',
  348. `create_time` datetime NOT NULL COMMENT '订单创建时间',
  349. PRIMARY KEY (`order_id`),
  350. KEY `user_id` (`user_id`),
  351. KEY `shipping_id` (`shipping_id`),
  352. KEY `pay_id` (`pay_id`),
  353. KEY `order_sn` (`order_sn`)
  354. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单表' AUTO_INCREMENT=21 ;
  355. --
  356. -- 转存表中的数据 `szj_orders`
  357. --
  358. INSERT INTO `szj_orders` (`order_id`, `order_sn`, `order_status`, `pay_sn`, `user_id`, `order_amount`, `user_remarks`, `seller_remarks`, `consignee`, `province_id`, `city_id`, `county_id`, `address`, `mobile`, `shipping_id`, `pay_id`, `shipping_fee`, `surplus_amout`, `activity_id`, `activity_name`, `activity_desc`, `is_urge`, `is_express`, `express_sn`, `express_id`, `deliver_desc`, `deliver_time`, `query_time`, `success_time`, `create_time`) VALUES
  359. (1, 'W20220326185442388300', 4, 'Y2022032618544201158', 1, 1194.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 1194.00, 0, '', '', 1, 2, '', 0, '您买的商品已经发货,请保持联系电话畅通!', '2022-03-26 18:58:40', '2022-03-26 19:58:34', '2022-03-27 15:46:40', '2022-03-26 18:54:42'),
  360. (2, 'W20220326194826633052', 4, 'Y2022032619482601458', 1, 8202.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 8202.00, 0, '', '', 2, 2, '', 0, '订单已发货,请保持联系电话畅通', '2022-03-26 19:50:33', '2022-03-26 19:58:24', '2022-03-27 15:44:48', '2022-03-26 19:48:26'),
  361. (3, 'W20220327162022356741', 4, 'Y2022032716202201572', 1, 5622.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 5622.00, 0, '', '', 0, 2, '', 0, '已发货', '2022-03-27 19:02:54', '2022-03-27 19:03:06', '2022-03-27 19:04:34', '2022-03-27 16:20:22'),
  362. (4, 'W20220327164943407064', 4, 'Y2022032716494301393', 1, 1194.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 1194.00, 0, '', '', 0, 2, '', 0, '已发货,请保持联系电话畅通', '2022-03-27 16:51:20', '2022-03-27 16:51:44', '2022-03-27 16:53:49', '2022-03-27 16:49:43'),
  363. (5, 'W20220327165558763224', 6, '', 1, 1598.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 50.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 16:55:58'),
  364. (6, 'W20220327190139130299', 6, '', 1, 1194.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 50.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 19:01:39'),
  365. (7, 'W20220327191130219379', 6, '', 1, 3594.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 19:11:30'),
  366. (9, 'W20220327191744723029', 6, '', 1, 799.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 19:17:44'),
  367. (10, 'W20220327191845258781', 6, '', 1, 1194.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 19:18:45'),
  368. (11, 'W20220327202657633061', 6, '', 1, 1194.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 20:26:57'),
  369. (12, 'W20220327202803123126', 2, 'Y2022032720280301855', 1, 1194.00, '', '', '一个小哥', 440000, 441600, 441602, '广东省河源市源城区宝源学校公交车站', '15219840108', 0, 1, 0.00, 1194.00, 0, '', '', 1, 2, '', 0, '订单已发货,请电话畅通', '2022-03-27 20:29:48', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-27 20:28:03'),
  370. (13, 'W20220329105750596109', 0, '', 2, 1194.00, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 10.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 10:57:50'),
  371. (14, 'W20220329110647161176', 0, '', 2, 1194.00, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:06:47'),
  372. (15, 'W20220329110814138579', 0, '', 2, 1194.00, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:08:14'),
  373. (16, 'W20220329111244202920', 0, '', 2, 1194.00, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:12:44'),
  374. (17, 'W20220329111843291657', 0, '', 2, 1194.00, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:18:43'),
  375. (18, 'W20220329112531761799', 0, '', 2, 0.10, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:25:31'),
  376. (19, 'W20220329112605646837', 0, '', 2, 0.10, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:26:05'),
  377. (20, 'W20220329113057244351', 0, '', 2, 0.10, '', '', '罗勇', 440000, 441600, 441602, '广东省河源市源城区永福农贸中心市场三楼', '15219840108', 0, 1, 0.00, 0.00, 0, '', '', 0, 0, '', 0, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-03-29 11:30:57');
  378. -- --------------------------------------------------------
  379. --
  380. -- 表的结构 `szj_orders_action`
  381. --
  382. CREATE TABLE IF NOT EXISTS `szj_orders_action` (
  383. `action_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志ID',
  384. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  385. `order_id` int(10) unsigned NOT NULL COMMENT '订单ID',
  386. `action_desc` varchar(255) NOT NULL COMMENT '操作描述',
  387. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  388. `create_time` datetime NOT NULL COMMENT '创建时间',
  389. PRIMARY KEY (`action_id`)
  390. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单操作记录表' AUTO_INCREMENT=26 ;
  391. --
  392. -- 转存表中的数据 `szj_orders_action`
  393. --
  394. INSERT INTO `szj_orders_action` (`action_id`, `admin_id`, `order_id`, `action_desc`, `update_time`, `create_time`) VALUES
  395. (1, 0, 1, '用户催发货', '2022-03-26 10:56:28', '2022-03-26 18:56:21'),
  396. (2, 1, 1, '订单发货', '2022-03-26 10:58:47', '2022-03-26 18:58:40'),
  397. (3, 0, 2, '用户催发货', '2022-03-26 11:49:59', '2022-03-26 19:49:53'),
  398. (4, 0, 2, '用户催发货', '2022-03-26 11:50:05', '2022-03-26 19:49:59'),
  399. (5, 1, 2, '订单发货', '2022-03-26 11:50:39', '2022-03-26 19:50:33'),
  400. (6, 0, 2, '用户已收货', '2022-03-26 11:58:31', '2022-03-26 19:58:24'),
  401. (7, 0, 1, '用户已收货', '2022-03-26 11:58:40', '2022-03-26 19:58:34'),
  402. (8, 0, 2, '商品进行评价', '2022-03-27 07:30:40', '2022-03-27 15:30:34'),
  403. (9, 0, 2, '商品进行评价', '2022-03-27 07:44:54', '2022-03-27 15:44:48'),
  404. (10, 0, 1, '商品进行评价', '2022-03-27 07:46:46', '2022-03-27 15:46:40'),
  405. (11, 1, 4, '订单发货', '2022-03-27 08:51:26', '2022-03-27 16:51:20'),
  406. (12, 0, 4, '用户已收货', '2022-03-27 08:51:49', '2022-03-27 16:51:44'),
  407. (13, 0, 4, '商品进行评价', '2022-03-27 08:53:55', '2022-03-27 16:53:49'),
  408. (14, 0, 6, '用户取消订单', '2022-03-27 11:02:23', '2022-03-27 19:02:17'),
  409. (15, 0, 5, '用户取消订单', '2022-03-27 11:02:29', '2022-03-27 19:02:23'),
  410. (16, 1, 3, '订单发货', '2022-03-27 11:03:00', '2022-03-27 19:02:54'),
  411. (17, 0, 3, '用户已收货', '2022-03-27 11:03:11', '2022-03-27 19:03:06'),
  412. (18, 0, 3, '商品进行评价', '2022-03-27 11:03:47', '2022-03-27 19:03:41'),
  413. (19, 0, 3, '商品进行评价', '2022-03-27 11:04:40', '2022-03-27 19:04:34'),
  414. (20, 0, 7, '用户取消订单', '2022-03-27 11:16:43', '2022-03-27 19:16:37'),
  415. (21, 0, 9, '用户取消订单', '2022-03-27 11:18:11', '2022-03-27 19:18:06'),
  416. (22, 0, 10, '用户取消订单', '2022-03-27 11:19:17', '2022-03-27 19:19:11'),
  417. (23, 0, 11, '用户取消订单', '2022-03-27 12:27:36', '2022-03-27 20:27:30'),
  418. (24, 0, 12, '用户催发货', '2022-03-27 12:29:26', '2022-03-27 20:29:20'),
  419. (25, 1, 12, '订单发货', '2022-03-27 12:29:54', '2022-03-27 20:29:48');
  420. -- --------------------------------------------------------
  421. --
  422. -- 表的结构 `szj_orders_products`
  423. --
  424. CREATE TABLE IF NOT EXISTS `szj_orders_products` (
  425. `rec_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  426. `order_id` int(10) unsigned NOT NULL COMMENT '订单ID',
  427. `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
  428. `product_name` varchar(255) NOT NULL COMMENT '商品名称',
  429. `product_image` varchar(255) NOT NULL COMMENT '商品图片',
  430. `product_count` int(10) unsigned NOT NULL COMMENT '商品数量',
  431. `shop_price` float(10,2) unsigned NOT NULL COMMENT '商品价格',
  432. `goods_type` tinyint(1) unsigned NOT NULL COMMENT '商品类型',
  433. `activity_id` int(10) unsigned NOT NULL COMMENT '活动ID',
  434. `activity_name` varchar(255) NOT NULL COMMENT '活动名称',
  435. `activity_desc` varchar(255) NOT NULL COMMENT '活动描述',
  436. `is_deliver` tinyint(1) unsigned NOT NULL COMMENT '是否已发货',
  437. `deliver_count` int(10) unsigned NOT NULL COMMENT '发货数量',
  438. `total_price` float(10,2) unsigned NOT NULL COMMENT '小计金额',
  439. `create_time` datetime NOT NULL COMMENT '创建时间',
  440. PRIMARY KEY (`rec_id`),
  441. KEY `order_id` (`order_id`)
  442. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单商品表' AUTO_INCREMENT=23 ;
  443. --
  444. -- 转存表中的数据 `szj_orders_products`
  445. --
  446. INSERT INTO `szj_orders_products` (`rec_id`, `order_id`, `product_id`, `product_name`, `product_image`, `product_count`, `shop_price`, `goods_type`, `activity_id`, `activity_name`, `activity_desc`, `is_deliver`, `deliver_count`, `total_price`, `create_time`) VALUES
  447. (1, 1, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 2, 1194.00, 1, 0, '', '', 1, 1, 1194.00, '2022-03-26 18:54:42'),
  448. (2, 2, 5, '贵州茅台醇1998柔和酱香型白酒53度高度纯粮食酒水500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/ce4acb695a79c3bb148395c375babbc5d60fc635.jpeg', 1, 2214.00, 1, 0, '', '', 1, 1, 2214.00, '2022-03-26 19:48:26'),
  449. (3, 2, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 1, 1, 1194.00, '2022-03-26 19:48:26'),
  450. (4, 2, 1, '茅台醇天青柔和酱香型白酒53度500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/3197e529c82e18d911510c974936e33e4dc27786.jpeg', 1, 4794.00, 1, 0, '', '', 1, 1, 4794.00, '2022-03-26 19:48:26'),
  451. (5, 3, 5, '贵州茅台醇1998柔和酱香型白酒53度高度纯粮食酒水500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/ce4acb695a79c3bb148395c375babbc5d60fc635.jpeg', 2, 2214.00, 1, 0, '', '', 1, 2, 4428.00, '2022-03-27 16:20:22'),
  452. (6, 3, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 1, 1, 1194.00, '2022-03-27 16:20:22'),
  453. (7, 4, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 1, 1, 1194.00, '2022-03-27 16:49:43'),
  454. (8, 5, 2, '茅台醇天青柔和酱香型白酒53度500ml*2瓶礼盒装', 'http://attachs.sizhijie.com/ycjj-oss/202bded37a52b30a0c92602647e943f71bd94f24.jpeg', 1, 1598.00, 1, 0, '', '', 0, 0, 1598.00, '2022-03-27 16:55:58'),
  455. (9, 6, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-27 19:01:39'),
  456. (10, 7, 4, '贵州茅台醇1992柔和酱香型白酒53度纯粮食酒高度酒水珍珠白瓶装礼盒500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/793f2ace3552bdd16f724c0a0c6d1ced1e8dd2be.jpeg', 1, 3594.00, 1, 0, '', '', 0, 0, 3594.00, '2022-03-27 19:11:30'),
  457. (11, 9, 3, '茅台醇天青柔和酱香型白酒53度500ml单瓶礼盒装', 'http://attachs.sizhijie.com/ycjj-oss/f4823e8c50cef6739548a0e0c795612201834bd8.jpeg', 1, 799.00, 1, 0, '', '', 0, 0, 799.00, '2022-03-27 19:17:44'),
  458. (12, 10, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-27 19:18:45'),
  459. (13, 11, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-27 20:26:57'),
  460. (14, 12, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 1, 1, 1194.00, '2022-03-27 20:28:03'),
  461. (15, 13, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-29 10:57:50'),
  462. (16, 14, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-29 11:06:47'),
  463. (17, 15, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-29 11:08:14'),
  464. (18, 16, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-29 11:12:44'),
  465. (19, 17, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 1194.00, 1, 0, '', '', 0, 0, 1194.00, '2022-03-29 11:18:43'),
  466. (20, 18, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 0.10, 1, 0, '', '', 0, 0, 0.10, '2022-03-29 11:25:31'),
  467. (21, 19, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 0.10, 1, 0, '', '', 0, 0, 0.10, '2022-03-29 11:26:05'),
  468. (22, 20, 6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 1, 0.10, 1, 0, '', '', 0, 0, 0.10, '2022-03-29 11:30:57');
  469. -- --------------------------------------------------------
  470. --
  471. -- 表的结构 `szj_payments`
  472. --
  473. CREATE TABLE IF NOT EXISTS `szj_payments` (
  474. `payment_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  475. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  476. `pay_id` int(10) unsigned NOT NULL COMMENT '支付方式',
  477. `out_trade_no` varchar(30) NOT NULL COMMENT '商户单号',
  478. `total_fee` int(10) unsigned NOT NULL COMMENT '交易总金额 分',
  479. `trade_type` varchar(100) NOT NULL COMMENT '交易类型',
  480. `transaction_id` varchar(255) NOT NULL COMMENT '微信单号',
  481. `time_end` varchar(100) NOT NULL COMMENT '交易完成时间',
  482. `openid` varchar(100) NOT NULL COMMENT '用户openid',
  483. `sub_is_subscribe` varchar(10) NOT NULL COMMENT '是否关注子商户',
  484. `sub_openid` varchar(100) NOT NULL COMMENT '子商户用户openid',
  485. `is_subscribe` varchar(10) NOT NULL COMMENT '是否关注商户',
  486. `fee_type` varchar(100) NOT NULL COMMENT '货币类型',
  487. `bank_type` varchar(100) NOT NULL COMMENT '银行卡类型',
  488. `cash_fee` int(10) unsigned NOT NULL COMMENT '现金支付金额 分',
  489. `is_refund` tinyint(1) unsigned NOT NULL COMMENT '是否退款',
  490. `refund_trade_no` varchar(100) NOT NULL COMMENT '退款单号',
  491. `refund_desc` varchar(255) NOT NULL COMMENT '退款描述',
  492. `refund_time` datetime NOT NULL COMMENT '退款时间',
  493. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '写入时间',
  494. PRIMARY KEY (`payment_id`),
  495. KEY `out_trade_no` (`out_trade_no`)
  496. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付和退费记录表' AUTO_INCREMENT=6 ;
  497. --
  498. -- 转存表中的数据 `szj_payments`
  499. --
  500. INSERT INTO `szj_payments` (`payment_id`, `user_id`, `pay_id`, `out_trade_no`, `total_fee`, `trade_type`, `transaction_id`, `time_end`, `openid`, `sub_is_subscribe`, `sub_openid`, `is_subscribe`, `fee_type`, `bank_type`, `cash_fee`, `is_refund`, `refund_trade_no`, `refund_desc`, `refund_time`, `create_time`) VALUES
  501. (1, 1, 0, 'Y2022032618544201158', 119400, '余额支付', '', '20220326185442', 'oSF4duIAfTLdEMukzNOpYPAuJxEo', '', '', '', '余额', '商城余额', 119400, 0, '', '', '0000-00-00 00:00:00', '2022-03-26 10:54:42'),
  502. (2, 1, 0, 'Y2022032619482601458', 820200, '余额支付', '', '20220326194826', 'oSF4duIAfTLdEMukzNOpYPAuJxEo', '', '', '', '余额', '商城余额', 820200, 0, '', '', '0000-00-00 00:00:00', '2022-03-26 11:48:26'),
  503. (3, 1, 0, 'Y2022032716202201572', 562200, '余额支付', '', '20220327162022', 'oSF4duIAfTLdEMukzNOpYPAuJxEo', '', '', '', '余额', '商城余额', 562200, 0, '', '', '0000-00-00 00:00:00', '2022-03-27 08:20:22'),
  504. (4, 1, 0, 'Y2022032716494301393', 119400, '余额支付', '', '20220327164943', 'oSF4duIAfTLdEMukzNOpYPAuJxEo', '', '', '', '余额', '商城余额', 119400, 0, '', '', '0000-00-00 00:00:00', '2022-03-27 08:49:43'),
  505. (5, 1, 0, 'Y2022032720280301855', 119400, '余额支付', '', '20220327202803', 'oSF4duIAfTLdEMukzNOpYPAuJxEo', '', '', '', '余额', '商城余额', 119400, 0, '', '', '0000-00-00 00:00:00', '2022-03-27 12:28:03');
  506. -- --------------------------------------------------------
  507. --
  508. -- 表的结构 `szj_pays_config`
  509. --
  510. CREATE TABLE IF NOT EXISTS `szj_pays_config` (
  511. `pay_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '支付ID',
  512. `pay_name` varchar(255) NOT NULL COMMENT '支付名称',
  513. `pay_logo` varchar(255) NOT NULL COMMENT '支付logo',
  514. `pay_params_index` varchar(255) NOT NULL COMMENT '支付参数索引 关联配置表里面的索引',
  515. `pay_status` tinyint(1) unsigned NOT NULL COMMENT '是否启用',
  516. `pay_sort` tinyint(1) unsigned NOT NULL COMMENT '排序序号',
  517. `is_default` tinyint(1) unsigned NOT NULL COMMENT '是否默认',
  518. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  519. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  520. `create_time` datetime NOT NULL COMMENT '创建时间',
  521. PRIMARY KEY (`pay_id`)
  522. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付配置表' AUTO_INCREMENT=3 ;
  523. --
  524. -- 转存表中的数据 `szj_pays_config`
  525. --
  526. INSERT INTO `szj_pays_config` (`pay_id`, `pay_name`, `pay_logo`, `pay_params_index`, `pay_status`, `pay_sort`, `is_default`, `admin_id`, `update_time`, `create_time`) VALUES
  527. (1, '微信支付', 'https://pic38.photophoto.cn/20160325/0007019842511399_b.jpg', '', 1, 99, 1, 1, '2022-03-27 08:49:31', '2022-02-19 11:47:52'),
  528. (2, '找人代付', 'https://pic38.photophoto.cn/20160325/0007019842511399_b.jpg', '', 0, 99, 0, 1, '2022-03-27 08:49:26', '2022-02-19 11:48:21');
  529. -- --------------------------------------------------------
  530. --
  531. -- 表的结构 `szj_products`
  532. --
  533. CREATE TABLE IF NOT EXISTS `szj_products` (
  534. `product_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '产品ID',
  535. `product_name` varchar(255) NOT NULL COMMENT '产品名称',
  536. `product_desction` varchar(255) NOT NULL COMMENT '产品简单描述',
  537. `product_stock` int(10) unsigned NOT NULL COMMENT '产品库存',
  538. `product_image` varchar(255) NOT NULL COMMENT '产品封面图',
  539. `market_price` float(10,2) unsigned NOT NULL COMMENT '市场价',
  540. `cost_price` float(10,2) unsigned NOT NULL COMMENT '成本价',
  541. `shop_price` float(10,2) unsigned NOT NULL COMMENT '商詀销售价 如果有活动,活动价优化优先',
  542. `activity_id` int(10) unsigned NOT NULL COMMENT '活动ID',
  543. `carousel_id` int(10) unsigned NOT NULL COMMENT '产品相册集',
  544. `category_id` int(10) unsigned NOT NULL COMMENT '产品分类',
  545. `product_sn` char(20) NOT NULL COMMENT '产品货号',
  546. `supplier_id` int(10) unsigned NOT NULL COMMENT '供货商ID',
  547. `is_sale` tinyint(1) unsigned NOT NULL COMMENT '是否在销售中',
  548. `alert_stock` int(10) unsigned NOT NULL COMMENT '库存告警数',
  549. `goods_type` tinyint(1) unsigned NOT NULL COMMENT '货物类型 1实物 2虚拟产品 3配件',
  550. `sale_count` int(10) unsigned NOT NULL COMMENT '销售数量',
  551. `is_new` tinyint(1) unsigned NOT NULL COMMENT '是否新品',
  552. `is_home` tinyint(1) unsigned NOT NULL COMMENT '首页展示',
  553. `is_hot` tinyint(1) unsigned NOT NULL COMMENT '是否热销',
  554. `content_id` int(10) unsigned NOT NULL COMMENT '产品内容详情ID',
  555. `admin_id` int(10) unsigned NOT NULL COMMENT '操作人',
  556. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  557. `create_time` datetime NOT NULL COMMENT '创建时间',
  558. PRIMARY KEY (`product_id`)
  559. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品表' AUTO_INCREMENT=7 ;
  560. --
  561. -- 转存表中的数据 `szj_products`
  562. --
  563. INSERT INTO `szj_products` (`product_id`, `product_name`, `product_desction`, `product_stock`, `product_image`, `market_price`, `cost_price`, `shop_price`, `activity_id`, `carousel_id`, `category_id`, `product_sn`, `supplier_id`, `is_sale`, `alert_stock`, `goods_type`, `sale_count`, `is_new`, `is_home`, `is_hot`, `content_id`, `admin_id`, `update_time`, `create_time`) VALUES
  564. (1, '茅台醇天青柔和酱香型白酒53度500ml*6瓶整箱装', '', 99, 'http://attachs.sizhijie.com/ycjj-oss/3197e529c82e18d911510c974936e33e4dc27786.jpeg', 11985.00, 0.00, 4794.00, 0, 1, 1, '20220216161925-87878', 0, 1, 10, 1, 0, 0, 1, 0, 1, 1, '2022-03-09 08:28:52', '2022-02-16 16:19:25'),
  565. (2, '茅台醇天青柔和酱香型白酒53度500ml*2瓶礼盒装', '', 99, 'http://attachs.sizhijie.com/ycjj-oss/202bded37a52b30a0c92602647e943f71bd94f24.jpeg', 3995.00, 0.00, 1598.00, 0, 2, 2, '20220216162337-97259', 0, 1, 10, 1, 0, 0, 1, 0, 2, 1, '2022-03-09 08:28:45', '2022-02-16 16:23:37'),
  566. (3, '茅台醇天青柔和酱香型白酒53度500ml单瓶礼盒装', '', 99, 'http://attachs.sizhijie.com/ycjj-oss/f4823e8c50cef6739548a0e0c795612201834bd8.jpeg', 1997.50, 0.00, 799.00, 0, 3, 3, '20220216162636-65523', 0, 1, 10, 1, 0, 1, 1, 0, 3, 1, '2022-03-09 08:28:40', '2022-02-16 16:26:35'),
  567. (4, '贵州茅台醇1992柔和酱香型白酒53度纯粮食酒高度酒水珍珠白瓶装礼盒500ml*6瓶整箱装', '', 99, 'http://attachs.sizhijie.com/ycjj-oss/793f2ace3552bdd16f724c0a0c6d1ced1e8dd2be.jpeg', 8985.00, 0.00, 3594.00, 0, 4, 1, '20220216163202-57989', 0, 1, 10, 1, 0, 0, 1, 0, 4, 1, '2022-03-09 08:28:28', '2022-02-16 16:32:02'),
  568. (5, '贵州茅台醇1998柔和酱香型白酒53度高度纯粮食酒水500ml*6瓶整箱装', '', 99, 'http://attachs.sizhijie.com/ycjj-oss/ce4acb695a79c3bb148395c375babbc5d60fc635.jpeg', 5535.00, 0.00, 2214.00, 0, 5, 1, '20220216164354-13148', 0, 1, 0, 1, 0, 0, 1, 1, 5, 1, '2022-03-09 08:28:34', '2022-02-16 16:43:53'),
  569. (6, '贵州茅台醇2008柔和酱香型白酒53度高度纯粮食酒酒水旗舰店500ml*6瓶整箱装', '', 99, 'http://attachs.sizhijie.com/ycjj-oss/aea0e5e6a8a09d25c3c0dfb37013f33d2de47365.jpeg', 2985.00, 0.00, 0.10, 0, 6, 1, '20220216164806-84900', 4, 1, 10, 1, 10, 1, 1, 0, 6, 1, '2022-03-29 03:23:53', '2022-02-16 16:48:06');
  570. -- --------------------------------------------------------
  571. --
  572. -- 表的结构 `szj_product_brands`
  573. --
  574. CREATE TABLE IF NOT EXISTS `szj_product_brands` (
  575. `brand_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '产品品牌表',
  576. `brand_name` varchar(255) NOT NULL,
  577. `brand_logo` varchar(255) NOT NULL COMMENT '品牌logo',
  578. `admin_id` int(10) unsigned NOT NULL COMMENT '操作人',
  579. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  580. `create_time` datetime NOT NULL COMMENT '创建时间',
  581. PRIMARY KEY (`brand_id`)
  582. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='品牌表' AUTO_INCREMENT=3 ;
  583. --
  584. -- 转存表中的数据 `szj_product_brands`
  585. --
  586. INSERT INTO `szj_product_brands` (`brand_id`, `brand_name`, `brand_logo`, `admin_id`, `update_time`, `create_time`) VALUES
  587. (2, '茅台淳', 'http://attachs.sizhijie.com/szjkj-common-oss/9a40418e50e8d5dc2ec55c60e24d3d646d768664.png', 1, '2022-02-09 08:34:05', '2022-02-09 16:26:47');
  588. -- --------------------------------------------------------
  589. --
  590. -- 表的结构 `szj_product_carousels`
  591. --
  592. CREATE TABLE IF NOT EXISTS `szj_product_carousels` (
  593. `carousel_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '相册ID',
  594. `content` text NOT NULL COMMENT '相册内容',
  595. `admin_id` int(10) unsigned NOT NULL COMMENT '操作人',
  596. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  597. `create_time` datetime NOT NULL COMMENT '创建时间',
  598. PRIMARY KEY (`carousel_id`)
  599. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品相册表' AUTO_INCREMENT=7 ;
  600. --
  601. -- 转存表中的数据 `szj_product_carousels`
  602. --
  603. INSERT INTO `szj_product_carousels` (`carousel_id`, `content`, `admin_id`, `update_time`, `create_time`) VALUES
  604. (1, 'http://attachs.sizhijie.com/ycjj-oss/94134786bd665861f5f3fc286f8f64f8449d9518.jpg,http://attachs.sizhijie.com/ycjj-oss/21468249089150cb7af9732c846650d1b4db4390.jpg,http://attachs.sizhijie.com/ycjj-oss/34a98d5f4d22edc0425f136e488bd2ee15233e48.jpg,http://attachs.sizhijie.com/ycjj-oss/3cbe3175336a5a9eef5853d360b1d8c19b748a0a.jpg,http://attachs.sizhijie.com/ycjj-oss/a1893e63f3010a6ce652ee9abc639d9466c859c4.jpg,http://attachs.sizhijie.com/ycjj-oss/f62dee61e21e4ef51671ddd880f088bb1741f898.jpg', 1, '2022-02-16 08:22:48', '2022-02-16 16:19:25'),
  605. (2, 'http://attachs.sizhijie.com/ycjj-oss/202bded37a52b30a0c92602647e943f71bd94f24.jpeg,http://attachs.sizhijie.com/ycjj-oss/34a98d5f4d22edc0425f136e488bd2ee15233e48.jpg,http://attachs.sizhijie.com/ycjj-oss/3cbe3175336a5a9eef5853d360b1d8c19b748a0a.jpg,http://attachs.sizhijie.com/ycjj-oss/21468249089150cb7af9732c846650d1b4db4390.jpg,http://attachs.sizhijie.com/ycjj-oss/a1893e63f3010a6ce652ee9abc639d9466c859c4.jpg,http://attachs.sizhijie.com/ycjj-oss/f62dee61e21e4ef51671ddd880f088bb1741f898.jpg', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  606. (3, 'http://attachs.sizhijie.com/ycjj-oss/d7dd24a267c65789fe6c73eee847f301cc44e810.jpg,http://attachs.sizhijie.com/ycjj-oss/21468249089150cb7af9732c846650d1b4db4390.jpg,http://attachs.sizhijie.com/ycjj-oss/34a98d5f4d22edc0425f136e488bd2ee15233e48.jpg,http://attachs.sizhijie.com/ycjj-oss/a1893e63f3010a6ce652ee9abc639d9466c859c4.jpg,http://attachs.sizhijie.com/ycjj-oss/3cbe3175336a5a9eef5853d360b1d8c19b748a0a.jpg,http://attachs.sizhijie.com/ycjj-oss/f62dee61e21e4ef51671ddd880f088bb1741f898.jpg', 1, '2022-02-16 08:29:59', '2022-02-16 16:26:35'),
  607. (4, 'http://attachs.sizhijie.com/ycjj-oss/6f01a82b76e00255e2f4d3f0103d624d5b848b4d.jpg,http://attachs.sizhijie.com/ycjj-oss/ffeb39b631bf5107bcbbd823a95f807edaf90650.jpg,http://attachs.sizhijie.com/ycjj-oss/3607236c92c958858074254d8d0ca89c84fdc86a.jpg,http://attachs.sizhijie.com/ycjj-oss/ac65bc91c9603467e1ab0dab0098b7456fdf52d7.jpg,http://attachs.sizhijie.com/ycjj-oss/14944de0d272afcbdadf1df11a83add3e21af66a.jpg,http://attachs.sizhijie.com/ycjj-oss/4b8edff24ede7758cf708c2a3f1775dfa4a79473.jpg', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  608. (5, 'http://attachs.sizhijie.com/ycjj-oss/edd8720897c61735d1c2a8f803cf91637c1ccba3.jpg,http://attachs.sizhijie.com/ycjj-oss/555d8c6d613e9356e5c861cdc3482d4a28a71795.jpg,http://attachs.sizhijie.com/ycjj-oss/f671ba9fc88ca4f25a3b099556119afda28c669b.jpg,http://attachs.sizhijie.com/ycjj-oss/1030a5b8c3676dcd229a25b1a1f029e661ce4de4.jpg,http://attachs.sizhijie.com/ycjj-oss/b9589f6deb871b96ea50ac23a335a877ce4d2910.jpg,http://attachs.sizhijie.com/ycjj-oss/374d2aa3d031210ab028be10f59486de5cbe21ae.jpg', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:53'),
  609. (6, 'http://attachs.sizhijie.com/ycjj-oss/56922c6ddccbe92b82c518b3bb5a33676a9eca3d.jpg,http://attachs.sizhijie.com/ycjj-oss/64bdb612569aeec035a2181a894b7ffe039a1fbe.jpg,http://attachs.sizhijie.com/ycjj-oss/c6a658fa3af88528aaefeb8abf18ee51671d9f42.jpg,http://attachs.sizhijie.com/ycjj-oss/7ae4663c0bed0006aeb322ba9b961c12456b1689.jpg,http://attachs.sizhijie.com/ycjj-oss/cea8b97cceac550be46fa3a67282581513f96bac.jpg,http://attachs.sizhijie.com/ycjj-oss/2ca0dff0e0c82318cc7c1da6f44e3597359a0012.jpg', 1, '2022-03-29 03:23:53', '2022-02-16 16:48:06');
  610. -- --------------------------------------------------------
  611. --
  612. -- 表的结构 `szj_product_category`
  613. --
  614. CREATE TABLE IF NOT EXISTS `szj_product_category` (
  615. `category_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID',
  616. `category_name` varchar(255) NOT NULL COMMENT '分类名称',
  617. `pid` int(10) unsigned NOT NULL COMMENT '上级ID',
  618. `category_image` varchar(255) NOT NULL COMMENT '分类图片',
  619. `category_sort` int(10) unsigned NOT NULL COMMENT '分类排序',
  620. `is_show` tinyint(1) unsigned NOT NULL COMMENT '是否显示',
  621. `is_nav` tinyint(1) unsigned NOT NULL COMMENT '是否设为导航',
  622. `category_attrs` text NOT NULL COMMENT '分类属性',
  623. `admin_id` int(10) unsigned NOT NULL COMMENT '操作人员',
  624. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  625. `create_time` datetime NOT NULL COMMENT '创建时间',
  626. PRIMARY KEY (`category_id`)
  627. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品分类表' AUTO_INCREMENT=7 ;
  628. --
  629. -- 转存表中的数据 `szj_product_category`
  630. --
  631. INSERT INTO `szj_product_category` (`category_id`, `category_name`, `pid`, `category_image`, `category_sort`, `is_show`, `is_nav`, `category_attrs`, `admin_id`, `update_time`, `create_time`) VALUES
  632. (1, '整箱', 0, '', 99, 1, 0, '[{"item_id":7,"is_filter":false,"type_id":1},{"item_id":6,"is_filter":false,"type_id":1},{"item_id":5,"is_filter":false,"type_id":1},{"item_id":4,"is_filter":false,"type_id":1},{"item_id":3,"is_filter":false,"type_id":1},{"item_id":2,"is_filter":false,"type_id":1},{"item_id":1,"is_filter":false,"type_id":1}]', 1, '2022-02-16 08:08:11', '2022-02-16 15:48:46'),
  633. (2, '两瓶', 0, '', 99, 1, 0, '[{"item_id":7,"is_filter":false,"type_id":1},{"item_id":6,"is_filter":false,"type_id":1},{"item_id":5,"is_filter":false,"type_id":1},{"item_id":4,"is_filter":false,"type_id":1},{"item_id":3,"is_filter":false,"type_id":1},{"item_id":2,"is_filter":false,"type_id":1},{"item_id":1,"is_filter":false,"type_id":1}]', 1, '2022-02-16 08:07:38', '2022-02-16 15:49:02'),
  634. (3, '单瓶', 0, '', 99, 1, 0, '[{"item_id":7,"is_filter":false,"type_id":1},{"item_id":6,"is_filter":false,"type_id":1},{"item_id":5,"is_filter":false,"type_id":1},{"item_id":4,"is_filter":false,"type_id":1},{"item_id":3,"is_filter":false,"type_id":1},{"item_id":2,"is_filter":false,"type_id":1},{"item_id":1,"is_filter":false,"type_id":1}]', 1, '2022-02-16 08:07:00', '2022-02-16 15:49:18'),
  635. (4, '1992', 0, 'https://imge.tianfuture.com/1407/image/2021/02/5428c0b8251cd6372f88e11f938ec5b0.jpg?imageMogr2/auto-orient/thumbnail/2000x/format/jpg/blur/2x0/quality/95|imageslim', 99, 1, 0, '[{"item_id":7,"is_filter":false,"type_id":1},{"item_id":6,"is_filter":false,"type_id":1},{"item_id":5,"is_filter":false,"type_id":1},{"item_id":4,"is_filter":false,"type_id":1},{"item_id":3,"is_filter":false,"type_id":1},{"item_id":2,"is_filter":false,"type_id":1},{"item_id":1,"is_filter":false,"type_id":1}]', 1, '2022-02-16 08:06:23', '2022-02-16 15:49:34'),
  636. (5, '1998', 0, '', 99, 1, 0, '[{"item_id":7,"is_filter":false,"type_id":1},{"item_id":6,"is_filter":false,"type_id":1},{"item_id":5,"is_filter":false,"type_id":1},{"item_id":4,"is_filter":false,"type_id":1},{"item_id":3,"is_filter":false,"type_id":1},{"item_id":2,"is_filter":false,"type_id":1},{"item_id":1,"is_filter":false,"type_id":1}]', 1, '2022-02-16 08:05:29', '2022-02-16 15:49:50'),
  637. (6, '2008', 0, '', 99, 1, 0, '[{"item_id":7,"is_filter":false,"type_id":1},{"item_id":6,"is_filter":false,"type_id":1},{"item_id":5,"is_filter":false,"type_id":1},{"item_id":4,"is_filter":false,"type_id":1},{"item_id":3,"is_filter":false,"type_id":1},{"item_id":2,"is_filter":false,"type_id":1},{"item_id":1,"is_filter":false,"type_id":1}]', 1, '2022-02-16 08:05:49', '2022-02-16 15:50:28');
  638. -- --------------------------------------------------------
  639. --
  640. -- 表的结构 `szj_product_comment`
  641. --
  642. CREATE TABLE IF NOT EXISTS `szj_product_comment` (
  643. `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '评论ID',
  644. `product_rate` tinyint(1) unsigned NOT NULL COMMENT '商品评分',
  645. `order_id` int(10) unsigned NOT NULL COMMENT '订单ID',
  646. `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
  647. `comment` varchar(255) NOT NULL COMMENT '评论内容',
  648. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  649. `status` tinyint(1) unsigned NOT NULL COMMENT '评论状态 0未审核 1审核通过 2不显示',
  650. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  651. `create_time` datetime NOT NULL COMMENT '创建时间',
  652. PRIMARY KEY (`comment_id`)
  653. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品评论表' AUTO_INCREMENT=8 ;
  654. --
  655. -- 转存表中的数据 `szj_product_comment`
  656. --
  657. INSERT INTO `szj_product_comment` (`comment_id`, `product_rate`, `order_id`, `product_id`, `comment`, `user_id`, `status`, `update_time`, `create_time`) VALUES
  658. (1, 3, 2, 5, '商品不错,值得推荐', 1, 1, '2022-03-27 09:57:26', '2022-03-27 11:53:38'),
  659. (2, 5, 2, 6, '商品不错,值得推荐', 1, 1, '2022-03-27 09:51:59', '2022-03-27 15:30:33'),
  660. (3, 5, 2, 1, '性价比很高,您值得拥有', 1, 1, '2022-03-27 09:57:29', '2022-03-27 15:44:48'),
  661. (4, 5, 1, 6, '商品很好,值得推荐', 1, 1, '2022-03-27 09:57:32', '2022-03-27 15:46:40'),
  662. (5, 4, 4, 6, '商品很好,下次还继续买', 1, 1, '2022-03-27 09:52:03', '2022-03-27 16:53:48'),
  663. (6, 5, 3, 6, '商品不错,值得推荐,下次还莱购买', 1, 0, '2022-03-27 11:03:47', '2022-03-27 19:03:41'),
  664. (7, 5, 3, 5, '酒质量不错,喝了不上头,口感很好', 1, 0, '2022-03-27 11:04:40', '2022-03-27 19:04:34');
  665. -- --------------------------------------------------------
  666. --
  667. -- 表的结构 `szj_product_contents`
  668. --
  669. CREATE TABLE IF NOT EXISTS `szj_product_contents` (
  670. `content_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '内容ID',
  671. `desction` text NOT NULL COMMENT '详情',
  672. `admin_id` int(10) unsigned NOT NULL COMMENT '操作人',
  673. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  674. `create_time` datetime NOT NULL COMMENT '创建时间',
  675. PRIMARY KEY (`content_id`)
  676. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品内容详情介绍表' AUTO_INCREMENT=7 ;
  677. --
  678. -- 转存表中的数据 `szj_product_contents`
  679. --
  680. INSERT INTO `szj_product_contents` (`content_id`, `desction`, `admin_id`, `update_time`, `create_time`) VALUES
  681. (1, '<p> <img src="https://imge.tianfuture.com/1407/image/2021/02/ecdfe97e6131d8ed0b7fd71e6c273a39.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/430a08e2d3f4c5aaa0a2054f70a26c87.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e9ff0acdd29c8a76eba15a9ee3d1799d.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e73c460defee876617e3be95410031e4.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/45ce460883d49dbb86b54120681cf574.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/b4fe42f01cd69243f58cd02a45d2b559.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/6e9e8ca036c9debca84a3fbfed472ea8.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/fe9f2d0e182c56c3b14a5ee8358341fe.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/dbe772f82b6f384743fe22bec716141c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/561775beff0a2debc1ec6eac11d84899.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0808f8b71f0a53d63081d5de7d83f917.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/bd9fcd82093545429e1a4a3a153b5380.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/9c82b83a89cf4f719c824dceab1ed987.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/1319acbd095c5a20c36c5d1107f5c795.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/05/7e2b6190abe71010c5eab5b670b58c4b.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0825a673a4626a183d2382f30b7bba6c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0ff1be44c10b6c8258f690fe73059e58.jpg"/></p>', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  682. (2, '<p> <img src="https://imge.tianfuture.com/1407/image/2021/02/ecdfe97e6131d8ed0b7fd71e6c273a39.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/430a08e2d3f4c5aaa0a2054f70a26c87.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e9ff0acdd29c8a76eba15a9ee3d1799d.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e73c460defee876617e3be95410031e4.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/45ce460883d49dbb86b54120681cf574.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/b4fe42f01cd69243f58cd02a45d2b559.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/6e9e8ca036c9debca84a3fbfed472ea8.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/fe9f2d0e182c56c3b14a5ee8358341fe.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/dbe772f82b6f384743fe22bec716141c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/561775beff0a2debc1ec6eac11d84899.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0808f8b71f0a53d63081d5de7d83f917.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/bd9fcd82093545429e1a4a3a153b5380.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/9c82b83a89cf4f719c824dceab1ed987.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/1319acbd095c5a20c36c5d1107f5c795.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/05/7e2b6190abe71010c5eab5b670b58c4b.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0825a673a4626a183d2382f30b7bba6c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0ff1be44c10b6c8258f690fe73059e58.jpg"/></p>', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  683. (3, '<p> <img src="https://imge.tianfuture.com/1407/image/2021/02/ecdfe97e6131d8ed0b7fd71e6c273a39.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/430a08e2d3f4c5aaa0a2054f70a26c87.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e9ff0acdd29c8a76eba15a9ee3d1799d.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e73c460defee876617e3be95410031e4.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/45ce460883d49dbb86b54120681cf574.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/b4fe42f01cd69243f58cd02a45d2b559.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/6e9e8ca036c9debca84a3fbfed472ea8.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/fe9f2d0e182c56c3b14a5ee8358341fe.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/dbe772f82b6f384743fe22bec716141c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/561775beff0a2debc1ec6eac11d84899.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0808f8b71f0a53d63081d5de7d83f917.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/bd9fcd82093545429e1a4a3a153b5380.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/9c82b83a89cf4f719c824dceab1ed987.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/1319acbd095c5a20c36c5d1107f5c795.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/05/7e2b6190abe71010c5eab5b670b58c4b.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0825a673a4626a183d2382f30b7bba6c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/0ff1be44c10b6c8258f690fe73059e58.jpg"/></p>', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  684. (4, '<p> <img src="https://imge.tianfuture.com/1407/image/2021/02/9450c815fbbbf69f6e9f25438027ccfb.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/5a975266c63a59a3a1cdd489632464bc.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/ac6b3f97a93d90341a98659f9000ac85.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/16ad56f5a3f21af11ccf801479836e3d.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/291ffd87bb2e2b3d562b6addedc6b624.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/eec091cd545e6ee1c26af44d9c5b841c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/274e56d70ca456032fbd34d6c9267d35.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/7ad94af43a96b39cb2ad66be6a8d9433.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e5825d8feaf618d19191612c25b64fd7.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/e48aeaf7aa97917c23cae0066ca4c5d6.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/9b9589a2ab4030b630c0571882c32912.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/19deb1e2cb8ea1fd7fe125e4180a1438.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/dfc48db01e35272721f01a70af6ae25f.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/05/21eda01112bebc07ec74824c2c554e67.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/8d7ba3e1e8d5a03e4c55a3e614d43b3f.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/afdcfbfefdcf3dd3c647ca1aed148438.jpg"/></p>', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  685. (5, '<p> <img src="https://imge.tianfuture.com/1407/image/2021/02/d239bd2381a4da21d19134445fce4e58.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/29bb3447986c27957ef4e9c3727d0639.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/7def3194b3a9cc56dd856ab5fe35144a.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/5319f8adf7b096919d70ad92ec0bf0d1.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/460ffb88da5d02f50948a034f98abb19.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/7cdab499070215f99c2dd9088580a2b3.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/5446e4893e96ef511945b067ba97e112.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/f11ce34ade414eec39e89c0bca008c77.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/42272b821d58b09a167485f3ce7ba52d.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/21bb1ea8c84214e5a300eba26f000a74.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/15054ebda15ebda920ef8a7ec45678dc.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/27500018bf3803e6e3ff08a1f5a1d46e.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/05/329f66588e3a66be3044a11931fb7c04.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/74e03e840d87c7dc4e4a1cddc31c3629.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/d980e38d0a4f7a31d49a1719f2bc2ea4.jpg"/></p>', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  686. (6, '<p><br/> <img src="https://imge.tianfuture.com/1407/image/2021/02/883784fcec4812fe3a58f61a05e42c77.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/f58dc7d2d970e19220db3cc77cc10245.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/77bb51af215c10cc6a9c85cc5f92a102.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/4c4e852e415dd1311fbc22ef70314292.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/6a06dcfcfd4847b9d6709f97653b545e.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/c6b8dd0959f2ceb947c61a6dc34e4fcd.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/1c2d4717dc110fbc26487204d97f69d4.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/6498158935c4003cc1382adc7575574f.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/52f3c5429c99376f591c8fc21c9d4b97.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/3096eafcafc23baca2700a6aeaa75578.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/058985ffcca327c5c91b22460a9e20a2.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/cc3060f74945ab7b3578d9daa6e688f2.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/277d6b9bf53bdf9cdd62c5dc07f1ce6c.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/1fab6f02525e8db05a9c23c219ac75a5.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/018629142e57df27c2692cf270143f73.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/05/8eacab564ca46f6a49441264ed7bba3e.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/3a06fdda69f049a08054a650c6f2fc69.jpg"/><img src="https://imge.tianfuture.com/1407/image/2021/02/37c1e2959e39cae034d8fd11455bff05.jpg"/><br/></p>', 1, '2022-03-29 03:23:53', '2022-02-16 16:48:06');
  687. -- --------------------------------------------------------
  688. --
  689. -- 表的结构 `szj_product_spes`
  690. --
  691. CREATE TABLE IF NOT EXISTS `szj_product_spes` (
  692. `spe_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  693. `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
  694. `item_id` int(10) unsigned NOT NULL COMMENT '商品类型属性ID 关联商品类型属性表',
  695. `spes_value` varchar(255) NOT NULL COMMENT '用户设置的值 供检索',
  696. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  697. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  698. `create_time` datetime NOT NULL COMMENT '创建时间',
  699. PRIMARY KEY (`spe_id`),
  700. KEY `goods_id` (`product_id`),
  701. KEY `item_id` (`item_id`)
  702. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品属性设置表' AUTO_INCREMENT=64 ;
  703. --
  704. -- 转存表中的数据 `szj_product_spes`
  705. --
  706. INSERT INTO `szj_product_spes` (`spe_id`, `product_id`, `item_id`, `spes_value`, `admin_id`, `update_time`, `create_time`) VALUES
  707. (1, 1, 1, '其它', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  708. (2, 1, 2, '茅台醇', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  709. (3, 1, 3, '1.75kg', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  710. (4, 1, 4, '500-749mL', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  711. (5, 1, 5, '50度及以上', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  712. (6, 1, 6, '酱香型', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  713. (7, 1, 7, '中国大陆', 1, '2022-02-16 08:22:49', '2022-02-16 16:19:25'),
  714. (8, 2, 1, '其它', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  715. (9, 2, 2, '茅台醇', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  716. (10, 2, 3, '1.4kg', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  717. (11, 2, 4, '500-749mL', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  718. (12, 2, 5, '50度及以上', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  719. (13, 2, 6, '酱香型', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  720. (14, 2, 7, '中国大陆', 1, '2022-02-16 08:27:01', '2022-02-16 16:23:37'),
  721. (15, 3, 1, '其它', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  722. (16, 3, 2, '茅台醇', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  723. (17, 3, 3, '1.35kg', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  724. (18, 3, 4, '500-749mL', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  725. (19, 3, 5, '50度及以上', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  726. (20, 3, 6, '酱香型', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  727. (21, 3, 7, '中国大陆', 1, '2022-02-16 08:30:00', '2022-02-16 16:26:36'),
  728. (22, 4, 1, '其它', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  729. (23, 4, 2, '茅台醇', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  730. (24, 4, 3, '1.75kg', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  731. (25, 4, 4, '500-749mL', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  732. (26, 4, 5, '50度及以上', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  733. (27, 4, 6, '酱香型', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  734. (28, 4, 7, '中国大陆', 1, '2022-02-16 08:35:26', '2022-02-16 16:32:02'),
  735. (29, 5, 1, '其它', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  736. (30, 5, 2, '茅台醇', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  737. (31, 5, 3, '1.75kg', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  738. (32, 5, 4, '500-749mL', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  739. (33, 5, 5, '50度及以上', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  740. (34, 5, 6, '酱香型', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  741. (35, 5, 7, '中国大陆', 1, '2022-02-16 08:47:17', '2022-02-16 16:43:54'),
  742. (57, 6, 1, '其它', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53'),
  743. (58, 6, 2, '茅台醇', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53'),
  744. (59, 6, 3, '1.75kg', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53'),
  745. (60, 6, 4, '500-749mL', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53'),
  746. (61, 6, 5, '50度及以上', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53'),
  747. (62, 6, 6, '酱香型', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53'),
  748. (63, 6, 7, '中国大陆', 1, '2022-03-29 03:24:32', '2022-03-29 11:23:53');
  749. -- --------------------------------------------------------
  750. --
  751. -- 表的结构 `szj_product_suppliers`
  752. --
  753. CREATE TABLE IF NOT EXISTS `szj_product_suppliers` (
  754. `supplier_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '供货商ID',
  755. `supplier_name` varchar(255) NOT NULL COMMENT '联系人',
  756. `supplier_phone` varchar(255) NOT NULL COMMENT '电话',
  757. `supplier_status` tinyint(1) unsigned NOT NULL COMMENT '状态 1稳定 2异常 0未知',
  758. `admin_id` int(10) unsigned NOT NULL COMMENT '操作人员',
  759. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  760. `create_time` datetime NOT NULL COMMENT '创建时间',
  761. PRIMARY KEY (`supplier_id`)
  762. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='供货商表' AUTO_INCREMENT=5 ;
  763. --
  764. -- 转存表中的数据 `szj_product_suppliers`
  765. --
  766. INSERT INTO `szj_product_suppliers` (`supplier_id`, `supplier_name`, `supplier_phone`, `supplier_status`, `admin_id`, `update_time`, `create_time`) VALUES
  767. (2, '源森家具-小罗', '07623379398', 1, 1, '2022-02-09 07:55:48', '2022-02-09 14:46:06'),
  768. (3, '茅台集团-老刘', '13750229481', 1, 1, '2022-02-09 07:51:13', '2022-02-09 15:40:58'),
  769. (4, '思智捷科技-罗生', '15219840108', 1, 1, '2022-02-09 07:58:44', '2022-02-09 15:55:18');
  770. -- --------------------------------------------------------
  771. --
  772. -- 表的结构 `szj_product_types`
  773. --
  774. CREATE TABLE IF NOT EXISTS `szj_product_types` (
  775. `type_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '类型id',
  776. `type_name` varchar(255) NOT NULL COMMENT '类型名称',
  777. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  778. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  779. `create_time` datetime NOT NULL COMMENT '创建时间',
  780. PRIMARY KEY (`type_id`)
  781. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品类型表' AUTO_INCREMENT=2 ;
  782. --
  783. -- 转存表中的数据 `szj_product_types`
  784. --
  785. INSERT INTO `szj_product_types` (`type_id`, `type_name`, `admin_id`, `update_time`, `create_time`) VALUES
  786. (1, '茅台醇', 1, '2022-02-16 07:54:41', '2022-02-16 15:51:17');
  787. -- --------------------------------------------------------
  788. --
  789. -- 表的结构 `szj_product_types_item`
  790. --
  791. CREATE TABLE IF NOT EXISTS `szj_product_types_item` (
  792. `item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '属性ID',
  793. `type_id` int(10) unsigned NOT NULL COMMENT '关联商品类型表 product_types',
  794. `item_name` varchar(255) NOT NULL COMMENT '属性名称',
  795. `item_type` tinyint(1) unsigned NOT NULL COMMENT '属性类型 1输入 2单选 3多选',
  796. `item_value` varchar(255) NOT NULL COMMENT '属性值',
  797. `is_search` tinyint(1) unsigned NOT NULL COMMENT '是否可以检索',
  798. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  799. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  800. `create_time` datetime NOT NULL COMMENT '创建时间',
  801. PRIMARY KEY (`item_id`),
  802. KEY `is_search` (`is_search`)
  803. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品类型属性表' AUTO_INCREMENT=8 ;
  804. --
  805. -- 转存表中的数据 `szj_product_types_item`
  806. --
  807. INSERT INTO `szj_product_types_item` (`item_id`, `type_id`, `item_name`, `item_type`, `item_value`, `is_search`, `admin_id`, `update_time`, `create_time`) VALUES
  808. (1, 1, '包装', 2, '其它', 0, 1, '2022-02-16 08:23:09', '2022-02-16 15:51:37'),
  809. (2, 1, '品牌', 2, '茅台醇', 0, 1, '2022-02-16 07:55:28', '2022-02-16 15:52:04'),
  810. (3, 1, '商品毛重', 2, '1.75kg|1.35kg|1.4kg', 0, 1, '2022-02-16 07:59:27', '2022-02-16 15:52:32'),
  811. (4, 1, '容量', 2, '500-749mL', 0, 1, '2022-02-16 07:56:24', '2022-02-16 15:53:01'),
  812. (5, 1, '度数', 2, '50度及以上', 0, 1, '2022-02-16 07:56:50', '2022-02-16 15:53:27'),
  813. (6, 1, '香型', 2, '酱香型', 0, 1, '2022-02-16 07:57:11', '2022-02-16 15:53:47'),
  814. (7, 1, '商品产地', 2, '中国大陆', 0, 1, '2022-02-16 07:58:12', '2022-02-16 15:54:48');
  815. -- --------------------------------------------------------
  816. --
  817. -- 表的结构 `szj_roles`
  818. --
  819. CREATE TABLE IF NOT EXISTS `szj_roles` (
  820. `role_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  821. `role_desc` varchar(255) NOT NULL COMMENT '角色描述',
  822. `role_name` varchar(20) NOT NULL COMMENT '角色名称',
  823. `admin_id` int(10) unsigned NOT NULL COMMENT '操作管理员',
  824. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  825. `create_time` datetime NOT NULL COMMENT '创建时间',
  826. PRIMARY KEY (`role_id`)
  827. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员角色表' AUTO_INCREMENT=4 ;
  828. --
  829. -- 转存表中的数据 `szj_roles`
  830. --
  831. INSERT INTO `szj_roles` (`role_id`, `role_desc`, `role_name`, `admin_id`, `update_time`, `create_time`) VALUES
  832. (1, '拥有全站的所有权限,属最高级别管理员', '超级管理员', 1, '2020-10-26 08:35:37', '2020-10-23 14:00:34'),
  833. (3, '有查看数据管理中心的基本权限', '测试人员', 1, '2022-01-20 03:31:45', '2020-10-24 10:55:38');
  834. -- --------------------------------------------------------
  835. --
  836. -- 表的结构 `szj_shippings_config`
  837. --
  838. CREATE TABLE IF NOT EXISTS `szj_shippings_config` (
  839. `shipping_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配送ID',
  840. `shipping_name` varchar(255) NOT NULL COMMENT '配送名称',
  841. `shipping_logo` varchar(255) NOT NULL COMMENT '配送logo',
  842. `shipping_params_index` varchar(255) NOT NULL COMMENT '配送参数设置 关联配置表filed_index',
  843. `shipping_status` tinyint(1) unsigned NOT NULL COMMENT '是否启用',
  844. `shipping_sort` tinyint(1) unsigned NOT NULL COMMENT '排序',
  845. `admin_id` int(10) unsigned NOT NULL COMMENT '管理员ID',
  846. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  847. `create_time` datetime NOT NULL COMMENT '创建时间',
  848. PRIMARY KEY (`shipping_id`)
  849. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配送方式配置表' AUTO_INCREMENT=4 ;
  850. --
  851. -- 转存表中的数据 `szj_shippings_config`
  852. --
  853. INSERT INTO `szj_shippings_config` (`shipping_id`, `shipping_name`, `shipping_logo`, `shipping_params_index`, `shipping_status`, `shipping_sort`, `admin_id`, `update_time`, `create_time`) VALUES
  854. (1, '同城配送', '', '', 1, 99, 1, '2022-02-19 07:34:44', '2022-02-19 11:57:22'),
  855. (2, '上门自提', '', '', 1, 99, 1, '2022-02-19 07:34:09', '2022-02-19 11:57:40'),
  856. (3, '快递包邮', '', '', 1, 99, 1, '2022-02-19 04:06:48', '2022-02-19 11:57:57');
  857. -- --------------------------------------------------------
  858. --
  859. -- 表的结构 `szj_users`
  860. --
  861. CREATE TABLE IF NOT EXISTS `szj_users` (
  862. `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  863. `nickname` varchar(255) NOT NULL COMMENT '用户昵称',
  864. `account_name` varchar(255) NOT NULL COMMENT '用户账号',
  865. `openid` varchar(255) NOT NULL COMMENT '微信ID',
  866. `password` varchar(255) NOT NULL COMMENT '登录密码',
  867. `money` float(10,2) unsigned NOT NULL COMMENT '用户余额',
  868. `intergral` int(10) unsigned NOT NULL COMMENT '用户积分',
  869. `headimgurl` varchar(255) NOT NULL COMMENT '用户头像',
  870. `login_time` datetime NOT NULL COMMENT '登录时间',
  871. `city` varchar(255) NOT NULL COMMENT '所在城市',
  872. `province` varchar(255) NOT NULL COMMENT '所在省',
  873. `country` varchar(255) NOT NULL COMMENT '所在国家',
  874. `sex` char(1) NOT NULL COMMENT '性别',
  875. `subscribe` tinyint(1) unsigned NOT NULL COMMENT '是否关注公众号',
  876. `unionid` varchar(255) NOT NULL COMMENT '微信联合ID',
  877. `update_ttime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  878. `create_time` datetime NOT NULL COMMENT '注册时间',
  879. PRIMARY KEY (`user_id`),
  880. KEY `openid` (`openid`)
  881. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表' AUTO_INCREMENT=3 ;
  882. --
  883. -- 转存表中的数据 `szj_users`
  884. --
  885. INSERT INTO `szj_users` (`user_id`, `nickname`, `account_name`, `openid`, `password`, `money`, `intergral`, `headimgurl`, `login_time`, `city`, `province`, `country`, `sex`, `subscribe`, `unionid`, `update_ttime`, `create_time`) VALUES
  886. (1, 'como', 'cJxhuA173731', 'oSF4duIAfTLdEMukzNOpYPAuJxEo', 'e10adc3949ba59abbe56e057f20f883e', 8806.00, 0, 'https://thirdwx.qlogo.cn/mmopen/vi_32/6rSrIHWIDmibMnJxVuHFnS6rEoKCzUhHgg0whHatM3kRMRBsppo9lueRFYaVhzzlQ5db103IHrsArOzVAYejugw/132', '2022-03-10 17:37:31', '', '', '', '0', 0, '', '2022-03-27 12:28:09', '2022-03-10 17:37:31'),
  887. (2, 'como', 'Hf8KyZ103308', 'okXHRwVqk39baIntOSADkiFLSNNQ', 'e10adc3949ba59abbe56e057f20f883e', 0.00, 0, 'https://thirdwx.qlogo.cn/mmopen/vi_32/0OwCTB6MGMdMXOZFS5lqsDZicia67OFNWImWP3VicmxeCjdYmhIotkgicX3oHO525yRnFmnwYvIHF50p9U9a9OX17Q/132', '2022-03-29 10:33:08', '', '', '', '0', 0, '', '2022-03-29 02:58:29', '2022-03-29 10:33:08');
  888. -- --------------------------------------------------------
  889. --
  890. -- 表的结构 `szj_users_money_logs`
  891. --
  892. CREATE TABLE IF NOT EXISTS `szj_users_money_logs` (
  893. `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  894. `log_desc` varchar(255) NOT NULL COMMENT '变动说明',
  895. `money` float(10,2) NOT NULL COMMENT '变动金额',
  896. `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',
  897. `change_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '变动时间',
  898. PRIMARY KEY (`log_id`)
  899. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户余额变动记录表' AUTO_INCREMENT=5 ;
  900. --
  901. -- 转存表中的数据 `szj_users_money_logs`
  902. --
  903. INSERT INTO `szj_users_money_logs` (`log_id`, `log_desc`, `money`, `user_id`, `change_time`) VALUES
  904. (1, '商品下单时余额抵扣,订单编号是:W20220327202657633061', -100.00, 1, '2022-03-27 12:27:03'),
  905. (2, '订单取消,退回订单抵扣的余额,订单编号是:W20220327202657633061', 100.00, 1, '2022-03-27 12:27:35'),
  906. (3, '商品下单时余额抵扣,订单编号是:W20220327202803123126', -1194.00, 1, '2022-03-27 12:28:09'),
  907. (4, '商品下单时余额抵扣,订单编号是:W20220329105750596109', -10.00, 2, '2022-03-29 02:58:29');
  908. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  909. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  910. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;