-
Notifications
You must be signed in to change notification settings - Fork 5
/
database.sql
109 lines (92 loc) · 2.59 KB
/
database.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 22, 2019 at 07:52 AM
-- Server version: 10.3.12-MariaDB
-- PHP Version: 7.2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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 utf8mb4 */;
-- --------------------------------------------------------
--
-- Table structure for table `data`
--
CREATE TABLE `data` (
`id` int(3) NOT NULL,
`user` varchar(100) NOT NULL,
`client` varchar(50) NOT NULL,
`project` varchar(100) NOT NULL,
`rhEmail` varchar(50) NOT NULL,
`country` varchar(100) NOT NULL,
`region` varchar(20) DEFAULT NULL,
`lob` varchar(100) NOT NULL,
`o1` float NOT NULL,
`o2` float NOT NULL,
`o3` float NOT NULL,
`o4` float NOT NULL,
`o5` float NOT NULL,
`d1` float NOT NULL,
`d2` float NOT NULL,
`d3` float NOT NULL,
`d4` float NOT NULL,
`d5` float NOT NULL,
`hash` varchar(50) NOT NULL,
`date` timestamp NOT NULL DEFAULT current_timestamp(),
`share` varchar(3) NOT NULL DEFAULT 'on',
`comments` text DEFAULT NULL,
`comments_automation` text DEFAULT NULL,
`comments_wayOfWorking` text DEFAULT NULL,
`comments_architecture` text DEFAULT NULL,
`comments_environment` text DEFAULT NULL,
`comments_visionLeadership` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(3) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL,
`name` text NOT NULL,
`uuid` varchar(50) NOT NULL,
`lastUpdate` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `data`
--
ALTER TABLE `data`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `hash` (`hash`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `data`
--
ALTER TABLE `data`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!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 */;