2015-07-26 17:08:51 +00:00
|
|
|
CREATE DATABASE IF NOT EXISTS `cjdns`;
|
|
|
|
USE `cjdns`;
|
2014-05-30 14:34:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Table structure for table `edges`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `edges`;
|
|
|
|
CREATE TABLE `edges` (
|
|
|
|
`a` varchar(39) NOT NULL,
|
|
|
|
`b` varchar(39) NOT NULL,
|
|
|
|
`first_seen` int(11) NOT NULL,
|
|
|
|
`last_seen` int(11) NOT NULL,
|
2015-11-21 11:44:45 +00:00
|
|
|
`uploaded_by` varchar(200) NOT NULL,
|
2014-05-30 14:34:00 +00:00
|
|
|
PRIMARY KEY (`a`,`b`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Table structure for table `nodes`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `nodes`;
|
|
|
|
CREATE TABLE `nodes` (
|
|
|
|
`ip` varchar(39) NOT NULL,
|
|
|
|
`name` varchar(64) DEFAULT NULL,
|
|
|
|
`version` int(11) DEFAULT NULL,
|
|
|
|
`first_seen` int(11) NOT NULL,
|
|
|
|
`last_seen` int(11) NOT NULL,
|
|
|
|
PRIMARY KEY (`ip`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|