summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-14 08:32:58 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-03-17 00:34:03 -0500
commit18efbc17c299d69dac242d66539d83cdb700d91c (patch)
tree519847c572c193c0850c0e681452a1b40b93fced
parentd9d774c216167e4ce31e1ab02f45005f07a7033d (diff)
downloadxrdp-proprietary-18efbc17c299d69dac242d66539d83cdb700d91c.tar.gz
xrdp-proprietary-18efbc17c299d69dac242d66539d83cdb700d91c.zip
Add MySQL database skeleton file
-rw-r--r--database/mysql/remotelab_sm_database.sql89
1 files changed, 89 insertions, 0 deletions
diff --git a/database/mysql/remotelab_sm_database.sql b/database/mysql/remotelab_sm_database.sql
new file mode 100644
index 00000000..3ac74872
--- /dev/null
+++ b/database/mysql/remotelab_sm_database.sql
@@ -0,0 +1,89 @@
+/*
+SQLyog Community Edition- MySQL GUI v8.2
+MySQL - 5.5.22-0ubuntu1 : Database - remotelab_sm
+*********************************************************************
+*/
+
+/*!40101 SET NAMES utf8 */;
+
+/*!40101 SET SQL_MODE=''*/;
+
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!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' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+CREATE DATABASE /*!32312 IF NOT EXISTS*/`remotelab_sm` /*!40100 DEFAULT CHARACTER SET latin1 */;
+
+USE `remotelab_sm`;
+
+/*Table structure for table `allowed_servers` */
+
+DROP TABLE IF EXISTS `allowed_servers`;
+
+CREATE TABLE `allowed_servers` (
+ `pk` int(11) NOT NULL AUTO_INCREMENT,
+ `groupname` text,
+ `server` text,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+/*Table structure for table `groups` */
+
+DROP TABLE IF EXISTS `groups`;
+
+CREATE TABLE `groups` (
+ `pk` int(11) NOT NULL AUTO_INCREMENT,
+ `groupname` text NOT NULL,
+ `sesslimit` int(11) NOT NULL,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+/*Table structure for table `servers` */
+
+DROP TABLE IF EXISTS `servers`;
+
+CREATE TABLE `servers` (
+ `pk` int(11) NOT NULL AUTO_INCREMENT,
+ `name` text NOT NULL,
+ `maxusers` int(11) NOT NULL,
+ `online` tinyint(1) NOT NULL,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+/*Table structure for table `sessions` */
+
+DROP TABLE IF EXISTS `sessions`;
+
+CREATE TABLE `sessions` (
+ `pk` int(11) NOT NULL AUTO_INCREMENT,
+ `username` text NOT NULL,
+ `servername` text NOT NULL,
+ `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=111 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,
+ `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;
+
+/*!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 */;