690 lines
1.4 MiB
MySQL
690 lines
1.4 MiB
MySQL
|
|
/*
|
|||
|
|
SQLyog Enterprise v12.09 (64 bit)
|
|||
|
|
MySQL - 5.7.25-log : Database - food_db
|
|||
|
|
*********************************************************************
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
/*!40101 SET NAMES utf8 */;
|
|||
|
|
|
|||
|
|
/*!40101 SET SQL_MODE=''*/;
|
|||
|
|
|
|||
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|||
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|||
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|||
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|||
|
|
CREATE DATABASE /*!32312 IF NOT EXISTS*/`food_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
|
|||
|
|
|
|||
|
|
USE `food_db`;
|
|||
|
|
|
|||
|
|
/*Table structure for table `app_access_log` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `app_access_log`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `app_access_log` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`uid` bigint(20) NOT NULL DEFAULT '0' COMMENT 'uid',
|
|||
|
|
`referer_url` varchar(255) NOT NULL DEFAULT '' COMMENT '当前访问的refer',
|
|||
|
|
`target_url` varchar(255) NOT NULL DEFAULT '' COMMENT '访问的url',
|
|||
|
|
`query_params` text NOT NULL COMMENT 'get和post参数',
|
|||
|
|
`ua` varchar(255) NOT NULL DEFAULT '' COMMENT '访问ua',
|
|||
|
|
`ip` varchar(32) NOT NULL DEFAULT '' COMMENT '访问ip',
|
|||
|
|
`note` varchar(1000) NOT NULL DEFAULT '' COMMENT 'json格式备注字段',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_uid` (`uid`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3429 DEFAULT CHARSET=utf8mb4 COMMENT='用户访问记录表';
|
|||
|
|
|
|||
|
|
/*Data for the table `app_access_log` */
|
|||
|
|
|
|||
|
|
insert into `app_access_log`(`id`,`uid`,`referer_url`,`target_url`,`query_params`,`ua`,`ip`,`note`,`created_time`) values (1,1,'','http://127.0.0.1:9000/user/login','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:14:43'),(2,1,'http://127.0.0.1:9000/user/login','http://127.0.0.1:9000/user/login','{\"login_name\": \"54php.cn\", \"login_pwd\": \"123456789\"}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:14:45'),(3,1,'http://127.0.0.1:9000/user/login','http://127.0.0.1:9000/','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:14:47'),(4,1,'http://127.0.0.1:9000/','http://127.0.0.1:9000/account/index','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:14:51'),(5,1,'','http://127.0.0.1:9000/account/index1','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:14:55'),(6,1,'','http://127.0.0.1:9000/account/index1','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:15:00'),(7,1,'','http://127.0.0.1:9000/user/login','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:13'),(8,1,'http://127.0.0.1:9000/user/login','http://127.0.0.1:9000/user/login','{\"login_pwd\": \"123456789\", \"login_name\": \"54php.cn\"}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:13'),(9,1,'http://127.0.0.1:9000/user/login','http://127.0.0.1:9000/','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:14'),(10,1,'http://127.0.0.1:9000/','http://127.0.0.1:9000/account/index','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:16'),(11,1,'http://127.0.0.1:9000/','http://127.0.0.1:9000/account/index','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:19'),(12,1,'','http://127.0.0.1:9000/account/index1','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:23'),(13,1,'http://127.0.0.1:9000/account/index1','http://127.0.0.1:9000/','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 15:18:27'),(14,1,'http://127.0.0.1:9000/','http://127.0.0.1:9000/account/index','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 17:34:55'),(15,1,'http://127.0.0.1:9000/account/index','http://127.0.0.1:9000/','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 17:35:19'),(16,1,'http://127.0.0.1:9000/','http://127.0.0.1:9000/account/index','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 17:35:21'),(17,1,'http://127.0.0.1:9000/account/index','http://127.0.0.1:9000/account/info?id=2','{\"id\": \"2\"}','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36','127.0.0.1','','2019-07-29 17:42:58'),(18,1,'http://127.0.0.1:9000/account/info?id=2','http://127.0.0.1:9000/account/index','{}','Mozilla/5.0 (Windows NT 6.1; WOW64) App
|
|||
|
|
|
|||
|
|
/*Table structure for table `app_error_log` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `app_error_log`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `app_error_log` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`referer_url` varchar(255) NOT NULL DEFAULT '' COMMENT '当前访问的refer',
|
|||
|
|
`target_url` varchar(255) NOT NULL DEFAULT '' COMMENT '访问的url',
|
|||
|
|
`query_params` text NOT NULL COMMENT 'get和post参数',
|
|||
|
|
`content` longtext NOT NULL COMMENT '日志内容',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=329 DEFAULT CHARSET=utf8mb4 COMMENT='app错误日表';
|
|||
|
|
|
|||
|
|
/*Data for the table `app_error_log` */
|
|||
|
|
|
|||
|
|
insert into `app_error_log`(`id`,`referer_url`,`target_url`,`query_params`,`content`,`created_time`) values (1,'','http://127.0.0.1:9000/account/index1','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-07-29 15:18:23'),(2,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-01 11:31:35'),(3,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-01 14:08:22'),(4,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-01 14:14:28'),(5,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:40:07'),(6,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:41:35'),(7,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:41:55'),(8,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:48:54'),(9,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:50:04'),(10,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:53:18'),(11,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:59:40'),(12,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 08:59:45'),(13,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 09:00:27'),(14,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 09:00:44'),(15,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 09:00:47'),(16,'','http://127.0.0.1:9000/static/bootstrap/bootstrap.min.css.map','{}','404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.','2019-08-02 09:00:58'),(17,'http://127.0.0.1:9000/food/set','http://127.0.0.1:9000/upload/ueditor?action=config&&noCache=1564728691283','{\"action\": \"config\", \"noCache\": \"1564728691283\"}','404 Not Found: The requested URL was not found on the server. If you e
|
|||
|
|
|
|||
|
|
/*Table structure for table `container_orchestration_assistant` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `container_orchestration_assistant`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `container_orchestration_assistant` (
|
|||
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '助手ID',
|
|||
|
|
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '助手名称',
|
|||
|
|
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '助手描述',
|
|||
|
|
`category` varchar(50) NOT NULL DEFAULT '' COMMENT '分类(架构设计)',
|
|||
|
|
`industry` varchar(50) NOT NULL DEFAULT '' COMMENT '行业(技术研发)',
|
|||
|
|
`profession` varchar(50) NOT NULL DEFAULT '' COMMENT '职业(高级工程师)',
|
|||
|
|
`sub_category` varchar(50) NOT NULL DEFAULT '' COMMENT '子分类(容器编排)',
|
|||
|
|
`system_prompt` text NOT NULL COMMENT '系统提示词(容器化需求转换规则)',
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:1-有效,0-无效',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_category` (`category`),
|
|||
|
|
KEY `idx_industry` (`industry`),
|
|||
|
|
KEY `idx_profession` (`profession`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8mb4 COMMENT='Python容器编排助手表';
|
|||
|
|
|
|||
|
|
/*Data for the table `container_orchestration_assistant` */
|
|||
|
|
|
|||
|
|
insert into `container_orchestration_assistant`(`id`,`name`,`description`,`category`,`industry`,`profession`,`sub_category`,`system_prompt`,`status`,`updated_time`,`created_time`) values (1,'通用提示词优化','将普通描述转换为专业的AI提示词','通用工具','','','','你是一个专业的提示词工程师,擅长将普通的描述转换为结构化、专业的 Prompt。\n\n你需要:\n1. 分析用户的需求和意图\n2. 将其转换为清晰、详细的提示词\n3. 添加必要的上下文和约束条件\n4. 使用专业的术语和格式\n5. 确保生成的提示词能够获得最佳的 AI 响应\n\n请直接返回优化后的提示词,不要添加任何解释或其他内容。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(2,'文章写作助手','专门优化文章写作相关的提示词','内容创作','','','','你是一个专业的写作提示词专家。针对文章写作需求,你需要:\n1. 明确文章类型(博客、论文、新闻等)\n2. 确定目标受众\n3. 设定写作风格和语气\n4. 指定文章结构\n5. 添加具体要求(字数、格式等)\n\n请将用户的写作需求转换为详细的写作提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(3,'故事创作助手','优化故事和剧本创作相关的提示词','内容创作','','','','你是一个专业的故事创作提示词专家。对于创作需求,你需要:\n1. 明确故事类型和主题\n2. 设定人物和背景\n3. 构建情节和冲突\n4. 确定叙事视角和风格\n5. 添加情感和氛围要求\n\n请将用户的创作需求转换为专业的故事提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(4,'短视频创作助手','优化短视频内容、剪辑相关的提示词','内容创作','','','','你是一个专业的短视频提示词专家。对于短视频需求,你需要:\n1. 明确内容主题和风格\n2. 设计剧情和镜头语言\n3. 规划拍摄和剪辑要点\n4. 考虑音乐和特效搭配\n5. 注意平台算法和规则\n\n请将用户的视频需求转换为专业的创作提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(5,'设计创意优化','优化设计和创意相关的提示词','设计创意','','','','你是一个专业的设计提示词专家。对于设计需求,你需要:\n1. 明确设计类型和用途\n2. 指定视觉风格和元素\n3. 确定色彩方案\n4. 添加具体的设计约束\n5. 包含参考示例说明\n\n请将用户的设计需求转换为专业的设计提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(6,'数字艺术助手','优化数字艺术、NFT创作相关的提示词','设计创意','','','','你是一个专业的数字艺术提示词专家。对于数字艺术需求,你需要:\n1. 明确艺术风格和主题\n2. 设计创作工具和流程\n3. 考虑版权和认证机制\n4. 包含发行和交易方案\n5. 注意市场和收藏价值\n\n请将用户的数字艺术需求转换为专业的创作提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(7,'营销文案优化','优化营销和广告相关的提示词','商业营销','','','','你是一个专业的营销提示词专家。对于营销文案需求,你需要:\n1. 明确营销目标和目标受众\n2. 突出产品/服务的独特卖点\n3. 设定情感诉求和语气风格\n4. 添加号召性用语(CTA)\n5. 考虑平台特点和限制\n\n请将用户的营销需求转换为专业的文案提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(8,'电商运营助手','优化店铺运营、商品营销相关的提示词','商业营销','','','','你是一个专业的电商提示词专家。对于电商相关需求,你需要:\n1. 明确平台和店铺类型\n2. 设计商品陈列和描述\n3. 规划促销和活动方案\n4. 考虑用户转化路径\n5. 注意售后和服务标准\n\n请将用户的电商需求转换为专业的运营提示词。',1,'2025-02-23 10:11:11','2025-02-23 10:11:11'),(9,'直播带货助手','优化直播销售、带货营销相关的提示词','商业营销','','','','你是一<EFBFBD><EFBFBD>
|
|||
|
|
|
|||
|
|
/*Table structure for table `deviceinfo` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `deviceinfo`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `deviceinfo` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`nickname` varchar(100) NOT NULL DEFAULT '' COMMENT '会员名',
|
|||
|
|
`jiguang` varchar(100) NOT NULL DEFAULT '' COMMENT '极光id',
|
|||
|
|
`version` varchar(100) NOT NULL DEFAULT '' COMMENT '版本号',
|
|||
|
|
`xiaoqu` varchar(100) NOT NULL DEFAULT '' COMMENT '小区',
|
|||
|
|
`louhao` varchar(100) NOT NULL DEFAULT '' COMMENT '楼号',
|
|||
|
|
`danyuan` varchar(100) NOT NULL DEFAULT '' COMMENT '单元号',
|
|||
|
|
`jingdu` varchar(100) NOT NULL DEFAULT '' COMMENT '经度',
|
|||
|
|
`weidu` varchar(100) NOT NULL DEFAULT '' COMMENT '纬度',
|
|||
|
|
`snnum` varchar(100) NOT NULL DEFAULT '' COMMENT 'sn号',
|
|||
|
|
`mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '会员手机号码',
|
|||
|
|
`reg_ip` varchar(100) NOT NULL DEFAULT '' COMMENT '注册ip',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='设备注册表';
|
|||
|
|
|
|||
|
|
/*Data for the table `deviceinfo` */
|
|||
|
|
|
|||
|
|
insert into `deviceinfo`(`id`,`nickname`,`jiguang`,`version`,`xiaoqu`,`louhao`,`danyuan`,`jingdu`,`weidu`,`snnum`,`mobile`,`reg_ip`,`updated_time`,`created_time`) values (1,'水月澜岸','','101','','','','','','','','','2023-10-05 05:06:40','2023-10-05 05:06:40'),(2,'水月澜岸1','11','101','','','','','','','','','2023-10-05 06:31:42','2023-10-05 06:31:42'),(3,'13065ffa4f174516790','13065ffa4f174516790','101','水月澜岸','一号楼','一单元','108','108','128','','','2023-10-05 06:50:43','2023-10-05 06:50:43'),(4,'ws2','','123','','','','','','','','','2023-10-25 01:07:50','2023-10-25 01:07:50');
|
|||
|
|
|
|||
|
|
/*Table structure for table `dongtai_list` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `dongtai_list`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `dongtai_list` (
|
|||
|
|
`listid` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`date` varchar(100) NOT NULL DEFAULT '',
|
|||
|
|
`title` varchar(40) NOT NULL DEFAULT '',
|
|||
|
|
`imgSrc` varchar(100) NOT NULL DEFAULT '',
|
|||
|
|
`avatar` varchar(100) NOT NULL DEFAULT '',
|
|||
|
|
`content` varchar(128) NOT NULL DEFAULT '',
|
|||
|
|
`reading` varchar(128) NOT NULL DEFAULT '',
|
|||
|
|
`collection` varchar(128) NOT NULL DEFAULT '',
|
|||
|
|
`headImgSrc` varchar(100) NOT NULL,
|
|||
|
|
`author` varchar(100) NOT NULL DEFAULT '',
|
|||
|
|
`dateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|||
|
|
`postId` int(10) NOT NULL,
|
|||
|
|
PRIMARY KEY (`listid`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|||
|
|
|
|||
|
|
/*Data for the table `dongtai_list` */
|
|||
|
|
|
|||
|
|
insert into `dongtai_list`(`listid`,`date`,`title`,`imgSrc`,`avatar`,`content`,`reading`,`collection`,`headImgSrc`,`author`,`dateTime`,`postId`) values (1,'Sep 18 2016','正是虾肥蟹壮时','/images/post/crab.png','/images/avatar/1.png','菊黄蟹正肥,品尝秋之味。徐志摩把,“看初花的荻芦”和“到楼外楼吃蟹”,并列','112','96','/images/post/crab.png','林白衣','2017-03-15 14:08:48',0),(2,'Sep 18 2016','sdfwefsdf正是虾肥蟹壮时','/images/post/crab.png','/images/avatar/1.png','sdfwefsdfe菊黄蟹正肥,品尝秋之味。徐志摩把,“看初花的荻芦”和“到楼外楼吃蟹”,并列','112','96','/images/post/crab.png','林白衣','2017-03-15 14:08:48',1);
|
|||
|
|
|
|||
|
|
/*Table structure for table `feedback` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `feedback`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `feedback` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`rating` int(11) NOT NULL,
|
|||
|
|
`comment` text,
|
|||
|
|
`created_at` datetime DEFAULT NULL,
|
|||
|
|
`user_id` int(11) DEFAULT NULL,
|
|||
|
|
`prompt_id` int(11) NOT NULL,
|
|||
|
|
`wx_user_id` int(11) DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `user_id` (`user_id`),
|
|||
|
|
KEY `prompt_id` (`prompt_id`),
|
|||
|
|
KEY `wx_user_id` (`wx_user_id`),
|
|||
|
|
CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`uid`),
|
|||
|
|
CONSTRAINT `feedback_ibfk_2` FOREIGN KEY (`prompt_id`) REFERENCES `prompt` (`id`),
|
|||
|
|
CONSTRAINT `feedback_ibfk_3` FOREIGN KEY (`wx_user_id`) REFERENCES `wx_user` (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `feedback` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `food` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `food`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `food` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`cat_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id',
|
|||
|
|
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '书籍名称',
|
|||
|
|
`price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '售卖金额',
|
|||
|
|
`main_image` varchar(100) NOT NULL DEFAULT '' COMMENT '主图',
|
|||
|
|
`summary` varchar(10000) NOT NULL DEFAULT '' COMMENT '描述',
|
|||
|
|
`stock` int(11) NOT NULL DEFAULT '0' COMMENT '库存量',
|
|||
|
|
`tags` varchar(200) NOT NULL DEFAULT '' COMMENT 'tag关键字,以","连接',
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态 1:有效 0:无效',
|
|||
|
|
`month_count` int(11) NOT NULL DEFAULT '0' COMMENT '月销售数量',
|
|||
|
|
`total_count` int(11) NOT NULL DEFAULT '0' COMMENT '总销售量',
|
|||
|
|
`view_count` int(11) NOT NULL DEFAULT '0' COMMENT '总浏览次数',
|
|||
|
|
`comment_count` int(11) NOT NULL DEFAULT '0' COMMENT '总评论量',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后插入时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='食品表';
|
|||
|
|
|
|||
|
|
/*Data for the table `food` */
|
|||
|
|
|
|||
|
|
insert into `food`(`id`,`cat_id`,`name`,`price`,`main_image`,`summary`,`stock`,`tags`,`status`,`month_count`,`total_count`,`view_count`,`comment_count`,`updated_time`,`created_time`) values (1,1,'羊肉泡','50.00','20190802/6d6d7c6f3af7493f9af856d6c65dd3d9.png','<p>好吃斯蒂芬斯蒂芬斯蒂芬斯蒂芬的事sdsssssssdwwwwwet</p>',20,'美味,推荐',1,0,0,0,0,'2019-08-02 17:52:52','2019-08-02 17:33:16'),(2,2,'羊肉泡','50.00','20190802/6d6d7c6f3af7493f9af856d6c65dd3d9.png','<p>好吃斯蒂芬斯蒂芬斯蒂芬斯蒂芬的事sdsssssssdwwwwwet</p>',20,'美味,推荐',1,0,0,0,0,'2019-08-06 17:52:52','2019-08-05 17:33:16'),(3,3,'羊肉泡','50.00','20190802/6d6d7c6f3af7493f9af856d6c65dd3d9.png','<p>好吃斯蒂芬斯蒂芬斯蒂芬斯蒂芬的事sdsssssssdwwwwwet</p>',20,'美味,推荐',1,0,0,0,0,'2019-08-02 17:53:52','2019-08-02 17:33:20'),(4,4,'羊肉泡','50.00','20190802/6d6d7c6f3af7493f9af856d6c65dd3d9.png','<p>好吃斯蒂芬斯蒂芬斯蒂芬斯蒂芬的事sdsssssssdwwwwwet</p>',20,'美味,推荐',1,0,0,0,0,'2019-08-02 17:52:53','2019-08-02 17:33:18'),(5,1,'油焖大虾','100.00','20190806/5ac62ec5fd68436ebabb38c9c221ddfd.jpg','<p><img src=\"http://127.0.0.1:8999/static/upload/20190806/1bc2a824827b47eb803b5b6399ee58a1.jpg\"/></p>',1,'好吃,香',1,0,0,0,0,'2019-08-06 16:49:32','2019-08-06 16:49:32'),(6,3,'紫菜包饭','100.00','20190806/fc0b8877a24349c2966e64102f5cdc6a.jpg','<p><img src=\"http://127.0.0.1:8999/static/upload/20190806/2300a9b4ee9846a5a2ac9c0920dfc901.jpg\"/></p>',9,'美味,可口',1,0,0,0,0,'2019-08-06 16:54:06','2019-08-06 16:54:06'),(7,5,'书桌','120000.00','20190812/34c121116c4f42e788636160d29b6e22.jpg','<p>祥利书桌</p>',1,'品质',1,0,0,0,0,'2019-08-12 17:04:22','2019-08-12 17:04:22');
|
|||
|
|
|
|||
|
|
/*Table structure for table `food_cat` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `food_cat`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `food_cat` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '类别名称',
|
|||
|
|
`weight` tinyint(4) NOT NULL DEFAULT '1' COMMENT '权重',
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态 1:有效 0:无效',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `idx_name` (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='食品分类';
|
|||
|
|
|
|||
|
|
/*Data for the table `food_cat` */
|
|||
|
|
|
|||
|
|
insert into `food_cat`(`id`,`name`,`weight`,`status`,`updated_time`,`created_time`) values (1,'东北菜',1,0,'2019-08-02 08:59:43','2019-08-02 08:59:43'),(2,'东北菜88',10,0,'2019-08-02 09:00:57','2019-08-02 09:00:57'),(3,'海鲜类',1,0,'2019-08-06 16:52:48','2019-08-06 16:52:39'),(4,'客厅',1,1,'2019-08-12 16:57:55','2019-08-12 16:57:55'),(5,'书房',1,1,'2019-08-12 16:58:03','2019-08-12 16:58:03'),(6,'厨餐厅',1,1,'2019-08-12 16:58:17','2019-08-12 16:58:17'),(7,'卧室',1,1,'2019-08-12 16:58:27','2019-08-12 16:58:27');
|
|||
|
|
|
|||
|
|
/*Table structure for table `food_sale_change_log` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `food_sale_change_log`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `food_sale_change_log` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`food_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
|
|||
|
|
`quantity` int(11) NOT NULL DEFAULT '0' COMMENT '售卖数量',
|
|||
|
|
`price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '售卖金额',
|
|||
|
|
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '售卖时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_food_id_id` (`food_id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品销售情况';
|
|||
|
|
|
|||
|
|
/*Data for the table `food_sale_change_log` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `food_stock_change_log` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `food_stock_change_log`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `food_stock_change_log` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`food_id` int(11) NOT NULL COMMENT '商品id',
|
|||
|
|
`unit` int(11) NOT NULL DEFAULT '0' COMMENT '变更多少',
|
|||
|
|
`total_stock` int(11) NOT NULL DEFAULT '0' COMMENT '变更之后总量',
|
|||
|
|
`note` varchar(100) NOT NULL DEFAULT '' COMMENT '备注字段',
|
|||
|
|
`created_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_food_id` (`food_id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='数据库存变更表';
|
|||
|
|
|
|||
|
|
/*Data for the table `food_stock_change_log` */
|
|||
|
|
|
|||
|
|
insert into `food_stock_change_log`(`id`,`food_id`,`unit`,`total_stock`,`note`,`created_time`) values (1,1,20,20,'后台修改','2019-08-02 17:33:16'),(2,1,0,20,'后台修改','2019-08-02 17:52:52'),(3,5,1,1,'后台修改','2019-08-06 16:49:32'),(4,6,10,10,'后台修改','2019-08-06 16:54:06'),(5,6,-1,9,'在线购买','2019-08-07 10:34:01'),(6,7,1,1,'后台修改','2019-08-12 17:04:22');
|
|||
|
|
|
|||
|
|
/*Table structure for table `images` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `images`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `images` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`file_key` varchar(60) NOT NULL DEFAULT '' COMMENT '文件名',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `images` */
|
|||
|
|
|
|||
|
|
insert into `images`(`id`,`file_key`,`created_time`) values (1,'20190802/57cf16593a3c4398a9503cb80c924da9.png','2019-08-02 15:49:49'),(2,'20190802/f732e82251b141a798f6225718b65639.png','2019-08-02 15:56:42'),(3,'20190802/ced439416a7d49b6a694dd0c44cf04f4.png','2019-08-02 16:06:23'),(4,'20190802/1ed32d7ec80f4fee91b56065ebc6687f.png','2019-08-02 16:25:01'),(5,'20190802/9d86635022eb430da950f1069665186f.png','2019-08-02 16:36:01'),(6,'20190802/23fa0d93ffea4a1fadd6c924bc54da39.png','2019-08-02 16:38:56'),(7,'20190802/245bc835a2514d0e9c1aaa12a5c8672e.png','2019-08-02 17:22:48'),(8,'20190802/8b6113a5bfd1486f9756d99d0f6612ab.png','2019-08-02 17:32:35'),(9,'20190802/6d6d7c6f3af7493f9af856d6c65dd3d9.png','2019-08-02 17:52:44'),(10,'20190802/92081b8b866d47959666cc6306a3ab64.png','2019-08-02 18:18:31'),(11,'20190802/80c3611a2d5541998e97bc3d9e282b36.png','2019-08-02 18:18:46'),(12,'20190806/5ac62ec5fd68436ebabb38c9c221ddfd.jpg','2019-08-06 16:48:55'),(13,'20190806/1bc2a824827b47eb803b5b6399ee58a1.jpg','2019-08-06 16:49:15'),(14,'20190806/fc0b8877a24349c2966e64102f5cdc6a.jpg','2019-08-06 16:53:33'),(15,'20190806/2300a9b4ee9846a5a2ac9c0920dfc901.jpg','2019-08-06 16:53:47'),(16,'20190812/34c121116c4f42e788636160d29b6e22.jpg','2019-08-12 17:03:58');
|
|||
|
|
|
|||
|
|
/*Table structure for table `member` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `member`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `member` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`openid` varchar(80) NOT NULL COMMENT '微信openid',
|
|||
|
|
`nickname` varchar(100) DEFAULT NULL COMMENT '用户昵称',
|
|||
|
|
`mobile` varchar(11) DEFAULT NULL COMMENT '手机号码',
|
|||
|
|
`sex` int(11) NOT NULL DEFAULT '0' COMMENT '性别 1:男 2:女',
|
|||
|
|
`avatar` varchar(200) NOT NULL DEFAULT '' COMMENT '头像',
|
|||
|
|
`salt` varchar(32) NOT NULL COMMENT '随机加密串',
|
|||
|
|
`reg_ip` varchar(100) NOT NULL DEFAULT '' COMMENT '注册IP',
|
|||
|
|
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态 1:有效 0:无效',
|
|||
|
|
`updated_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_openid` (`openid`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='会员表';
|
|||
|
|
|
|||
|
|
/*Data for the table `member` */
|
|||
|
|
|
|||
|
|
insert into `member`(`id`,`openid`,`nickname`,`mobile`,`sex`,`avatar`,`salt`,`reg_ip`,`status`,`updated_time`,`created_time`) values (1,'0d3njOkl26EW5f4gFKnl2HfpYp2njOkB',NULL,NULL,0,'','rQJ8BroKECYi6kB9','',1,'2025-02-21 00:28:00','2025-02-21 00:28:00'),(2,'0b39tmll2xwn5f4qU0pl2DcgHH19tml8',NULL,NULL,0,'','9ESrV7h9J2VBdzVe','',1,'2025-02-21 00:29:18','2025-02-21 00:29:18'),(3,'0c3uWJ000KYKKT1QOm000uePXa4uWJ0x',NULL,NULL,0,'','0PjLNyzjW3dNoI5Q','',1,'2025-02-21 00:30:09','2025-02-21 00:30:09'),(4,'0a3ifMkl27FX5f45KDll2ZQBKf2ifMkv',NULL,NULL,0,'','IPYDLO6BawdGYjIm','',1,'2025-02-21 23:12:55','2025-02-21 23:12:55'),(5,'0f3Z9Nkl2xzX5f46Fjol2umWxw4Z9NkP',NULL,NULL,0,'','K1bMQszfA5zNPngN','',1,'2025-02-21 23:27:13','2025-02-21 23:27:13'),(6,'0d34aOkl26y06f4j5bll2LJMi034aOkR',NULL,NULL,0,'','937qjPoIxaBflHbH','',1,'2025-02-21 23:43:39','2025-02-21 23:43:39'),(7,'0b31oOkl2YjY5f4yHvnl2mxKtY31oOkM',NULL,NULL,0,'','pGonGCdvoTnlSHDn','',1,'2025-02-21 23:47:20','2025-02-21 23:47:20'),(8,'0d3nYb000TSlLT1fSr200qcHVi4nYb0q',NULL,NULL,0,'','n1EZGWBgpEqSn08d','',1,'2025-02-21 23:50:21','2025-02-21 23:50:21');
|
|||
|
|
|
|||
|
|
/*Table structure for table `member_address` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `member_address`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `member_address` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`nickname` varchar(20) NOT NULL DEFAULT '' COMMENT '收货人姓名',
|
|||
|
|
`mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '收货人手机号码',
|
|||
|
|
`province_id` int(11) NOT NULL DEFAULT '0' COMMENT '省id',
|
|||
|
|
`province_str` varchar(50) NOT NULL DEFAULT '' COMMENT '省名称',
|
|||
|
|
`city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市id',
|
|||
|
|
`city_str` varchar(50) NOT NULL DEFAULT '' COMMENT '市名称',
|
|||
|
|
`area_id` int(11) NOT NULL DEFAULT '0' COMMENT '区域id',
|
|||
|
|
`area_str` varchar(50) NOT NULL DEFAULT '' COMMENT '区域名称',
|
|||
|
|
`address` varchar(100) NOT NULL DEFAULT '' COMMENT '详细地址',
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效 1:有效 0:无效',
|
|||
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '默认地址',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_member_id_status` (`member_id`,`status`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='会员收货地址';
|
|||
|
|
|
|||
|
|
/*Data for the table `member_address` */
|
|||
|
|
|
|||
|
|
insert into `member_address`(`id`,`member_id`,`nickname`,`mobile`,`province_id`,`province_str`,`city_id`,`city_str`,`area_id`,`area_str`,`address`,`status`,`is_default`,`updated_time`,`created_time`) values (1,3,'猪猪侠','18133922183',610000,'陕西省',610100,'西安市',610113,'雁塔区','清华科技园',1,1,'2019-08-07 10:33:57','2019-08-07 10:33:57');
|
|||
|
|
|
|||
|
|
/*Table structure for table `member_cart` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `member_cart`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `member_cart` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`member_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`food_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
|
|||
|
|
`quantity` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_member_id` (`member_id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='购物车';
|
|||
|
|
|
|||
|
|
/*Data for the table `member_cart` */
|
|||
|
|
|
|||
|
|
insert into `member_cart`(`id`,`member_id`,`food_id`,`quantity`,`updated_time`,`created_time`) values (2,3,5,1,'2019-08-07 10:34:17','2019-08-07 10:34:17');
|
|||
|
|
|
|||
|
|
/*Table structure for table `member_comments` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `member_comments`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `member_comments` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`food_ids` varchar(200) NOT NULL DEFAULT '' COMMENT '商品ids',
|
|||
|
|
`pay_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
|
|||
|
|
`score` tinyint(4) NOT NULL DEFAULT '0' COMMENT '评分',
|
|||
|
|
`content` varchar(200) NOT NULL DEFAULT '' COMMENT '评论内容',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_member_id` (`member_id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会员评论表';
|
|||
|
|
|
|||
|
|
/*Data for the table `member_comments` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `mendianuserinfo` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `mendianuserinfo`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `mendianuserinfo` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`nickname` varchar(20) NOT NULL DEFAULT '' COMMENT '会员名',
|
|||
|
|
`mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '会员手机号码',
|
|||
|
|
`storename` varchar(20) NOT NULL DEFAULT '0' COMMENT '店铺名称',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=870 DEFAULT CHARSET=utf8mb4 COMMENT='会员表';
|
|||
|
|
|
|||
|
|
/*Data for the table `mendianuserinfo` */
|
|||
|
|
|
|||
|
|
insert into `mendianuserinfo`(`id`,`nickname`,`mobile`,`storename`,`updated_time`,`created_time`) values (1,'测试','18122525528','0','2019-10-30 10:16:55','2019-10-30 10:16:55'),(2,'李霞','15513545110','海口京瓷','2020-03-01 20:27:13','2020-03-01 20:27:13'),(3,'陶丽琴','18672772342','居然之家武昌B·Y','2020-03-01 20:28:18','2020-03-01 20:28:18'),(4,'马文博','15101058911','北京东红星京滟店','2020-03-01 20:28:30','2020-03-01 20:28:30'),(5,'葛敬艳','13355991562','金可儿西城店','2020-03-01 20:28:37','2020-03-01 20:28:37'),(6,'钟庆萍','15553981827','临沂居然合体店','2020-03-01 20:28:49','2020-03-01 20:28:49'),(7,'刘春梅','13693228637','意风榴莲西集美店','2020-03-01 20:29:22','2020-03-01 20:29:22'),(8,'张婷婷','18052628262','靖江红星京瓷','2020-03-01 20:29:46','2020-03-01 20:29:46'),(9,'岳军霞','13931138225','蓝天店','2020-03-01 20:30:03','2020-03-01 20:30:03'),(10,'彭玉兰','13355991665','金可儿中兴店','2020-03-01 20:30:14','2020-03-01 20:30:14'),(11,'张富国','13121587520','志邦裂变组','2020-03-01 20:30:15','2020-03-01 20:30:15'),(12,'任敏','18335130931','三桂美神','2020-03-01 20:30:45','2020-03-01 20:30:45'),(13,'昌雪娇','13769119854','昆明居然爱室丽','2020-03-01 20:31:24','2020-03-01 20:31:24'),(14,'王德翠','15912125711','玉溪槟榔','2020-03-01 20:32:17','2020-03-01 20:32:17'),(15,'梁鹏鹏','13355991151','金可儿西城店','2020-03-01 20:33:08','2020-03-01 20:33:08'),(16,'沈鹏飞','13335539822','红星','2020-03-01 20:33:47','2020-03-01 20:33:47'),(17,'张晓华','13361336152','烟台红星京瓷','2020-03-01 20:34:02','2020-03-01 20:34:02'),(18,'吴春红','18005261391','靖江红星京瓷','2020-03-01 20:35:15','2020-03-01 20:35:15'),(19,'吴丽君','15091468305','汉中居然槟榔','2020-03-01 20:35:15','2020-03-01 20:35:15'),(20,'郝粉梅','13031078016','志邦裂变组','2020-03-01 20:35:29','2020-03-01 20:35:29'),(21,'王玲','13999912390','','2020-03-01 20:37:14','2020-03-01 20:37:14'),(22,'刘凤丽','13919998738','','2020-03-01 20:37:28','2020-03-01 20:37:28'),(23,'梁莉萍','15992615251','珠海槟榔','2020-03-01 20:38:55','2020-03-01 20:38:55'),(24,'王芳','13999376423','大世界槟榔','2020-03-01 20:40:02','2020-03-01 20:40:02'),(25,'吴美清','18052637795','靖江红星京瓷','2020-03-01 20:40:18','2020-03-01 20:40:18'),(26,'杨宝荣','15029133737','荣发槟榔','2020-03-01 20:40:46','2020-03-01 20:40:46'),(27,'余娟','15152167833','徐州居然','2020-03-01 20:41:11','2020-03-01 20:41:11'),(28,'王总','13484474409','店铺3','2020-03-01 20:43:47','2020-03-01 20:43:47'),(29,'马微','15101187326','','2020-03-01 20:44:29','2020-03-01 20:44:29'),(30,'王静','18205483469','居然泰安店','2020-03-01 20:45:35','2020-03-01 20:45:35'),(31,'庞建英','13716698007','红星北四欧福莱馆','2020-03-01 20:47:49','2020-03-01 20:47:49'),(32,'张优美','15230538615','迁安京瓷','2020-03-01 20:48:00','2020-03-01 20:48:00'),(33,'宫丽霞','15226887566','','2020-03-01 20:48:18','2020-03-01 20:48:18'),(34,'王礼钦','13863110356','','2020-03-01 20:49:39','2020-03-01 20:49:39'),(35,'柯成超','15927191260','徐东欧亚达','2020-03-01 20:49:56','2020-03-01 20:49:56'),(36,'纪多勤','18356401286','安徽意风榴莲','2020-03-01 20:50:57','2020-03-01 20:50:57'),(37,'王进新','13301270123','意风榴莲西集美店','2020-03-01 20:51:43','2020-03-01 20:51:43'),(38,'王梅','15631879769','意风榴莲-衡水店','2020-03-01 20:52:07','2020-03-01 20:52:07'),(39,'唐沙','13552141026','西四环红星','2020-03-01 20:53:42','2020-03-01 20:53:42'),(40,'徐菲','15527879811','汉西红星1','2020-03-01 20:55:09','2020-03-01 20:55:09'),(41,'胡洪梅','15023377825','舒达国产红星','2020-03-01 20:56:25','2020-03-01 20:56:25'),(42,'宋晓洁','15037951310','居然槟榔','2020-03-01 20:57:06','2020-03-01 20:57:06'),(43,'耿立强','13439723413','','2020-03-01 20:57:22','2020-03-01 20:57:22'),(44,'武鹏','18258773160','MODA LOFT','2020-03-01 20:59:00','2020-03-01 20:59:00'),(45,'任玉<EFBFBD>
|
|||
|
|
|
|||
|
|
/*Table structure for table `mendianusertwo` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `mendianusertwo`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `mendianusertwo` (
|
|||
|
|
`id` int(100) NOT NULL DEFAULT '0',
|
|||
|
|
`name` varchar(100) NOT NULL,
|
|||
|
|
`phone` varchar(100) NOT NULL,
|
|||
|
|
`storename` varchar(100) NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `mendianusertwo` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `oauth_access_token` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `oauth_access_token`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `oauth_access_token` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`access_token` varchar(600) NOT NULL DEFAULT '',
|
|||
|
|
`expired_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_expired_time` (`expired_time`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信的access_token 用户调用其他接口的';
|
|||
|
|
|
|||
|
|
/*Data for the table `oauth_access_token` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `oauth_member_bind` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `oauth_member_bind`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `oauth_member_bind` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`client_type` varchar(20) NOT NULL DEFAULT '' COMMENT '客户端来源类型。qq,weibo,weixin',
|
|||
|
|
`type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '类型 type 1:wechat ',
|
|||
|
|
`openid` varchar(80) NOT NULL DEFAULT '' COMMENT '第三方id',
|
|||
|
|
`unionid` varchar(100) NOT NULL DEFAULT '',
|
|||
|
|
`extra` text NOT NULL COMMENT '额外字段',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_type_openid` (`type`,`openid`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='第三方登录绑定关系';
|
|||
|
|
|
|||
|
|
/*Data for the table `oauth_member_bind` */
|
|||
|
|
|
|||
|
|
insert into `oauth_member_bind`(`id`,`member_id`,`client_type`,`type`,`openid`,`unionid`,`extra`,`updated_time`,`created_time`) values (1,7,'',1,'oKFjU5EqiP0M5HAQWiKFCcQw57ng','','','2020-03-02 00:39:56','2020-03-02 00:39:56');
|
|||
|
|
|
|||
|
|
/*Table structure for table `pay_order` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `pay_order`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `pay_order` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`order_sn` varchar(40) NOT NULL DEFAULT '' COMMENT '随机订单号',
|
|||
|
|
`member_id` bigint(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`total_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单应付金额',
|
|||
|
|
`yun_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '运费金额',
|
|||
|
|
`pay_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单实付金额',
|
|||
|
|
`pay_sn` varchar(128) NOT NULL DEFAULT '' COMMENT '第三方流水号',
|
|||
|
|
`prepay_id` varchar(128) NOT NULL DEFAULT '' COMMENT '第三方预付id',
|
|||
|
|
`note` text NOT NULL COMMENT '备注信息',
|
|||
|
|
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1:支付完成 0 无效 -1 申请退款 -2 退款中 -9 退款成功 -8 待支付 -7 完成支付待确认',
|
|||
|
|
`express_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '快递状态,-8 待支付 -7 已付款待发货 1:确认收货 0:失败',
|
|||
|
|
`express_address_id` int(11) NOT NULL DEFAULT '0' COMMENT '快递地址id',
|
|||
|
|
`express_info` varchar(1000) NOT NULL DEFAULT '' COMMENT '快递信息',
|
|||
|
|
`comment_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '评论状态',
|
|||
|
|
`pay_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '付款到账时间',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最近一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `idx_order_sn` (`order_sn`),
|
|||
|
|
KEY `idx_member_id_status` (`member_id`,`status`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='在线购买订单表';
|
|||
|
|
|
|||
|
|
/*Data for the table `pay_order` */
|
|||
|
|
|
|||
|
|
insert into `pay_order`(`id`,`order_sn`,`member_id`,`total_price`,`yun_price`,`pay_price`,`pay_sn`,`prepay_id`,`note`,`status`,`express_status`,`express_address_id`,`express_info`,`comment_status`,`pay_time`,`updated_time`,`created_time`) values (1,'239448cd1b352b347203cbeb1f834f3b',3,'100.00','0.00','100.00','','','',-8,-8,1,'{\"nickname\": \"\\u732a\\u732a\\u4fa0\", \"address\": \"\\u9655\\u897f\\u7701\\u897f\\u5b89\\u5e02\\u96c1\\u5854\\u533a\\u6e05\\u534e\\u79d1\\u6280\\u56ed\", \"mobile\": \"18133922183\"}',0,'2019-08-07 10:34:00','2019-08-07 10:34:01','2019-08-07 10:34:01');
|
|||
|
|
|
|||
|
|
/*Table structure for table `pay_order_callback_data` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `pay_order_callback_data`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `pay_order_callback_data` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`pay_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '支付订单id',
|
|||
|
|
`pay_data` text NOT NULL COMMENT '支付回调信息',
|
|||
|
|
`refund_data` text NOT NULL COMMENT '退款回调信息',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `pay_order_id` (`pay_order_id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `pay_order_callback_data` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `pay_order_item` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `pay_order_item`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `pay_order_item` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`pay_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
|
|||
|
|
`member_id` bigint(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`quantity` int(11) NOT NULL DEFAULT '1' COMMENT '购买数量 默认1份',
|
|||
|
|
`price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品总价格,售价 * 数量',
|
|||
|
|
`food_id` int(11) NOT NULL DEFAULT '0' COMMENT '美食表id',
|
|||
|
|
`note` text NOT NULL COMMENT '备注信息',
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:1:成功 0 失败',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最近一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `id_order_id` (`pay_order_id`),
|
|||
|
|
KEY `idx_food_id` (`food_id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='订单详情表';
|
|||
|
|
|
|||
|
|
/*Data for the table `pay_order_item` */
|
|||
|
|
|
|||
|
|
insert into `pay_order_item`(`id`,`pay_order_id`,`member_id`,`quantity`,`price`,`food_id`,`note`,`status`,`updated_time`,`created_time`) values (1,1,3,1,'100.00',6,'',1,'2019-08-07 10:34:01','2019-08-07 10:34:01');
|
|||
|
|
|
|||
|
|
/*Table structure for table `prompt` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `prompt`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `prompt` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`input_text` text NOT NULL,
|
|||
|
|
`generated_text` text NOT NULL,
|
|||
|
|
`created_at` datetime DEFAULT NULL,
|
|||
|
|
`user_id` int(11) DEFAULT NULL,
|
|||
|
|
`wx_user_id` int(11) DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `user_id` (`user_id`),
|
|||
|
|
KEY `wx_user_id` (`wx_user_id`),
|
|||
|
|
CONSTRAINT `prompt_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`uid`),
|
|||
|
|
CONSTRAINT `prompt_ibfk_2` FOREIGN KEY (`wx_user_id`) REFERENCES `wx_user` (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `prompt` */
|
|||
|
|
|
|||
|
|
insert into `prompt`(`id`,`input_text`,`generated_text`,`created_at`,`user_id`,`wx_user_id`) values (1,'不改名逻辑,优化页面显示','1. **网站类型和风格**:保持现有网站类型不变,优化显示效果,提升用户体验。风格应保持与品牌一致,确保视觉统一。\n2. **页面布局和结构**:优化现有页面布局,确保信息层次清晰,重点内容突出。调整模块间距和排版,提升阅读舒适度。\n3. **响应式适配方案**:确保页面在不同设备(桌面、平板、手机)上显示效果一致,优化断点布局,提升移动端体验。\n4. **交互和动效设计**:增加微交互(如按钮点击反馈、加载动画),提升用户操作感知。避免过度动效,保持简洁流畅。\n5. **品牌视觉统一**:确保颜色、字体、图标等元素与品牌视觉规范一致,强化品牌识别度。\n\n**提示词**: \n- 优化页面布局 \n- 提升信息层次感 \n- 响应式断点优化 \n- 微交互设计 \n- 品牌视觉一致性 \n- 移动端适配 \n- 简洁动效 \n- 用户体验提升 \n- 模块间距调整 \n- 重点内容突出','2025-02-15 13:42:30',1,NULL),(2,'写一篇探案的文章','**文章类型**: 探案故事\n\n**目标受众**: 喜欢推理、悬疑和犯罪题材的读者,年龄范围广泛,尤其是对逻辑推理和细节分析感兴趣的群体。\n\n**写作风格和语气**: 紧张、悬疑、逻辑性强,带有一定的神秘感。语气应保持客观,但可以通过细节描写和对话来营造紧张氛围。\n\n**文章结构**:\n1. **引言**: 介绍案件背景,设定故事的时间和地点,简要描述案件的基本情况(如受害者、犯罪现场等)。\n2. **案件展开**: 描述侦探或调查人员介入案件的过程,逐步揭示案件的复杂性。可以通过对话、线索分析等方式推进情节。\n3. **线索与推理**: 详细描述调查过程中发现的线索,以及侦探如何通过逻辑推理逐步接近真相。可以加入一些误导性的线索,增加悬疑感。\n4. **高潮**: 揭示关键线索或转折点,侦探通过推理得出最终结论,指向真正的凶手或犯罪动机。\n5. **结局**: 案件解决,凶手被揭露,解释犯罪动机和手法。可以留下一些开放性的问题或思考,增加故事的深度。\n\n**具体要求**:\n- **字数**: 2000-3000字\n- **格式**: 段落清晰,对话部分使用引号标注,线索和推理部分应逻辑严密。\n- **细节要求**: 案件背景应真实可信,线索设计应合理且具有挑战性,推理过程应严谨,避免过于简单的解决方案。\n\n**示例提示词**:\n- 案件背景:一个安静的乡村小镇,突然发生了一起离奇的谋杀案,受害者是当地一位受人尊敬的教师。\n- 侦探:一位经验丰富的退休警探,被邀请协助调查。\n- 线索:现场发现了一把带有指纹的匕首,受害者的日记中提到了几个可疑人物。\n- 推理:通过分析指纹和日记内容,侦探逐步排除嫌疑人,最终锁定凶手。\n- 结局:凶手是受害者的学生,因长期受到心理压迫而报复。\n\n通过这些提示词,你可以构建一个引人入胜的探案故事,吸引读者的注意力并保持他们的兴趣直到最后。','2025-02-15 13:46:07',1,NULL),(3,'微信小程序开发,功能:提示词大师\r\n通过选择现有的提示词模板,通过接口方式发送给后台服务器,后台服务器将生成好的专业提示词返回。','**提示词优化:**\n\n**目标:** 开发一个微信小程序,名为“提示词大师”,用户可以选择现有的提示词模板,通过接口将选择的模板发送至后台服务器,后台服务器处理并返回生成的专业提示词。\n\n**功能需求:**\n1. **用户界面:**\n - 提供用户友好的界面,展示多种提示词模板供用户选择。\n - 每个模板应有简短的描述和示例,帮助用户理解其用途。\n\n2. **模板选择与发送:**\n -
|
|||
|
|
|
|||
|
|
/*Table structure for table `prompt_template` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `prompt_template`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `prompt_template` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(100) NOT NULL,
|
|||
|
|
`description` text,
|
|||
|
|
`category` varchar(50) DEFAULT NULL,
|
|||
|
|
`industry` varchar(50) DEFAULT NULL,
|
|||
|
|
`profession` varchar(50) DEFAULT NULL,
|
|||
|
|
`sub_category` varchar(50) DEFAULT NULL,
|
|||
|
|
`system_prompt` text NOT NULL,
|
|||
|
|
`is_default` tinyint(1) DEFAULT NULL,
|
|||
|
|
`created_at` datetime DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `prompt_template` */
|
|||
|
|
|
|||
|
|
insert into `prompt_template`(`id`,`name`,`description`,`category`,`industry`,`profession`,`sub_category`,`system_prompt`,`is_default`,`created_at`) values (1,'通用提示词优化','将普通描述转换为专业的AI提示词','通用工具','','','','你是一个专业的提示词工程师,擅长将普通的描述转换为结构化、专业的 Prompt。\n\n你需要:\n1. 分析用户的需求和意图\n2. 将其转换为清晰、详细的提示词\n3. 添加必要的上下文和约束条件\n4. 使用专业的术语和格式\n5. 确保生成的提示词能够获得最佳的 AI 响应\n\n请直接返回优化后的提示词,不要添加任何解释或其他内容。',1,'2025-02-15 13:41:18'),(2,'文章写作助手','专门优化文章写作相关的提示词','内容创作','','','','你是一个专业的写作提示词专家。针对文章写作需求,你需要:\n1. 明确文章类型(博客、论文、新闻等)\n2. 确定目标受众\n3. 设定写作风格和语气\n4. 指定文章结构\n5. 添加具体要求(字数、格式等)\n\n请将用户的写作需求转换为详细的写作提示词。',0,'2025-02-15 13:41:18'),(3,'故事创作助手','优化故事和剧本创作相关的提示词','内容创作','','','','你是一个专业的故事创作提示词专家。对于创作需求,你需要:\n1. 明确故事类型和主题\n2. 设定人物和背景\n3. 构建情节和冲突\n4. 确定叙事视角和风格\n5. 添加情感和氛围要求\n\n请将用户的创作需求转换为专业的故事提示词。',0,'2025-02-15 13:41:18'),(4,'短视频创作助手','优化短视频内容、剪辑相关的提示词','内容创作','','','','你是一个专业的短视频提示词专家。对于短视频需求,你需要:\n1. 明确内容主题和风格\n2. 设计剧情和镜头语言\n3. 规划拍摄和剪辑要点\n4. 考虑音乐和特效搭配\n5. 注意平台算法和规则\n\n请将用户的视频需求转换为专业的创作提示词。',0,'2025-02-15 13:41:18'),(5,'设计创意优化','优化设计和创意相关的提示词','设计创意','','','','你是一个专业的设计提示词专家。对于设计需求,你需要:\n1. 明确设计类型和用途\n2. 指定视觉风格和元素\n3. 确定色彩方案\n4. 添加具体的设计约束\n5. 包含参考示例说明\n\n请将用户的设计需求转换为专业的设计提示词。',0,'2025-02-15 13:41:18'),(6,'数字艺术助手','优化数字艺术、NFT创作相关的提示词','设计创意','','','','你是一个专业的数字艺术提示词专家。对于数字艺术需求,你需要:\n1. 明确艺术风格和主题\n2. 设计创作工具和流程\n3. 考虑版权和认证机制\n4. 包含发行和交易方案\n5. 注意市场和收藏价值\n\n请将用户的数字艺术需求转换为专业的创作提示词。',0,'2025-02-15 13:41:18'),(7,'营销文案优化','优化营销和广告相关的提示词','商业营销','','','','你是一个专业的营销提示词专家。对于营销文案需求,你需要:\n1. 明确营销目标和目标受众\n2. 突出产品/服务的独特卖点\n3. 设定情感诉求和语气风格\n4. 添加号召性用语(CTA)\n5. 考虑平台特点和限制\n\n请将用户的营销需求转换为专业的文案提示词。',0,'2025-02-15 13:41:18'),(8,'电商运营助手','优化店铺运营、商品营销相关的提示词','商业营销','','','','你是一个专业的电商提示词专家。对于电商相关需求,你需要:\n1. 明确平台和店铺类型\n2. 设计商品陈列和描述\n3. 规划促销和活动方案\n4. 考虑用户转化路径\n5. 注意售后和服务标准\n\n请将用户的电商需求转换为专业的运营提示词。',0,'2025-02-15 13:41:18'),(9,'直播带货助手','优化直播销售、带货营销相关的提示词','商业营销','','','','你是一个专业的直播带货提示词专家。对于直播相关需求,你需要:\n1. 明确直播平台和商品定位\n2. 设计话术和互动策略\n3. 规划直播节奏和流程\n4. 考虑转化和促销
|
|||
|
|
|
|||
|
|
/*Table structure for table `queue_list` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `queue_list`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `queue_list` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`queue_name` varchar(30) NOT NULL DEFAULT '' COMMENT '队列名字',
|
|||
|
|
`data` varchar(500) NOT NULL DEFAULT '' COMMENT '队列数据',
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '-1' COMMENT '状态 -1 待处理 1 已处理',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='事件队列表';
|
|||
|
|
|
|||
|
|
/*Data for the table `queue_list` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `runoob_tbl` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `runoob_tbl`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `runoob_tbl` (
|
|||
|
|
`runoob_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`runoob_title` varchar(100) NOT NULL,
|
|||
|
|
`runoob_author` varchar(40) NOT NULL,
|
|||
|
|
`submission_date` date DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`runoob_id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|||
|
|
|
|||
|
|
/*Data for the table `runoob_tbl` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `stat_daily_food` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `stat_daily_food`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `stat_daily_food` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`date` date NOT NULL,
|
|||
|
|
`food_id` int(11) NOT NULL DEFAULT '0' COMMENT '菜品id',
|
|||
|
|
`total_count` int(11) NOT NULL DEFAULT '0' COMMENT '售卖总数量',
|
|||
|
|
`total_pay_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总售卖金额',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `date_food_id` (`date`,`food_id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='书籍售卖日统计';
|
|||
|
|
|
|||
|
|
/*Data for the table `stat_daily_food` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `stat_daily_member` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `stat_daily_member`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `stat_daily_member` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`date` date NOT NULL COMMENT '日期',
|
|||
|
|
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`total_shared_count` int(11) NOT NULL DEFAULT '0' COMMENT '当日分享总次数',
|
|||
|
|
`total_pay_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '当日付款总金额',
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_date_member_id` (`date`,`member_id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会员日统计';
|
|||
|
|
|
|||
|
|
/*Data for the table `stat_daily_member` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `stat_daily_site` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `stat_daily_site`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `stat_daily_site` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`date` date NOT NULL COMMENT '日期',
|
|||
|
|
`total_pay_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '当日应收总金额',
|
|||
|
|
`total_member_count` int(11) NOT NULL COMMENT '会员总数',
|
|||
|
|
`total_new_member_count` int(11) NOT NULL COMMENT '当日新增会员数',
|
|||
|
|
`total_order_count` int(11) NOT NULL COMMENT '当日订单数',
|
|||
|
|
`total_shared_count` int(11) NOT NULL,
|
|||
|
|
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后一次更新时间',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `idx_date` (`date`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='全站日统计';
|
|||
|
|
|
|||
|
|
/*Data for the table `stat_daily_site` */
|
|||
|
|
|
|||
|
|
/*Table structure for table `user` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `user`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `user` (
|
|||
|
|
`uid` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`nickname` varchar(100) NOT NULL,
|
|||
|
|
`mobile` varchar(20) NOT NULL,
|
|||
|
|
`email` varchar(100) NOT NULL,
|
|||
|
|
`sex` int(11) NOT NULL DEFAULT '0',
|
|||
|
|
`avatar` varchar(64) NOT NULL DEFAULT '',
|
|||
|
|
`login_name` varchar(20) NOT NULL,
|
|||
|
|
`login_pwd` varchar(32) NOT NULL,
|
|||
|
|
`login_salt` varchar(32) NOT NULL,
|
|||
|
|
`status` int(11) NOT NULL,
|
|||
|
|
`updated_time` datetime DEFAULT NULL,
|
|||
|
|
`created_time` datetime DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`uid`),
|
|||
|
|
UNIQUE KEY `login_name` (`login_name`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `user` */
|
|||
|
|
|
|||
|
|
insert into `user`(`uid`,`nickname`,`mobile`,`email`,`sex`,`avatar`,`login_name`,`login_pwd`,`login_salt`,`status`,`updated_time`,`created_time`) values (1,'Admin','13800138000','admin@example.com',1,'','admin','64c0441318bb482cd91b4da7ace107f6','2lOiEBIG3KL6XhsNqJk37gYXrMx9Yg9T',1,NULL,NULL),(2,'编程浪子www.54php.cn','11012345679','apanly@163.com',1,'','54php.cn','816440c40b7a9d55ff9eb7b20760862c','cF3JfH5FJfQ8B2Ba',1,'2017-03-15 14:08:48','2017-03-15 14:08:48');
|
|||
|
|
|
|||
|
|
/*Table structure for table `wx_share_history` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `wx_share_history`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `wx_share_history` (
|
|||
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
|
|||
|
|
`share_url` varchar(200) NOT NULL DEFAULT '' COMMENT '分享的页面url',
|
|||
|
|
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='微信分享记录';
|
|||
|
|
|
|||
|
|
/*Data for the table `wx_share_history` */
|
|||
|
|
|
|||
|
|
insert into `wx_share_history`(`id`,`member_id`,`share_url`,`created_time`) values (1,5,'pages/food/info?id=6','2019-08-07 14:55:53');
|
|||
|
|
|
|||
|
|
/*Table structure for table `wx_user` */
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `wx_user`;
|
|||
|
|
|
|||
|
|
CREATE TABLE `wx_user` (
|
|||
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|||
|
|
`openid` varchar(64) NOT NULL,
|
|||
|
|
`session_key` varchar(64) DEFAULT NULL,
|
|||
|
|
`unionid` varchar(64) DEFAULT NULL,
|
|||
|
|
`nickname` varchar(100) DEFAULT NULL,
|
|||
|
|
`avatar_url` varchar(255) DEFAULT NULL,
|
|||
|
|
`gender` int(11) DEFAULT '0',
|
|||
|
|
`country` varchar(50) DEFAULT NULL,
|
|||
|
|
`province` varchar(50) DEFAULT NULL,
|
|||
|
|
`city` varchar(50) DEFAULT NULL,
|
|||
|
|
`language` varchar(20) DEFAULT NULL,
|
|||
|
|
`phone` varchar(20) DEFAULT NULL,
|
|||
|
|
`is_active` tinyint(1) DEFAULT '1',
|
|||
|
|
`last_login` datetime DEFAULT CURRENT_TIMESTAMP,
|
|||
|
|
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
|
|||
|
|
`updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `openid` (`openid`),
|
|||
|
|
UNIQUE KEY `unionid` (`unionid`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
|
|||
|
|
|
|||
|
|
/*Data for the table `wx_user` */
|
|||
|
|
|
|||
|
|
insert into `wx_user`(`id`,`openid`,`session_key`,`unionid`,`nickname`,`avatar_url`,`gender`,`country`,`province`,`city`,`language`,`phone`,`is_active`,`last_login`,`created_at`,`updated_at`) values (1,'oKFjU5EqiP0M5HAQWiKFCcQw57ng','An1Tw+OJ0BegDGxaF0hxgw==',NULL,'微信用户','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',0,'','','','',NULL,1,'2025-02-22 15:58:34','2025-02-21 16:24:09','2025-02-22 15:58:35');
|
|||
|
|
|
|||
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|||
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|||
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|||
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|