-
Notifications
You must be signed in to change notification settings - Fork 51
/
table.sql
95 lines (81 loc) · 2.4 KB
/
table.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2018-06-02 10:27:07
-- 服务器版本: 5.6.39-log
-- PHP Version: 7.1.17
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
--
-- Database: `autoseed`
--
-- --------------------------------------------------------
--
-- 表的结构 `info_list`
--
CREATE TABLE `info_list` (
`sort_id` int(11) NOT NULL,
`search_name` varchar(200) NOT NULL
COMMENT '搜索名称',
`tracker.byr.cn` int(11) NOT NULL DEFAULT '0',
`npupt.com` int(11) NOT NULL DEFAULT '0',
`pt.nwsuaf6.edu.cn` int(11) NOT NULL DEFAULT '0',
`pttracker6.tjupt.org` int(11) NOT NULL DEFAULT '0',
`hudbt.hust.edu.cn` int(11) NOT NULL DEFAULT '0',
`tracker.whupt.net` int(11) NOT NULL DEFAULT '0',
`ourbits.club` int(11) NOT NULL DEFAULT '0'
)
ENGINE = MyISAM
DEFAULT CHARSET = utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `seed_list`
--
CREATE TABLE `seed_list` (
`id` int(11) NOT NULL,
`title` varchar(200) NOT NULL,
`download_id` int(11) DEFAULT '0',
`tracker.byr.cn` int(11) NOT NULL DEFAULT '0',
`npupt.com` int(11) NOT NULL DEFAULT '0',
`pt.nwsuaf6.edu.cn` int(11) NOT NULL DEFAULT '0',
`pttracker6.tjupt.org` int(11) NOT NULL DEFAULT '0',
`hudbt.hust.edu.cn` int(11) NOT NULL DEFAULT '0',
`tracker.whupt.net` int(11) NOT NULL DEFAULT '0',
`ourbits.club` int(11) NOT NULL DEFAULT '0'
)
ENGINE = MyISAM
DEFAULT CHARSET = utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `info_list`
--
ALTER TABLE `info_list`
ADD PRIMARY KEY (`sort_id`),
ADD UNIQUE KEY `search_name` (`search_name`);
--
-- Indexes for table `seed_list`
--
ALTER TABLE `seed_list`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `title` (`title`),
ADD KEY `download_id` (`download_id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `info_list`
--
ALTER TABLE `info_list`
MODIFY `sort_id` INT(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `seed_list`
--
ALTER TABLE `seed_list`
MODIFY `id` INT(11) NOT NULL AUTO_INCREMENT;
COMMIT;