mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2025-08-14 15:58:10 +00:00
Pushing nodes to a database and generating graph from it
This commit is contained in:
31
web/database.sql
Normal file
31
web/database.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
CREATE DATABASE IF NOT EXISTS `fc00`;
|
||||
USE `fc00`;
|
||||
|
||||
|
||||
--
|
||||
-- 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,
|
||||
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;
|
Reference in New Issue
Block a user