|
|
|
@ -1,8 +1,24 @@
|
|
|
|
|
/*
|
|
|
|
|
SQLyog Community Edition- MySQL GUI v8.2
|
|
|
|
|
MySQL - 5.5.22-0ubuntu1 : Database - remotelab_sm
|
|
|
|
|
*********************************************************************
|
|
|
|
|
*/
|
|
|
|
|
* Remote Laboratory Database Definition
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
*
|
|
|
|
|
* (c) 2014 Timothy Pearson
|
|
|
|
|
* Raptor Engineering
|
|
|
|
|
* http://www.raptorengineeringinc.com
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!40101 SET NAMES utf8 */;
|
|
|
|
|
|
|
|
|
@ -25,7 +41,18 @@ CREATE TABLE `allowed_servers` (
|
|
|
|
|
`groupname` text,
|
|
|
|
|
`server` text,
|
|
|
|
|
PRIMARY KEY (`pk`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
|
|
/*Table structure for table `dbschema` */
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `dbschema`;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `dbschema` (
|
|
|
|
|
`pk` bigint(20) NOT NULL,
|
|
|
|
|
`skey` text NOT NULL,
|
|
|
|
|
`value` text NOT NULL,
|
|
|
|
|
PRIMARY KEY (`pk`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
|
|
/*Table structure for table `groups` */
|
|
|
|
|
|
|
|
|
@ -36,7 +63,7 @@ CREATE TABLE `groups` (
|
|
|
|
|
`groupname` text NOT NULL,
|
|
|
|
|
`sesslimit` int(11) NOT NULL,
|
|
|
|
|
PRIMARY KEY (`pk`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
|
|
/*Table structure for table `servers` */
|
|
|
|
|
|
|
|
|
@ -48,7 +75,7 @@ CREATE TABLE `servers` (
|
|
|
|
|
`maxusers` int(11) NOT NULL,
|
|
|
|
|
`online` tinyint(1) NOT NULL,
|
|
|
|
|
PRIMARY KEY (`pk`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
|
|
/*Table structure for table `sessions` */
|
|
|
|
|
|
|
|
|
@ -57,6 +84,7 @@ DROP TABLE IF EXISTS `sessions`;
|
|
|
|
|
CREATE TABLE `sessions` (
|
|
|
|
|
`pk` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`username` text NOT NULL,
|
|
|
|
|
`arbiter` text NOT NULL,
|
|
|
|
|
`servername` text NOT NULL,
|
|
|
|
|
`server_pid` int(11) DEFAULT NULL,
|
|
|
|
|
`wm_pid` int(11) DEFAULT NULL,
|
|
|
|
@ -66,7 +94,7 @@ CREATE TABLE `sessions` (
|
|
|
|
|
`stamp_statechange` int(11) DEFAULT NULL,
|
|
|
|
|
`fpga_locks` int(11) DEFAULT NULL,
|
|
|
|
|
PRIMARY KEY (`pk`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=latin1;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
|
|
/*Table structure for table `statistics` */
|
|
|
|
|
|
|
|
|
@ -76,12 +104,13 @@ CREATE TABLE `statistics` (
|
|
|
|
|
`pk` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`timestamp` bigint(20) NOT NULL,
|
|
|
|
|
`eventtypeid` bigint(20) NOT NULL,
|
|
|
|
|
`arbiter` text,
|
|
|
|
|
`servername` text,
|
|
|
|
|
`display` bigint(20) DEFAULT NULL,
|
|
|
|
|
`typeid` bigint(20) DEFAULT NULL,
|
|
|
|
|
`username` text,
|
|
|
|
|
PRIMARY KEY (`pk`,`timestamp`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=7619 DEFAULT CHARSET=latin1;
|
|
|
|
|
|
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
|
|
|