-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebec.sql
More file actions
159 lines (130 loc) · 3.79 KB
/
webec.sql
File metadata and controls
159 lines (130 loc) · 3.79 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 13, 2016 at 10:43 AM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 5.6.24
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 utf8mb4 */;
--
-- Database: `webec`
--
-- --------------------------------------------------------
--
-- Table structure for table `drinkcategories`
--
CREATE TABLE `drinkcategories` (
`id` int(11) NOT NULL,
`name` varchar(255) COLLATE latin1_german1_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;
-- --------------------------------------------------------
--
-- Table structure for table `drinks`
--
CREATE TABLE `drinks` (
`id` int(11) NOT NULL,
`name` varchar(255) COLLATE latin1_german1_ci NOT NULL,
`size` int(11) NOT NULL,
`price` float NOT NULL,
`categoryid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;
-- --------------------------------------------------------
--
-- Table structure for table `events`
--
CREATE TABLE `events` (
`id` int(11) NOT NULL,
`name` varchar(255) COLLATE latin1_german1_ci NOT NULL,
`start` datetime NOT NULL,
`end` datetime NOT NULL,
`description` varchar(5000) COLLATE latin1_german1_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;
--
-- Dumping data for table `events`
--
INSERT INTO `events` (`id`, `name`, `start`, `end`, `description`) VALUES
(66, 'Putzparty', '2016-12-11 00:00:00', '2016-12-12 00:00:00', 'Clean shit!'),
(666, 'Putzparty v2!', '2016-12-18 00:00:00', '2016-12-19 00:00:00', 'Clean again.');
-- --------------------------------------------------------
--
-- Table structure for table `teams`
--
CREATE TABLE `teams` (
`id` int(11) NOT NULL,
`name` varchar(255) COLLATE latin1_german1_ci NOT NULL,
`code` varchar(255) COLLATE latin1_german1_ci NOT NULL,
`entrytime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;
--
-- Dumping data for table `teams`
--
INSERT INTO `teams` (`id`, `name`, `code`, `entrytime`) VALUES
(42, 'Hansgaggel Crew', 'BBB4life', '2016-12-05 07:39:50');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `drinkcategories`
--
ALTER TABLE `drinkcategories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `drinks`
--
ALTER TABLE `drinks`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD KEY `categoryid` (`categoryid`);
--
-- Indexes for table `events`
--
ALTER TABLE `events`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `teams`
--
ALTER TABLE `teams`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `drinkcategories`
--
ALTER TABLE `drinkcategories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `drinks`
--
ALTER TABLE `drinks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=667;
--
-- AUTO_INCREMENT for table `teams`
--
ALTER TABLE `teams`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `drinks`
--
ALTER TABLE `drinks`
ADD CONSTRAINT `drinkcategories` FOREIGN KEY (`categoryid`) REFERENCES `drinkcategories` (`id`);
/*!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 */;