v1.1.13.sql 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # 新增文章记录表
  2. CREATE TABLE `yoshop_article` (
  3. `article_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章id',
  4. `article_title` varchar(300) NOT NULL DEFAULT '' COMMENT '文章标题',
  5. `show_type` tinyint(3) unsigned NOT NULL DEFAULT '10' COMMENT '列表显示方式(10小图展示 20大图展示)',
  6. `category_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文章分类id',
  7. `image_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '封面图id',
  8. `article_content` longtext NOT NULL COMMENT '文章内容',
  9. `article_sort` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文章排序(数字越小越靠前)',
  10. `article_status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '文章状态(0隐藏 1显示)',
  11. `virtual_views` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '虚拟阅读量(仅用作展示)',
  12. `actual_views` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '实际阅读量',
  13. `is_delete` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
  14. `wxapp_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '小程序id',
  15. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  16. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  17. PRIMARY KEY (`article_id`)
  18. ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COMMENT='文章记录表';
  19. # 新增文章分类表
  20. CREATE TABLE `yoshop_article_category` (
  21. `category_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品分类id',
  22. `name` varchar(50) NOT NULL DEFAULT '' COMMENT '分类名称',
  23. `sort` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排序方式(数字越小越靠前)',
  24. `wxapp_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '小程序id',
  25. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  26. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  27. PRIMARY KEY (`category_id`)
  28. ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COMMENT='文章分类表';
  29. # 新增权限url:后台文章管理
  30. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10337', '内容管理', 'content', '0', '100', '1547018818', '1547018818');
  31. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10338', '文章管理', 'content.article', '10337', '100', '1547018849', '1547018869');
  32. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10339', '文章列表', 'content.article/index', '10338', '100', '1547018885', '1547018885');
  33. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10340', '添加文章', 'content.article/add', '10338', '100', '1547018901', '1547018901');
  34. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10341', '编辑文章', 'content.article/edit', '10338', '100', '1547018922', '1547018922');
  35. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10342', '删除文章', 'content.article/delete', '10338', '100', '1547018937', '1547018937');
  36. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10343', '文章分类', 'content.article.category', '10337', '100', '1547018972', '1547018972');
  37. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10344', '分类列表', 'content.article.category/index', '10343', '100', '1547018992', '1547018992');
  38. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10345', '添加分类', 'content.article.category/add', '10343', '100', '1547019008', '1547019017');
  39. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10346', '编辑分类', 'content.article.category/edit', '10343', '100', '1547019008', '1547019017');
  40. INSERT INTO `yoshop_store_access` (`access_id`, `name`, `url`, `parent_id`, `sort`, `create_time`, `update_time`) VALUES ('10347', '删除分类', 'content.article.category/delete', '10343', '100', '1547019008', '1547019017');