fecshop-2016-07-28.sql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.3.10
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- 主机: localhost
  6. -- 生成日期: 2016 年 07 月 28 日 22:22
  7. -- 服务器版本: 5.6.14
  8. -- PHP 版本: 5.4.34
  9. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  10. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  11. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  12. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  13. /*!40101 SET NAMES utf8 */;
  14. --
  15. -- 数据库: `fecshop`
  16. --
  17. -- --------------------------------------------------------
  18. --
  19. -- 表的结构 `admin_config`
  20. --
  21. CREATE TABLE IF NOT EXISTS `admin_config` (
  22. `id` int(20) NOT NULL AUTO_INCREMENT,
  23. `label` varchar(150) DEFAULT NULL,
  24. `key` varchar(255) DEFAULT NULL,
  25. `value` varchar(2555) DEFAULT NULL,
  26. `description` varchar(255) DEFAULT NULL,
  27. `created_at` datetime DEFAULT NULL,
  28. `updated_at` datetime DEFAULT NULL,
  29. `created_person` varchar(150) DEFAULT NULL,
  30. PRIMARY KEY (`id`)
  31. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
  32. --
  33. -- 转存表中的数据 `admin_config`
  34. --
  35. INSERT INTO `admin_config` (`id`, `label`, `key`, `value`, `description`, `created_at`, `updated_at`, `created_person`) VALUES
  36. (6, '品牌统计-订单处理脚本,多少月前', 'brand_order_month_before', '10', '取多少个月前的订单', '2016-04-26 17:53:30', '2016-06-30 11:58:50', 'admin'),
  37. (7, '品牌统计-广告数量最大个数', 'brand_show_count', '22', '品牌统计-广告数量最大个数', '2016-04-28 16:41:13', '2016-07-05 10:01:34', 'admin'),
  38. (8, '废弃-多少月前的数据 - erp_on_way_count_by_day', 'erp_on_way_count_by_day_before_months', '24', '对应erpCollInit脚本 - 处理表:erp_on_way_count_by_day ,增加subtotal字段功能,处理多少个月之前的表数据', '2016-05-24 15:56:39', '2016-06-30 12:01:53', 'admin'),
  39. (9, 'ebayOrder脚本的跑的月范围', 'ebay_order_month_before', '10', '当前时间多少月之前的订单,进行处理', '2016-07-01 14:59:48', '2016-07-01 14:59:48', 'admin');
  40. -- --------------------------------------------------------
  41. --
  42. -- 表的结构 `admin_menu`
  43. --
  44. CREATE TABLE IF NOT EXISTS `admin_menu` (
  45. `id` int(15) NOT NULL AUTO_INCREMENT,
  46. `name` varchar(150) DEFAULT NULL,
  47. `level` int(5) DEFAULT NULL,
  48. `parent_id` int(15) DEFAULT NULL,
  49. `url_key` varchar(255) DEFAULT NULL,
  50. `role_key` varchar(150) DEFAULT NULL COMMENT '权限key,也就是controller的路径,譬如/fecadmin/menu/managere,controller 是MenuController,当前的值为:/fecadmin/menu',
  51. `created_at` datetime DEFAULT NULL,
  52. `updated_at` datetime DEFAULT NULL,
  53. `sort_order` int(10) NOT NULL DEFAULT '0',
  54. `can_delete` int(5) DEFAULT '2' COMMENT '是否可以被删除,1代表不可以删除,2代表可以删除',
  55. PRIMARY KEY (`id`)
  56. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=189 ;
  57. --
  58. -- 转存表中的数据 `admin_menu`
  59. --
  60. INSERT INTO `admin_menu` (`id`, `name`, `level`, `parent_id`, `url_key`, `role_key`, `created_at`, `updated_at`, `sort_order`, `can_delete`) VALUES
  61. (164, '控制面板', 1, 0, '/ddd', NULL, '2016-01-15 10:21:36', '2016-01-15 10:21:36', 0, 1),
  62. (165, '用户管理', 2, 164, '/ddd', NULL, '2016-01-15 10:23:01', '2016-01-15 10:23:01', 0, 1),
  63. (166, '菜单管理', 2, 164, '/fecadmin/menu/manager', '/fecadmin/menu', '2016-01-15 10:23:22', '2016-01-16 16:45:23', 0, 1),
  64. (167, '我的账户', 3, 165, '/fecadmin/myaccount/index', '/fecadmin/myaccount', '2016-01-15 10:24:29', '2016-01-16 16:07:58', 0, 1),
  65. (168, '账户管理', 3, 165, '/fecadmin/account/manager', '/fecadmin/account', '2016-01-15 10:24:51', '2016-01-21 15:24:18', 0, 1),
  66. (169, '权限管理', 3, 165, '/fecadmin/role/manager', '/fecadmin/role', '2016-01-15 10:25:10', '2016-01-21 13:22:39', 0, 1),
  67. (170, '操作日志', 2, 164, '/fecadmin/log/index', '/fecadmin/log', '2016-01-15 10:35:19', '2016-01-16 16:45:18', 0, 1),
  68. (171, '缓存管理', 2, 164, '/fecadmin/cache/index', '/fecadmin/cache', '2016-01-15 10:35:40', '2016-01-16 16:45:14', 0, 1),
  69. (177, 'CMS', 1, 0, '/x/x/x', '/x/x', '2016-07-11 21:16:56', '2016-07-16 09:32:30', 5, 2),
  70. (178, 'Article', 2, 177, '/cms/article/index', '/cms/article', '2016-07-11 21:17:17', '2016-07-11 21:17:17', 0, 2),
  71. (179, 'Catalog', 1, 0, '/x/x/x', '/x/x', '2016-07-22 16:01:37', '2016-07-22 16:01:44', 100, 2),
  72. (180, '产品管理', 2, 179, '/catalog/product/index', '/catalog/product', '2016-07-22 16:02:01', '2016-07-22 16:07:03', 100, 2),
  73. (181, 'Url 重写管理', 2, 179, '/catalog/urlrewrite/index', '/catalog/urlrewrite', '2016-07-22 16:02:49', '2016-07-22 16:10:14', 0, 2),
  74. (182, '分类管理', 2, 179, '/catalog/category/index', '/catalog/category', '2016-07-22 16:03:05', '2016-07-22 16:07:11', 90, 2),
  75. (183, '后台配置', 2, 164, '/fecadmin/config/manager', '/fecadmin/config', '2016-07-22 16:05:31', '2016-07-22 16:05:31', 0, 2),
  76. (184, 'LOG打印输出', 2, 164, '/fecadmin/systemlog/manager', '/fecadmin/systemlog', '2016-07-22 16:05:56', '2016-07-22 16:05:56', 0, 2),
  77. (185, '产品信息管理', 3, 180, '/catalog/productinfo/index', '/catalog/productinfo', '2016-07-22 16:08:17', '2016-07-22 16:08:17', 0, 2),
  78. (186, '产品评论管理', 3, 180, '/catalog/productreview/index', '/catalog/productreview', '2016-07-22 16:08:35', '2016-07-22 16:08:35', 0, 2),
  79. (187, '产品搜索管理', 3, 180, '/catalog/productsearch/index', '/catalog/productsearch', '2016-07-22 16:09:41', '2016-07-22 16:09:41', 0, 2),
  80. (188, '产品Tag管理', 3, 180, '/catalog/producttag/index', '/catalog/producttag', '2016-07-22 16:09:57', '2016-07-22 16:09:57', 0, 2);
  81. -- --------------------------------------------------------
  82. --
  83. -- 表的结构 `admin_role`
  84. --
  85. CREATE TABLE IF NOT EXISTS `admin_role` (
  86. `role_id` int(15) NOT NULL AUTO_INCREMENT,
  87. `role_name` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '权限名字',
  88. `role_description` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '权限描述',
  89. PRIMARY KEY (`role_id`)
  90. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
  91. --
  92. -- 转存表中的数据 `admin_role`
  93. --
  94. INSERT INTO `admin_role` (`role_id`, `role_name`, `role_description`) VALUES
  95. (4, 'admin', '超级用户'),
  96. (12, '账户管理员', '账户管理员'),
  97. (13, 'ceshi', 'ceshi');
  98. -- --------------------------------------------------------
  99. --
  100. -- 表的结构 `admin_role_menu`
  101. --
  102. CREATE TABLE IF NOT EXISTS `admin_role_menu` (
  103. `id` int(15) NOT NULL AUTO_INCREMENT,
  104. `menu_id` int(15) NOT NULL,
  105. `role_id` int(15) NOT NULL,
  106. `created_at` datetime DEFAULT NULL,
  107. `updated_at` datetime DEFAULT NULL,
  108. PRIMARY KEY (`id`)
  109. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=76 ;
  110. --
  111. -- 转存表中的数据 `admin_role_menu`
  112. --
  113. INSERT INTO `admin_role_menu` (`id`, `menu_id`, `role_id`, `created_at`, `updated_at`) VALUES
  114. (4, 164, 4, '2016-01-16 11:19:15', '2016-01-16 11:19:15'),
  115. (33, 165, 12, '2016-01-16 12:05:01', '2016-01-16 12:05:01'),
  116. (34, 167, 12, '2016-01-16 12:05:01', '2016-01-16 12:05:01'),
  117. (36, 169, 12, '2016-01-16 12:05:01', '2016-01-16 12:05:01'),
  118. (37, 164, 12, '2016-01-16 12:05:01', '2016-01-16 12:05:01'),
  119. (38, 165, 4, '2016-01-16 14:46:17', '2016-01-16 14:46:17'),
  120. (39, 167, 4, '2016-01-16 14:46:17', '2016-01-16 14:46:17'),
  121. (41, 169, 4, '2016-01-16 14:46:17', '2016-01-16 14:46:17'),
  122. (43, 171, 4, '2016-01-16 14:46:17', '2016-01-16 14:46:17'),
  123. (46, 166, 4, '2016-01-16 17:47:30', '2016-01-16 17:47:30'),
  124. (49, 168, 4, '2016-01-18 12:16:49', '2016-01-18 12:16:49'),
  125. (50, 170, 4, '2016-01-18 12:16:49', '2016-01-18 12:16:49'),
  126. (51, 164, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  127. (52, 165, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  128. (53, 167, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  129. (54, 168, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  130. (55, 169, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  131. (56, 166, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  132. (57, 170, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  133. (58, 171, 13, '2016-01-21 14:12:09', '2016-01-21 14:12:09'),
  134. (64, 177, 4, '2016-07-11 21:17:46', '2016-07-11 21:17:46'),
  135. (65, 178, 4, '2016-07-11 21:17:46', '2016-07-11 21:17:46'),
  136. (66, 179, 4, '2016-07-22 16:04:25', '2016-07-22 16:04:25'),
  137. (67, 180, 4, '2016-07-22 16:04:25', '2016-07-22 16:04:25'),
  138. (68, 182, 4, '2016-07-22 16:04:25', '2016-07-22 16:04:25'),
  139. (69, 181, 4, '2016-07-22 16:04:25', '2016-07-22 16:04:25'),
  140. (70, 183, 4, '2016-07-22 16:06:10', '2016-07-22 16:06:10'),
  141. (71, 184, 4, '2016-07-22 16:06:10', '2016-07-22 16:06:10'),
  142. (72, 185, 4, '2016-07-22 16:10:22', '2016-07-22 16:10:22'),
  143. (73, 186, 4, '2016-07-22 16:10:22', '2016-07-22 16:10:22'),
  144. (74, 187, 4, '2016-07-22 16:10:22', '2016-07-22 16:10:22'),
  145. (75, 188, 4, '2016-07-22 16:10:22', '2016-07-22 16:10:22');
  146. -- --------------------------------------------------------
  147. --
  148. -- 表的结构 `admin_user`
  149. --
  150. CREATE TABLE IF NOT EXISTS `admin_user` (
  151. `id` int(20) unsigned NOT NULL AUTO_INCREMENT,
  152. `username` varchar(50) DEFAULT NULL COMMENT '用户名',
  153. `password_hash` varchar(80) DEFAULT NULL COMMENT '密码',
  154. `password_reset_token` varchar(60) DEFAULT NULL COMMENT '密码token',
  155. `email` varchar(60) DEFAULT NULL COMMENT '邮箱',
  156. `person` varchar(100) DEFAULT NULL COMMENT '用户姓名',
  157. `code` varchar(100) DEFAULT NULL,
  158. `auth_key` varchar(60) DEFAULT NULL,
  159. `status` int(5) DEFAULT NULL COMMENT '状态',
  160. `created_at` int(18) DEFAULT NULL COMMENT '创建时间',
  161. `updated_at` int(18) DEFAULT NULL COMMENT '更新时间',
  162. `password` varchar(50) DEFAULT NULL COMMENT '密码',
  163. `access_token` varchar(60) DEFAULT NULL,
  164. `allowance` int(20) DEFAULT NULL,
  165. `allowance_updated_at` int(20) DEFAULT NULL,
  166. `created_at_datetime` datetime DEFAULT NULL,
  167. `updated_at_datetime` datetime DEFAULT NULL,
  168. `birth_date` datetime DEFAULT NULL COMMENT '出生日期',
  169. PRIMARY KEY (`id`),
  170. UNIQUE KEY `username` (`username`),
  171. UNIQUE KEY `access_token` (`access_token`)
  172. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
  173. --
  174. -- 转存表中的数据 `admin_user`
  175. --
  176. INSERT INTO `admin_user` (`id`, `username`, `password_hash`, `password_reset_token`, `email`, `person`, `code`, `auth_key`, `status`, `created_at`, `updated_at`, `password`, `access_token`, `allowance`, `allowance_updated_at`, `created_at_datetime`, `updated_at_datetime`, `birth_date`) VALUES
  177. (1, 'terry', '$2y$13$EyK1HyJtv4A/19Jb8gB5y.4SQm5y93eMeHjUf35ryLyd2dWPJlh8y', NULL, 'zqy234@126.com', '', '3333', 'HH-ZlZXirlG-egyz8OTtl9EVj9fvKW00', 1, 1441763620, 1467522167, '', 'yrYWR7kY-A9bUAP6UUZgCR3yi3ALtUh-', 599, 1452491877, '2016-01-12 09:41:44', '2016-07-03 13:02:47', NULL),
  178. (2, 'admin', '$2y$13$T5ZFrLpJdTEkAoAdnC6A/u8lh/pG.6M0qAZBo1lKE.6x6o3V6yvVG', NULL, '3727@qq.com', '超级管理员', '111', '_PYjb4PdIIY332LquBRC5tClZUXV0zm_', 1, NULL, 1468917063, '', '1Gk6ZNn-QaBaKFI4uE2bSw0w3N7ej72q', NULL, NULL, '2016-01-11 09:41:52', '2016-06-26 01:40:55', NULL);
  179. -- --------------------------------------------------------
  180. --
  181. -- 表的结构 `admin_user_role`
  182. --
  183. CREATE TABLE IF NOT EXISTS `admin_user_role` (
  184. `id` int(20) NOT NULL AUTO_INCREMENT,
  185. `user_id` int(30) NOT NULL,
  186. `role_id` int(30) NOT NULL,
  187. PRIMARY KEY (`id`)
  188. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
  189. --
  190. -- 转存表中的数据 `admin_user_role`
  191. --
  192. INSERT INTO `admin_user_role` (`id`, `user_id`, `role_id`) VALUES
  193. (1, 2, 4),
  194. (2, 2, 12),
  195. (3, 1, 12),
  196. (4, 1, 13);
  197. -- --------------------------------------------------------
  198. --
  199. -- 表的结构 `admin_visit_log`
  200. --
  201. CREATE TABLE IF NOT EXISTS `admin_visit_log` (
  202. `id` int(15) NOT NULL AUTO_INCREMENT,
  203. `account` varchar(25) DEFAULT NULL COMMENT '操作账号',
  204. `person` varchar(25) DEFAULT NULL COMMENT '操作人姓名',
  205. `created_at` datetime DEFAULT NULL COMMENT '操作时间',
  206. `menu` varchar(100) DEFAULT NULL COMMENT '菜单',
  207. `url` varchar(255) DEFAULT NULL COMMENT 'URL',
  208. `url_key` varchar(150) DEFAULT NULL COMMENT '参数',
  209. PRIMARY KEY (`id`)
  210. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  211. --
  212. -- 转存表中的数据 `admin_visit_log`
  213. --