Second part of prior commit

ulab-next-nosound
Timothy Pearson 10 years ago committed by Timothy Pearson
parent 643da9e11a
commit 1117f8b31b

@ -1,89 +1,118 @@
/* /*
SQLyog Community Edition- MySQL GUI v8.2 * Remote Laboratory Database Definition
MySQL - 5.5.22-0ubuntu1 : Database - remotelab_sm *
********************************************************************* * 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
/*!40101 SET NAMES utf8 */; * (at your option) any later version.
*
/*!40101 SET SQL_MODE=''*/; * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; * GNU General Public License for more details.
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; *
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; * You should have received a copy of the GNU General Public License along
CREATE DATABASE /*!32312 IF NOT EXISTS*/`remotelab_sm` /*!40100 DEFAULT CHARACTER SET latin1 */; * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
USE `remotelab_sm`; *
* (c) 2014 Timothy Pearson
/*Table structure for table `allowed_servers` */ * Raptor Engineering
* http://www.raptorengineeringinc.com
DROP TABLE IF EXISTS `allowed_servers`; */
CREATE TABLE `allowed_servers` ( /*!40101 SET NAMES utf8 */;
`pk` int(11) NOT NULL AUTO_INCREMENT,
`groupname` text, /*!40101 SET SQL_MODE=''*/;
`server` text,
PRIMARY KEY (`pk`) /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*Table structure for table `groups` */ /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`remotelab_sm` /*!40100 DEFAULT CHARACTER SET latin1 */;
DROP TABLE IF EXISTS `groups`;
USE `remotelab_sm`;
CREATE TABLE `groups` (
`pk` int(11) NOT NULL AUTO_INCREMENT, /*Table structure for table `allowed_servers` */
`groupname` text NOT NULL,
`sesslimit` int(11) NOT NULL, DROP TABLE IF EXISTS `allowed_servers`;
PRIMARY KEY (`pk`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; CREATE TABLE `allowed_servers` (
`pk` int(11) NOT NULL AUTO_INCREMENT,
/*Table structure for table `servers` */ `groupname` text,
`server` text,
DROP TABLE IF EXISTS `servers`; PRIMARY KEY (`pk`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
CREATE TABLE `servers` (
`pk` int(11) NOT NULL AUTO_INCREMENT, /*Table structure for table `dbschema` */
`name` text NOT NULL,
`maxusers` int(11) NOT NULL, DROP TABLE IF EXISTS `dbschema`;
`online` tinyint(1) NOT NULL,
PRIMARY KEY (`pk`) CREATE TABLE `dbschema` (
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; `pk` bigint(20) NOT NULL,
`skey` text NOT NULL,
/*Table structure for table `sessions` */ `value` text NOT NULL,
PRIMARY KEY (`pk`)
DROP TABLE IF EXISTS `sessions`; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `sessions` ( /*Table structure for table `groups` */
`pk` int(11) NOT NULL AUTO_INCREMENT,
`username` text NOT NULL, DROP TABLE IF EXISTS `groups`;
`servername` text NOT NULL,
`server_pid` int(11) DEFAULT NULL, CREATE TABLE `groups` (
`wm_pid` int(11) DEFAULT NULL, `pk` int(11) NOT NULL AUTO_INCREMENT,
`stamp_start` int(11) DEFAULT NULL, `groupname` text NOT NULL,
`state` int(11) NOT NULL, `sesslimit` int(11) NOT NULL,
`display` int(11) DEFAULT NULL, PRIMARY KEY (`pk`)
`stamp_statechange` int(11) DEFAULT NULL, ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
`fpga_locks` int(11) DEFAULT NULL,
PRIMARY KEY (`pk`) /*Table structure for table `servers` */
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `servers`;
/*Table structure for table `statistics` */
CREATE TABLE `servers` (
DROP TABLE IF EXISTS `statistics`; `pk` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
CREATE TABLE `statistics` ( `maxusers` int(11) NOT NULL,
`pk` bigint(20) NOT NULL AUTO_INCREMENT, `online` tinyint(1) NOT NULL,
`timestamp` bigint(20) NOT NULL, PRIMARY KEY (`pk`)
`eventtypeid` bigint(20) NOT NULL, ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
`servername` text,
`display` bigint(20) DEFAULT NULL, /*Table structure for table `sessions` */
`typeid` bigint(20) DEFAULT NULL,
`username` text, DROP TABLE IF EXISTS `sessions`;
PRIMARY KEY (`pk`,`timestamp`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1; CREATE TABLE `sessions` (
`pk` int(11) NOT NULL AUTO_INCREMENT,
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; `username` text NOT NULL,
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; `arbiter` text NOT NULL,
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; `servername` text NOT NULL,
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; `server_pid` int(11) DEFAULT NULL,
`wm_pid` int(11) DEFAULT NULL,
`stamp_start` int(11) DEFAULT NULL,
`state` int(11) NOT NULL,
`display` int(11) DEFAULT NULL,
`stamp_statechange` int(11) DEFAULT NULL,
`fpga_locks` int(11) DEFAULT NULL,
PRIMARY KEY (`pk`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*Table structure for table `statistics` */
DROP TABLE IF EXISTS `statistics`;
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=7619 DEFAULT CHARSET=latin1;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

Loading…
Cancel
Save