install.sql 3.23 KB
Newer Older
1
2
3
4
5
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
Daniele Venzano's avatar
Daniele Venzano committed
6
-- Generation Time: Aug 13, 2015 at 03:56 PM
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- Server version: 5.5.44-MariaDB-1ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.11

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `caaas`
--
CREATE DATABASE IF NOT EXISTS `caaas` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `caaas`;

-- --------------------------------------------------------

Daniele Venzano's avatar
Daniele Venzano committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--
-- Table structure for table `applications`
--

DROP TABLE IF EXISTS `applications`;
CREATE TABLE IF NOT EXISTS `applications` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `execution_name` varchar(512) NOT NULL,
  `cmd` varchar(1024) NOT NULL,
  `spark_options` varchar(1024) NOT NULL,
  `user_id` int(11) NOT NULL,
  `time_started` timestamp NULL DEFAULT NULL,
  `time_finished` timestamp NULL DEFAULT NULL,
  `cluster_id` int(11) DEFAULT NULL,
  `status` varchar(16) CHARACTER SET ascii NOT NULL DEFAULT 'setup',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;

-- --------------------------------------------------------

47
48
49
50
51
52
53
54
--
-- Table structure for table `clusters`
--

DROP TABLE IF EXISTS `clusters`;
CREATE TABLE IF NOT EXISTS `clusters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
55
56
  `master_address` varchar(512) CHARACTER SET ascii NOT NULL,
  `name` varchar(256) NOT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
57
  `time_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
58
  PRIMARY KEY (`id`)
Daniele Venzano's avatar
Daniele Venzano committed
59
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=53 ;
60
61
62
63
64
65
66
67
68
69

-- --------------------------------------------------------

--
-- Table structure for table `containers`
--

DROP TABLE IF EXISTS `containers`;
CREATE TABLE IF NOT EXISTS `containers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
Daniele Venzano's avatar
Daniele Venzano committed
70
  `docker_id` varchar(1024) CHARACTER SET ascii NOT NULL,
71
72
  `cluster_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
73
74
  `ip_address` varchar(16) NOT NULL,
  `contents` varchar(512) NOT NULL,
75
  PRIMARY KEY (`id`)
Daniele Venzano's avatar
Daniele Venzano committed
76
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=250 ;
Daniele Venzano's avatar
Daniele Venzano committed
77
78
79
80
81
82
83
84
85

-- --------------------------------------------------------

--
-- Table structure for table `proxy`
--

DROP TABLE IF EXISTS `proxy`;
CREATE TABLE IF NOT EXISTS `proxy` (
Daniele Venzano's avatar
Daniele Venzano committed
86
87
  `id` varchar(128) CHARACTER SET ascii NOT NULL,
  `internal_url` varchar(512) DEFAULT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
88
  `cluster_id` int(11) NOT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
89
  `service_name` varchar(64) DEFAULT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
90
  `container_id` int(11) NOT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
91
  `last_access` timestamp NULL DEFAULT NULL,
Daniele Venzano's avatar
Daniele Venzano committed
92
  PRIMARY KEY (`id`)
Daniele Venzano's avatar
Daniele Venzano committed
93
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
94
95
96
97
98
99
100
101
102
103

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
Daniele Venzano's avatar
Daniele Venzano committed
104
  `email` varchar(128) NOT NULL,
105
  PRIMARY KEY (`id`)
Daniele Venzano's avatar
Daniele Venzano committed
106
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
107
108
109
110

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;