Skip to content

Commit

Permalink
Update 整理合并所有的数据库文件成一个,方便新手导入
Browse files Browse the repository at this point in the history
  • Loading branch information
BobCoderS9 committed Oct 31, 2021
1 parent 79f6fdc commit ea09160
Show file tree
Hide file tree
Showing 23 changed files with 138 additions and 321 deletions.
13 changes: 0 additions & 13 deletions sql/clean.sql

This file was deleted.

5 changes: 0 additions & 5 deletions sql/clean_job.sql

This file was deleted.

49 changes: 0 additions & 49 deletions sql/config.sql

This file was deleted.

File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions sql/detect_ban_log.sql

This file was deleted.

16 changes: 0 additions & 16 deletions sql/email_queue.sql

This file was deleted.

1 change: 0 additions & 1 deletion sql/fix_unable_to_reg.sql

This file was deleted.

14 changes: 0 additions & 14 deletions sql/gconfig.sql

This file was deleted.

137 changes: 137 additions & 0 deletions sql/glzjin_all.sql
Original file line number Diff line number Diff line change
Expand Up @@ -779,3 +779,140 @@ CREATE TABLE IF NOT EXISTS `telegram_tasks` (
ALTER TABLE `detect_log` ADD `status` int(2) NOT NULL DEFAULT '0' AFTER `node_id`;

ALTER TABLE `user` ADD COLUMN `uuid` TEXT NULL DEFAULT NULL COMMENT 'uuid' AFTER `passwd`;

--
-- Email Queue 發件列表
--
CREATE TABLE IF NOT EXISTS `email_queue` (
`id` bigint(20) NOT NULL,
`to_email` varchar(32) NOT NULL,
`subject` longtext NOT NULL,
`template` longtext NOT NULL,
`array` longtext NOT NULL,
`time` int(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Email Queue 發件列表';

ALTER TABLE `email_queue`
ADD PRIMARY KEY (`id`);
ALTER TABLE `email_queue`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50723
Source Host : localhost:3306
Source Schema : ssp
Target Server Type : MySQL
Target Server Version : 50723
File Encoding : 65001
Date: 14/09/2018 09:30:12
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for config
-- ----------------------------
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config` (
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`value` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
PRIMARY KEY (`name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config
-- ----------------------------
INSERT INTO `config` VALUES ('AliPay_Cookie', NULL);
INSERT INTO `config` VALUES ('AliPay_QRcode', NULL);
INSERT INTO `config` VALUES ('AliPay_Status', '1');
INSERT INTO `config` VALUES ('Notice_EMail', NULL);
INSERT INTO `config` VALUES ('WxPay_Cookie', NULL);
INSERT INTO `config` VALUES ('WxPay_QRcode', NULL);
INSERT INTO `config` VALUES ('WxPay_Status', '1');
INSERT INTO `config` VALUES ('WxPay_Url', 'wx.qq.com');
INSERT INTO `config` VALUES ('WxPay_SyncKey', NULL);
INSERT INTO `config` VALUES ('Pay_Price', NULL);
INSERT INTO `config` VALUES ('Pay_Xposed', '0');

ALTER TABLE `paylist`
ADD COLUMN `type` int(1) NULL DEFAULT 0 AFTER `datetime`,
ADD COLUMN `url` varchar(255) NULL AFTER `type`;

SET FOREIGN_KEY_CHECKS = 1;


/* 返利 */
ALTER TABLE `user` ADD `c_rebate` INT(11) NOT NULL DEFAULT '0' COMMENT '循环返利';
ALTER TABLE `user` ADD `rebate` INT(11) NOT NULL DEFAULT '-1' COMMENT '返利百分比';

/* 套餐购买记录增加生效套餐字段 */
ALTER TABLE `bought` ADD `usedd` INT(2) NOT NULL DEFAULT '0' COMMENT '生效套餐' AFTER `price`;

/* 商店支付回调购买套餐 */
ALTER TABLE `paylist`
ADD COLUMN `shop` text NULL COMMENT '商店支付回调购买套餐' AFTER `datetime`;

/* 节点使用单独的端口, 协议, 混淆, 加密 */
ALTER TABLE `ss_node` ADD `protocol` VARCHAR(50) NULL AFTER `method`,
ADD `obfs` VARCHAR(50) NULL AFTER `protocol`,
ADD `port` INT NULL AFTER `obfs`,
ADD `passwd` VARCHAR(50) NULL AFTER `port`;

/* 节点筛选 */
ALTER TABLE `link` ADD COLUMN `filter` TEXT NULL DEFAULT NULL COMMENT '节点筛选' AFTER `method`;
-- --------------------------------------------------------

--
-- 表的结构 `help`
--

CREATE TABLE `help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`markdown` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`class` int(11) NOT NULL,
`add_time` datetime(0) NOT NULL,
`ontop` int(11) NULL DEFAULT 0,
`sort` int(11) NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- 表的结构 `help_class`
--

CREATE TABLE `help_class` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '分类名称',
`upid` int(10) NULL DEFAULT NULL COMMENT '上级分类ID',
`li` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '字体图标',
`pageshow` int(5) NULL DEFAULT NULL COMMENT '是否在页面显示',
`sort` int(5) NULL DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/* 代理商 */
ALTER TABLE `user` ADD `back_money` decimal(12, 2) NOT NULL DEFAULT '0.00' COMMENT '返利金额' AFTER `rebate`;
ALTER TABLE `user` ADD `agent` INT(2) NOT NULL DEFAULT '0' COMMENT '代理商' AFTER `back_money`;
ALTER TABLE `user` ADD `config` text DEFAULT NULL COMMENT '用户配置' AFTER `agent`;

/* 提现记录表 */
CREATE TABLE `payback_take_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(3) NULL DEFAULT 0,
`userid` int(11) NULL DEFAULT 0,
`total` decimal(10, 2) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 0,
`datetime` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
68 changes: 0 additions & 68 deletions sql/metron_sql/metron.sql

This file was deleted.

15 changes: 0 additions & 15 deletions sql/metron_sql/mt_agent.sql

This file was deleted.

2 changes: 0 additions & 2 deletions sql/metron_sql/mt_bought.sql

This file was deleted.

33 changes: 0 additions & 33 deletions sql/metron_sql/mt_help.sql

This file was deleted.

1 change: 0 additions & 1 deletion sql/metron_sql/mt_link_filter.sql

This file was deleted.

Loading

0 comments on commit ea09160

Please sign in to comment.