MISP/app/MYSQL.txt

121 lines
3.5 KiB
Plaintext
Raw Normal View History

2012-01-18 15:30:36 +01:00
-- phpMyAdmin SQL Dump
-- version 3.3.9.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 25, 2012 at 01:16 PM
2012-01-18 15:30:36 +01:00
-- Server version: 5.5.9
-- PHP Version: 5.3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
2012-04-04 20:25:29 +02:00
-- Database: `cydefsig`
2012-01-18 15:30:36 +01:00
--
-- --------------------------------------------------------
2012-04-04 20:25:29 +02:00
--
-- Table structure for table `attributes`
--
CREATE TABLE `attributes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event_id` int(11) NOT NULL,
`category` varchar(255) COLLATE utf8_bin NOT NULL,
`type` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`value1` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`value2` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
2012-04-04 20:25:29 +02:00
`to_ids` tinyint(1) NOT NULL DEFAULT '1',
`uuid` varchar(40) COLLATE utf8_bin NOT NULL,
`revision` int(10) NOT NULL DEFAULT '0',
`private` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `event_id` (`event_id`),
KEY `uuid` (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
2012-01-18 15:30:36 +01:00
--
-- Table structure for table `events`
--
CREATE TABLE `events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`org` varchar(255) COLLATE utf8_bin NOT NULL,
`date` date NOT NULL,
`risk` enum('Undefined','Low','Medium','High') COLLATE utf8_bin NOT NULL,
`info` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`published` tinyint(1) NOT NULL DEFAULT '0',
2012-03-15 15:10:24 +01:00
`uuid` varchar(40) COLLATE utf8_bin NOT NULL,
2012-03-22 08:57:18 +01:00
`private` tinyint(1) NOT NULL,
2012-01-18 15:30:36 +01:00
PRIMARY KEY (`id`),
2012-03-22 08:57:18 +01:00
KEY `uuid` (`uuid`),
2012-01-18 15:30:36 +01:00
FULLTEXT KEY `info` (`info`)
2012-03-22 08:57:18 +01:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
2012-01-18 15:30:36 +01:00
-- --------------------------------------------------------
--
2012-04-04 20:25:29 +02:00
-- Table structure for table `servers`
2012-01-18 15:30:36 +01:00
--
2012-04-04 20:25:29 +02:00
CREATE TABLE `servers` (
2012-01-18 15:30:36 +01:00
`id` int(11) NOT NULL AUTO_INCREMENT,
2012-04-04 20:25:29 +02:00
`url` varchar(255) COLLATE utf8_bin NOT NULL,
`authkey` varchar(40) COLLATE utf8_bin NOT NULL,
`org` varchar(255) COLLATE utf8_bin NOT NULL,
`push` tinyint(1) NOT NULL,
`pull` tinyint(1) NOT NULL,
2012-05-03 14:32:49 +02:00
`lastpushedif` int(11) NOT NULL,
`lastpulledif` int(11) NOT NULL,
2012-04-04 20:25:29 +02:00
PRIMARY KEY (`id`)
2012-04-04 20:27:02 +02:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
2012-01-18 15:30:36 +01:00
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`password` varchar(40) COLLATE utf8_bin NOT NULL,
`org` varchar(255) COLLATE utf8_bin NOT NULL,
`email` varchar(255) COLLATE utf8_bin NOT NULL,
`autoalert` tinyint(1) NOT NULL,
`authkey` varchar(40) COLLATE utf8_bin NOT NULL,
`invited_by` int(11) NOT NULL,
2012-02-20 13:20:45 +01:00
`gpgkey` longtext COLLATE utf8_bin NOT NULL,
`nids_sid` int(15) NOT NULL,
`termsaccepted` tinyint(1) NOT NULL,
`newsread` date NOT NULL,
2012-01-18 15:30:36 +01:00
PRIMARY KEY (`id`),
2012-04-04 20:25:29 +02:00
KEY `username` (`password`),
KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=2 ;
2012-02-20 13:20:45 +01:00
-- --------------------------------------------------------
--
-- Table structure for table `bruteforces`
--
CREATE TABLE `bruteforces` (
`ip` varchar(255) COLLATE utf8_bin NOT NULL,
`username` varchar(255) COLLATE utf8_bin NOT NULL,
`expire` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
2012-02-20 13:20:45 +01:00
--
2012-03-26 19:56:44 +02:00
-- Dumping data for table `attributes`
2012-02-20 13:20:45 +01:00
--
2012-01-18 15:30:36 +01:00
-- Dumping data for table `users`
--
INSERT INTO `users` VALUES(1, 'babc86e0869015b3f0b4d48ca48700d3a9d1b9d7', 'ADMIN', 'admin@admin.test', 0, 'vlf4o42bYSVVWLm28jLB85my4HBZWXTri8vGdySb', 1, '', 4000000, 0, '2012-03-13');