Domain registry project http://reg.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
1018 B

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `hosts` (
`host` varchar(67) NOT NULL,
`base64` varchar(616) NOT NULL,
`base32` varchar(52) NOT NULL,
`description` varchar(128) NOT NULL DEFAULT '',
`add_date` timestamp NOT NULL DEFAULT current_timestamp(),
`last_seen` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`approved` tinyint(1) NOT NULL DEFAULT 0,
`initial` tinyint(1) NOT NULL DEFAULT 0,
`disabled` tinyint(1) NOT NULL DEFAULT 0,
`hidden` tinyint(1) NOT NULL DEFAULT 0,
`blacklisted` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscriptions` (
`name` varchar(67) NOT NULL,
`url` varchar(256) NOT NULL,
`modified` char(30) NOT NULL DEFAULT '',
`etag` varchar(64) NOT NULL DEFAULT '',
`active` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `hosts`
ADD PRIMARY KEY (`host`);
ALTER TABLE `subscriptions`
ADD PRIMARY KEY (`name`);
COMMIT;