mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 22:14:19 +01:00
Updated mysql schema for the new non-blocking mysql code
git-svn-id: https://kippo.googlecode.com/svn/trunk@163 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
CREATE TABLE `auth` (
|
CREATE TABLE `auth` (
|
||||||
`id` int(11) NOT NULL auto_increment,
|
`id` int(11) NOT NULL auto_increment,
|
||||||
`session` int(11) NOT NULL,
|
`session` char(32) NOT NULL,
|
||||||
`success` tinyint(1) NOT NULL,
|
`success` tinyint(1) NOT NULL,
|
||||||
`username` varchar(100) NOT NULL,
|
`username` varchar(100) NOT NULL,
|
||||||
`password` varchar(100) NOT NULL,
|
`password` varchar(100) NOT NULL,
|
||||||
@@ -16,7 +16,7 @@ CREATE TABLE `clients` (
|
|||||||
|
|
||||||
CREATE TABLE `input` (
|
CREATE TABLE `input` (
|
||||||
`id` int(11) NOT NULL auto_increment,
|
`id` int(11) NOT NULL auto_increment,
|
||||||
`session` int(11) NOT NULL,
|
`session` char(32) NOT NULL,
|
||||||
`timestamp` datetime NOT NULL,
|
`timestamp` datetime NOT NULL,
|
||||||
`realm` varchar(50) default NULL,
|
`realm` varchar(50) default NULL,
|
||||||
`success` tinyint(1) default NULL,
|
`success` tinyint(1) default NULL,
|
||||||
@@ -32,7 +32,7 @@ CREATE TABLE `sensors` (
|
|||||||
) ;
|
) ;
|
||||||
|
|
||||||
CREATE TABLE `sessions` (
|
CREATE TABLE `sessions` (
|
||||||
`id` int(11) NOT NULL auto_increment,
|
`id` char(32) NOT NULL,
|
||||||
`starttime` datetime NOT NULL,
|
`starttime` datetime NOT NULL,
|
||||||
`endtime` datetime default NULL,
|
`endtime` datetime default NULL,
|
||||||
`sensor` int(4) NOT NULL,
|
`sensor` int(4) NOT NULL,
|
||||||
@@ -46,7 +46,7 @@ CREATE TABLE `sessions` (
|
|||||||
|
|
||||||
CREATE TABLE `ttylog` (
|
CREATE TABLE `ttylog` (
|
||||||
`id` int(11) NOT NULL auto_increment,
|
`id` int(11) NOT NULL auto_increment,
|
||||||
`session` int(11) NOT NULL,
|
`session` char(32) NOT NULL,
|
||||||
`ttylog` mediumblob NOT NULL,
|
`ttylog` mediumblob NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ;
|
) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user