mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
53 lines
3.0 KiB
SQL
53 lines
3.0 KiB
SQL
/*
|
|
Navicat MySQL Data Transfer
|
|
|
|
Source Server : anyon.localhost
|
|
Source Server Type : MySQL
|
|
Source Server Version : 80018
|
|
Source Host : localhost:3306
|
|
Source Schema : admin_v6
|
|
|
|
Target Server Type : MySQL
|
|
Target Server Version : 80018
|
|
File Encoding : 65001
|
|
|
|
Date: 12/04/2021 10:39:27
|
|
*/
|
|
|
|
SET NAMES utf8mb4;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for wechat_auto
|
|
-- ----------------------------
|
|
CREATE TABLE IF NOT EXISTS `wechat_auto` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '类型(text,image,news)',
|
|
`time` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '延迟时间',
|
|
`code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '消息编号',
|
|
`appid` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号APPID',
|
|
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '文本内容',
|
|
`image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '图片链接',
|
|
`voice_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '语音链接',
|
|
`music_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐标题',
|
|
`music_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐链接',
|
|
`music_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '缩略图片',
|
|
`music_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐描述',
|
|
`video_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频标题',
|
|
`video_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频URL',
|
|
`video_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频描述',
|
|
`news_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '图文ID',
|
|
`status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '状态(0禁用,1启用)',
|
|
`create_by` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '创建人',
|
|
`create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
INDEX `idx_wechat_auto_type`(`type`) USING BTREE,
|
|
INDEX `idx_wechat_auto_keys`(`time`) USING BTREE,
|
|
INDEX `idx_wechat_auto_appid`(`appid`) USING BTREE,
|
|
INDEX `idx_wechat_auto_code`(`code`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-回复' ROW_FORMAT = COMPACT;
|
|
|
|
ALTER TABLE `system_queue` MODIFY COLUMN `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '任务名称' AFTER `code`;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|