-
Notifications
You must be signed in to change notification settings - Fork 0
/
ip-blacklist.sql
55 lines (45 loc) · 1.04 KB
/
ip-blacklist.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
--
-- Table structure for table `blacklist`
--
CREATE TABLE `blacklist` (
`blacklist_id` int(11) NOT NULL,
`ip_address` varchar(50) NOT NULL,
`created` datetime NOT NULL,
`ttl` int(11) NOT NULL,
`reason` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `whitelist`
--
CREATE TABLE `whitelist` (
`whitelist_id` int(11) NOT NULL,
`ip_address` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `blacklist`
--
ALTER TABLE `blacklist`
ADD PRIMARY KEY (`blacklist_id`);
--
-- Indexes for table `whitelist`
--
ALTER TABLE `whitelist`
ADD PRIMARY KEY (`whitelist_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `blacklist`
--
ALTER TABLE `blacklist`
MODIFY `blacklist_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `whitelist`
--
ALTER TABLE `whitelist`
MODIFY `whitelist_id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;