You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
352 lines
8.6 KiB
SQL
352 lines
8.6 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 4.4.7
|
|
-- http://www.phpmyadmin.net
|
|
--
|
|
-- Host: localhost
|
|
-- Generation Time: 2016-03-24 18:40:52
|
|
-- 服务器版本: 5.5.42
|
|
-- PHP Version: 5.6.19
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
SET time_zone = "+00:00";
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
/*!40101 SET NAMES utf8 */;
|
|
|
|
--
|
|
-- Database: `glzjin_ss2`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `announcement`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `announcement` (
|
|
`id` int(11) NOT NULL,
|
|
`date` datetime NOT NULL,
|
|
`content` text NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `invite_code`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `invite_code` (
|
|
`id` int(32) NOT NULL,
|
|
`code` varchar(128) NOT NULL,
|
|
`user` int(32) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `ss_invite_code`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ss_invite_code` (
|
|
`id` int(11) NOT NULL,
|
|
`code` varchar(128) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `ss_node`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ss_node` (
|
|
`id` int(11) NOT NULL,
|
|
`name` varchar(128) NOT NULL,
|
|
`type` int(3) NOT NULL,
|
|
`server` varchar(128) NOT NULL,
|
|
`method` varchar(64) NOT NULL,
|
|
`info` varchar(128) NOT NULL,
|
|
`status` varchar(128) NOT NULL,
|
|
`sort` int(3) NOT NULL,
|
|
`custom_method` tinyint(1) NOT NULL DEFAULT '0',
|
|
`traffic_rate` float NOT NULL DEFAULT '1',
|
|
`offset` int(11) NOT NULL DEFAULT '0',
|
|
`node_class` int(11) NOT NULL DEFAULT '0',
|
|
`node_speedlimit` int(11) NOT NULL DEFAULT '0',
|
|
`node_connector` int(11) NOT NULL DEFAULT '0',
|
|
`node_bandwidth` bigint(20) NOT NULL DEFAULT '0',
|
|
`node_bandwidth_limit` bigint(20) NOT NULL DEFAULT '0',
|
|
`node_speed_sum` bigint(20) NOT NULL DEFAULT '0',
|
|
`node_heartbeat` bigint(20) NOT NULL DEFAULT '0',
|
|
`node_ping` int(11) NOT NULL DEFAULT '0'
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `ss_node_online_log`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ss_node_online_log` (
|
|
`id` int(11) NOT NULL,
|
|
`node_id` int(11) NOT NULL,
|
|
`online_user` int(11) NOT NULL,
|
|
`log_time` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `ss_password_reset`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ss_password_reset` (
|
|
`id` int(11) NOT NULL,
|
|
`email` varchar(32) NOT NULL,
|
|
`token` varchar(128) NOT NULL,
|
|
`init_time` int(11) NOT NULL,
|
|
`expire_time` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `ss_reset_pwd`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ss_reset_pwd` (
|
|
`id` int(11) NOT NULL,
|
|
`init_time` int(11) NOT NULL,
|
|
`expire_time` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`uni_char` varchar(32) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `ss_user_admin`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ss_user_admin` (
|
|
`id` int(11) NOT NULL,
|
|
`uid` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `user`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `user` (
|
|
`id` int(11) NOT NULL,
|
|
`user_name` varchar(128) CHARACTER SET utf8mb4 NOT NULL,
|
|
`email` varchar(32) NOT NULL,
|
|
`pass` varchar(64) NOT NULL,
|
|
`passwd` varchar(16) NOT NULL,
|
|
`t` int(11) NOT NULL DEFAULT '0',
|
|
`u` bigint(20) NOT NULL,
|
|
`d` bigint(20) NOT NULL,
|
|
`plan` varchar(2) CHARACTER SET utf8mb4 NOT NULL DEFAULT 'A',
|
|
`transfer_enable` bigint(20) NOT NULL,
|
|
`port` int(11) NOT NULL,
|
|
`switch` tinyint(4) NOT NULL DEFAULT '1',
|
|
`enable` tinyint(4) NOT NULL DEFAULT '1',
|
|
`type` tinyint(4) NOT NULL DEFAULT '1',
|
|
`last_get_gift_time` int(11) NOT NULL DEFAULT '0',
|
|
`last_check_in_time` int(11) NOT NULL DEFAULT '0',
|
|
`last_rest_pass_time` int(11) NOT NULL DEFAULT '0',
|
|
`reg_date` datetime NOT NULL,
|
|
`invite_num` int(8) NOT NULL,
|
|
`money` decimal(12,2) NOT NULL,
|
|
`ref_by` int(11) NOT NULL DEFAULT '0',
|
|
`expire_time` int(11) NOT NULL DEFAULT '0',
|
|
`method` varchar(64) NOT NULL DEFAULT 'rc4-md5',
|
|
`is_email_verify` tinyint(4) NOT NULL DEFAULT '0',
|
|
`reg_ip` varchar(128) NOT NULL DEFAULT '127.0.0.1',
|
|
`node_class` text,
|
|
`node_speedlimit` text NOT NULL,
|
|
`node_connector` int(11) NOT NULL DEFAULT '0',
|
|
`node_speed` int(11) NOT NULL DEFAULT '0',
|
|
`node_period` bigint(20) NOT NULL DEFAULT '0',
|
|
`is_admin` int(2) NOT NULL DEFAULT '0',
|
|
`wechat` text NOT NULL,
|
|
`last_day_t` bigint(20) NOT NULL DEFAULT '0',
|
|
`sendDailyMail` int(11) NOT NULL DEFAULT '1'
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `user_token`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `user_token` (
|
|
`id` int(11) NOT NULL,
|
|
`token` varchar(256) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`create_time` int(11) NOT NULL,
|
|
`expire_time` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 表的结构 `user_traffic_log`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `user_traffic_log` (
|
|
`id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`u` int(11) NOT NULL,
|
|
`d` int(11) NOT NULL,
|
|
`node_id` int(11) NOT NULL,
|
|
`rate` float NOT NULL,
|
|
`traffic` varchar(32) NOT NULL,
|
|
`log_time` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `announcement`
|
|
--
|
|
ALTER TABLE `announcement`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `invite_code`
|
|
--
|
|
ALTER TABLE `invite_code`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `code` (`code`);
|
|
|
|
--
|
|
-- Indexes for table `ss_invite_code`
|
|
--
|
|
ALTER TABLE `ss_invite_code`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `user_id` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `ss_node`
|
|
--
|
|
ALTER TABLE `ss_node`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `ss_node_online_log`
|
|
--
|
|
ALTER TABLE `ss_node_online_log`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `ss_password_reset`
|
|
--
|
|
ALTER TABLE `ss_password_reset`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `ss_reset_pwd`
|
|
--
|
|
ALTER TABLE `ss_reset_pwd`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `ss_user_admin`
|
|
--
|
|
ALTER TABLE `ss_user_admin`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `user`
|
|
--
|
|
ALTER TABLE `user`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `user_name` (`user_name`),
|
|
ADD KEY `uid` (`id`),
|
|
ADD KEY `email` (`email`);
|
|
|
|
--
|
|
-- Indexes for table `user_token`
|
|
--
|
|
ALTER TABLE `user_token`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `user_traffic_log`
|
|
--
|
|
ALTER TABLE `user_traffic_log`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `announcement`
|
|
--
|
|
ALTER TABLE `announcement`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `invite_code`
|
|
--
|
|
ALTER TABLE `invite_code`
|
|
MODIFY `id` int(32) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `ss_invite_code`
|
|
--
|
|
ALTER TABLE `ss_invite_code`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `ss_node`
|
|
--
|
|
ALTER TABLE `ss_node`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `ss_node_online_log`
|
|
--
|
|
ALTER TABLE `ss_node_online_log`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `ss_password_reset`
|
|
--
|
|
ALTER TABLE `ss_password_reset`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `ss_reset_pwd`
|
|
--
|
|
ALTER TABLE `ss_reset_pwd`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `ss_user_admin`
|
|
--
|
|
ALTER TABLE `ss_user_admin`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `user`
|
|
--
|
|
ALTER TABLE `user`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `user_token`
|
|
--
|
|
ALTER TABLE `user_token`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `user_traffic_log`
|
|
--
|
|
ALTER TABLE `user_traffic_log`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|