diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-05 19:47:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-05 19:49:29 -0600 |
commit | a29f4989c3aa63fffe42b9cd7e42ff11b1c89b26 (patch) | |
tree | b0c8a06b425d41666744a96e63b90f9c48fa5814 /database | |
parent | 1e0e20535638122a86f0e44f0505c0eccc4a9fee (diff) | |
download | ulab-a29f4989c3aa63fffe42b9cd7e42ff11b1c89b26.tar.gz ulab-a29f4989c3aa63fffe42b9cd7e42ff11b1c89b26.zip |
Add remotelab database MySQL structure file
Diffstat (limited to 'database')
-rw-r--r-- | database/mysql/remotelab.sql | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/database/mysql/remotelab.sql b/database/mysql/remotelab.sql new file mode 100644 index 0000000..ce3e8fe --- /dev/null +++ b/database/mysql/remotelab.sql @@ -0,0 +1,104 @@ +/*
+SQLyog Community Edition- MySQL GUI v8.2
+MySQL - 5.5.22-0ubuntu1 : Database - remotelab
+*********************************************************************
+*/
+
+/*!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` /*!40100 DEFAULT CHARACTER SET latin1 */;
+
+USE `remotelab`;
+
+/*Table structure for table `activity` */
+
+DROP TABLE IF EXISTS `activity`;
+
+CREATE TABLE `activity` (
+ `pk` int(20) NOT NULL AUTO_INCREMENT,
+ `station` bigint(20) NOT NULL,
+ `username` text,
+ `realmname` text,
+ `logontime` bigint(20) DEFAULT NULL,
+ `serverid` bigint(20) DEFAULT NULL,
+ `serviceid` bigint(20) DEFAULT NULL,
+ `terminate` bigint(20) NOT NULL,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+/*Table structure for table `permissions` */
+
+DROP TABLE IF EXISTS `permissions`;
+
+CREATE TABLE `permissions` (
+ `pk` bigint(20) NOT NULL AUTO_INCREMENT,
+ `station` bigint(20) NOT NULL,
+ `username` text NOT NULL,
+ `userrealm` text,
+ `restrictions` text,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
+
+/*Table structure for table `services` */
+
+DROP TABLE IF EXISTS `services`;
+
+CREATE TABLE `services` (
+ `pk` bigint(20) NOT NULL AUTO_INCREMENT,
+ `station` bigint(20) NOT NULL,
+ `servicetype` bigint(20) NOT NULL,
+ `hostname` text,
+ `port` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
+
+/*Table structure for table `servicetypes` */
+
+DROP TABLE IF EXISTS `servicetypes`;
+
+CREATE TABLE `servicetypes` (
+ `serviceid` bigint(20) NOT NULL AUTO_INCREMENT,
+ `name` text,
+ `description` text,
+ `client_library` text NOT NULL,
+ `version` bigint(20) DEFAULT NULL,
+ `single_instance` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`serviceid`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
+
+/*Table structure for table `stations` */
+
+DROP TABLE IF EXISTS `stations`;
+
+CREATE TABLE `stations` (
+ `pk` bigint(20) NOT NULL AUTO_INCREMENT,
+ `name` text,
+ `description` text,
+ 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,
+ `serverid` bigint(20) DEFAULT NULL,
+ `sessionid` bigint(20) DEFAULT NULL,
+ `typeid` bigint(20) DEFAULT NULL,
+ `userid` text,
+ PRIMARY KEY (`pk`)
+) ENGINE=InnoDB AUTO_INCREMENT=10 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 */;
|