-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_uidesummit.sql
190 lines (153 loc) · 6.12 KB
/
db_uidesummit.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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 24, 2022 at 09:29 AM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;
--
-- Database: `db_uidesummit`
--
-- --------------------------------------------------------
--
-- Table structure for table `auth`
--
CREATE TABLE `auth` (
`id` int(11) NOT NULL,
`fullname` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `auth`
--
INSERT INTO `auth` (`id`, `fullname`, `email`, `password`) VALUES
(1, 'Khoeru Roziqin', 'roziqinkhoeru@uidesummit.com', '$2y$10$M0PE6ORP5h6nZgKmka5pquMZ0Yne2rwBE.L4GWsYFcITU.WoP07Ji');
-- --------------------------------------------------------
--
-- Table structure for table `event`
--
CREATE TABLE `event` (
`id_event` int(11) NOT NULL,
`name_event` varchar(255) NOT NULL,
`date_event` date NOT NULL,
`information_event` text NOT NULL,
`image_event` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `event`
--
INSERT INTO `event` (`id_event`, `name_event`, `date_event`, `information_event`, `image_event`) VALUES
(1, 'Figma Championship Underdog 2022', '2022-06-30', 'Eget nunc lobortis mattis aliquam. Eget gravida cum sociis natoque penatibus. Sed adipiscing diam donec adipiscing. Donec ultrices tincidunt arcu non sodales neque sodales.', ''),
(2, 'Adobe Illustrator Summit 2023', '2023-01-01', 'Quis varius quam quisque id. Et odio pellentesque diam volutpat commodo. Nisi quis eleifend quam adipiscing. Est ante in nibh mauris. Nisl purus in mollis nunc sed id. Porttitor massa id neque aliquam vestibulum morbi blandit cursus', ''),
(3, 'UI Design Global Chalenges Winter 2023', '2023-08-17', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sit amet massa vitae tortor condimentum. Imperdiet nulla malesuada pellentesque elit eget gravida cum', ''),
(5, 'Sketch Artic Summit 2022', '2022-10-19', 'Netus et malesuada fames ac turpis. Nam at lectus urna duis convallis convallis. Risus viverra adipiscing at in. Scelerisque eleifend donec pretium vulputate sapien nec sagittis aliquam.', ''),
(8, 'Gimp Design Championship 2022', '2023-02-13', 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '1656052868_ef063201d4e32164623c.png'),
(9, 'Paint Old School Global Chalenge 2023', '2023-07-24', 'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.', '1656055591_cea6a47cdead4964ed8d.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `feedback`
--
CREATE TABLE `feedback` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`phone_number` char(12) NOT NULL,
`message` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `feedback`
--
INSERT INTO `feedback` (`id`, `name`, `email`, `phone_number`, `message`) VALUES
(1, 'Maysng', 'maab@gahdjhadj.com', '082312345678', 'Coba kirim pesan lah ya'),
(2, 'Khoeru Roziqin', 'roiqin@mama.com', '082312121212', 'titipkan pesan ini untuknya ya!'),
(3, 'Mami kos', 'mamikos@gmail.com', '098712345678', 'Mami kos marah nih'),
(8, 'Bayu Septa Aji', 'bayusepta@gmail.com', '082123232487', 'Semoga kedepannya terdapat event untuk aplikasi paint');
-- --------------------------------------------------------
--
-- Table structure for table `registrant`
--
CREATE TABLE `registrant` (
`id` int(11) NOT NULL,
`name_registrant` varchar(100) NOT NULL,
`email_registrant` varchar(100) NOT NULL,
`date_birth_registrant` date NOT NULL,
`address_registrant` text NOT NULL,
`id_event` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `registrant`
--
INSERT INTO `registrant` (`id`, `name_registrant`, `email_registrant`, `date_birth_registrant`, `address_registrant`, `id_event`) VALUES
(1, 'Stephen Dico', 'dicostephen@gmail.com', '2002-06-03', 'Manchaster', 1),
(3, 'qqq', 'aaa@ma.com', '2022-06-07', 'ndkdw', 1),
(9, 'Madun', 'madun@gmail.com', '1974-06-04', 'madunandn', 1),
(10, 'Khoeru ', 'roziqin@udi.com', '2001-03-07', 'banyuputih', 3),
(11, 'Bayu Septa Aji', 'bayusepta@gmail.com', '2000-05-02', 'Barcelona, Spain', 9);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `auth`
--
ALTER TABLE `auth`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `event`
--
ALTER TABLE `event`
ADD PRIMARY KEY (`id_event`);
--
-- Indexes for table `feedback`
--
ALTER TABLE `feedback`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `registrant`
--
ALTER TABLE `registrant`
ADD PRIMARY KEY (`id`),
ADD KEY `id_event` (`id_event`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `auth`
--
ALTER TABLE `auth`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `event`
--
ALTER TABLE `event`
MODIFY `id_event` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `registrant`
--
ALTER TABLE `registrant`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `registrant`
--
ALTER TABLE `registrant`
ADD CONSTRAINT `registrant_ibfk_1` FOREIGN KEY (`id_event`) REFERENCES `event` (`id_event`) ON DELETE CASCADE ON UPDATE CASCADE;
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 */;