1
0
mirror of https://github.com/PurpleI2P/regi2p.git synced 2025-01-15 09:49:56 +00:00
regi2p/sql/database.sql

33 lines
1.3 KiB
SQL

CREATE TABLE `hosts` (
`host` varchar(67) NOT NULL PRIMARY KEY,
`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 `outdated` (
`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`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',
`updated` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscriptions` (
`name` varchar(67) NOT NULL PRIMARY KEY,
`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;