附近小店
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

applet.sql 6.4 KiB

3ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. SQLyog Ultimate
  3. MySQL - 5.7.25-28 : Database - applet
  4. *********************************************************************
  5. */
  6. /*!40101 SET NAMES utf8 */;
  7. /*!40101 SET SQL_MODE=''*/;
  8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  12. /*Table structure for table `adm_profile` */
  13. DROP TABLE IF EXISTS `adm_profile`;
  14. CREATE TABLE `adm_profile` (
  15. `adm_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  16. `adm_name` varchar(64) NOT NULL COMMENT '姓名',
  17. `adm_psw` char(32) NOT NULL COMMENT '密码',
  18. `salt` char(6) NOT NULL DEFAULT '' COMMENT '加密盐',
  19. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0关闭,1正常',
  20. `is_super` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否超管',
  21. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  22. `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  23. PRIMARY KEY (`adm_id`)
  24. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='管理员信息';
  25. /*Data for the table `adm_profile` */
  26. /*Table structure for table `log_api` */
  27. DROP TABLE IF EXISTS `log_api`;
  28. CREATE TABLE `log_api` (
  29. `req_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '请求ID',
  30. `req_ip` varchar(15) NOT NULL DEFAULT '' COMMENT '请求用户IP',
  31. `req_header` varchar(2047) NOT NULL DEFAULT '',
  32. `req_body` varchar(2047) NOT NULL DEFAULT '',
  33. `resp_body` text,
  34. `req_time` bigint(20) DEFAULT '0' COMMENT '请求时间,ms',
  35. `resp_time` bigint(20) DEFAULT '0' COMMENT '响应时间,ms',
  36. `duration` bigint(20) DEFAULT '0' COMMENT '处理时长,ms',
  37. PRIMARY KEY (`req_id`)
  38. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COMMENT='api请求记录';
  39. /*Data for the table `log_api` */
  40. /*Table structure for table `sys_cfg` */
  41. DROP TABLE IF EXISTS `sys_cfg`;
  42. CREATE TABLE `sys_cfg` (
  43. `key` varchar(255) NOT NULL COMMENT '键',
  44. `value` text NOT NULL COMMENT '值',
  45. `memo` varchar(127) NOT NULL DEFAULT '' COMMENT '备注',
  46. PRIMARY KEY (`key`)
  47. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统设置';
  48. /*Data for the table `sys_cfg` */
  49. insert into `sys_cfg`(`key`,`value`,`memo`) values
  50. ('site_name','这只是个小程序','网站名称'),
  51. ('tb_access_key','123123','');
  52. /*Table structure for table `sys_module` */
  53. DROP TABLE IF EXISTS `sys_module`;
  54. CREATE TABLE `sys_module` (
  55. `mod_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  56. `mod_pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父级模块ID',
  57. `mod_name` varchar(255) NOT NULL DEFAULT '' COMMENT '模块名称',
  58. `position` varchar(512) NOT NULL DEFAULT '' COMMENT '位置',
  59. `title` varchar(128) NOT NULL DEFAULT '' COMMENT '标题',
  60. `subtitle` varchar(255) NOT NULL DEFAULT '' COMMENT '副标题',
  61. `icon` varchar(512) NOT NULL DEFAULT '' COMMENT '图标',
  62. `img` varchar(512) NOT NULL DEFAULT '' COMMENT '图片',
  63. `font-color` varchar(128) NOT NULL DEFAULT '' COMMENT '文字颜色',
  64. `bg_img` varchar(512) NOT NULL DEFAULT '' COMMENT '背景图片',
  65. `bg_color` varchar(512) NOT NULL DEFAULT '' COMMENT '背景颜色',
  66. `badge` varchar(512) NOT NULL DEFAULT '' COMMENT 'badge图片',
  67. `path` varchar(255) NOT NULL DEFAULT '' COMMENT '跳转路径',
  68. `data` text COMMENT '内容',
  69. `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  70. `state` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0不显示,1显示',
  71. `is_global` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否全局显示',
  72. `device` varchar(255) NOT NULL DEFAULT 'wx_applet' COMMENT '使用设备,wx_applet,toutiao_applet,baidu_,toutiao_applet,tiktok_,toutiao_applet,baidu_applet,wap,android,ios',
  73. `create_at` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  74. `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  75. PRIMARY KEY (`mod_id`)
  76. ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='系统模块';
  77. /*Data for the table `sys_module` */
  78. insert into `sys_module`(`mod_id`,`mod_pid`,`mod_name`,`position`,`title`,`subtitle`,`icon`,`img`,`font-color`,`bg_img`,`bg_color`,`badge`,`path`,`data`,`sort`,`state`,`is_global`,`device`,`create_at`,`update_at`) values
  79. (1,0,'index','','首页','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:18:44'),
  80. (2,0,'nav','','底部导航','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:18:42'),
  81. (3,0,'genre','','分类','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:16:34'),
  82. (4,0,'person','','个人中心','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:17:44'),
  83. (5,2,'nav_home','nav','首页','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:21:07'),
  84. (6,2,'nav_channel','nav','分类','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:25:06'),
  85. (7,2,'nav_person','nav','个人','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:28:36'),
  86. (8,0,'index_title','index','嗨如意','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:29:04'),
  87. (9,0,'index_search','index','','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:31:13'),
  88. (10,0,'index_search_placeholder','search','','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:32:07'),
  89. (11,0,'index_search_icon','search','','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:32:07'),
  90. (12,0,'index_search_button','search','搜索','','','','','','','','',NULL,0,1,0,'wx_applet',0,'2020-08-15 16:32:16');
  91. /*Table structure for table `user_profile` */
  92. DROP TABLE IF EXISTS `user_profile`;
  93. CREATE TABLE `user_profile` (
  94. `uid` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  95. `username` varchar(32) NOT NULL COMMENT '用户名',
  96. `password` char(32) NOT NULL COMMENT '密码',
  97. `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  98. `phone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号码',
  99. `level` tinyint(1) NOT NULL,
  100. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  101. `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  102. PRIMARY KEY (`uid`)
  103. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  104. /*Data for the table `user_profile` */
  105. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  106. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  107. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  108. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;