-
Notifications
You must be signed in to change notification settings - Fork 0
/
escolacuritibana.sql
181 lines (150 loc) · 9.49 KB
/
escolacuritibana.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
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 28-Nov-2016 às 11:48
-- Versão do servidor: 5.7.11-log
-- PHP Version: 5.5.30
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: `escolacuritibana`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `categorias`
--
CREATE TABLE `categorias` (
`Id` int(11) NOT NULL,
`Categoria` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Extraindo dados da tabela `categorias`
--
INSERT INTO `categorias` (`Id`, `Categoria`) VALUES
(4, 'Gastronomia'),
(5, 'Computacao'),
(6, 'Fitness'),
(7, 'Fotografia'),
(8, 'Direito'),
(9, 'Arquitetura');
-- --------------------------------------------------------
--
-- Estrutura da tabela `contato`
--
CREATE TABLE `contato` (
`Id` int(11) NOT NULL,
`Texto` text NOT NULL,
`Endereço` varchar(500) NOT NULL,
`Telefone` varchar(20) NOT NULL,
`Website` varchar(30) NOT NULL,
`Email` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Extraindo dados da tabela `contato`
--
INSERT INTO `contato` (`Id`, `Texto`, `Endereço`, `Telefone`, `Website`, `Email`) VALUES
(1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ', 'Rua do aprendizado, 1128', '(41) 3232-5856', 'www.escolacuritibana.com.br', 'escolacuritibana@gmail.com');
-- --------------------------------------------------------
--
-- Estrutura da tabela `cursos`
--
CREATE TABLE `cursos` (
`Id` int(11) NOT NULL,
`Curso` varchar(30) NOT NULL,
`Duracao` int(11) NOT NULL,
`Preco` float NOT NULL,
`Local` varchar(30) NOT NULL,
`CategoriaId` int(11) NOT NULL,
`Inicio` date NOT NULL,
`Texto` varchar(400) NOT NULL,
`Foto` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Extraindo dados da tabela `cursos`
--
INSERT INTO `cursos` (`Id`, `Curso`, `Duracao`, `Preco`, `Local`, `CategoriaId`, `Inicio`, `Texto`, `Foto`) VALUES
(19, 'Direito Básico', 12, 1500, 'Curitiba, PR', 8, '2016-11-27', ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet quod nisi quisquam modi dolore, dicta obcaecati architecto quidem ullam quia.\r\n\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam p', '8e2e33bc8a07fd75da3b1356bc1f3ba0.jpeg'),
(20, 'Culinaria', 16, 1000, 'Curitiba, PR', 4, '2017-12-30', ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet quod nisi quisquam modi dolore, dicta obcaecati architecto quidem ullam quia.\r\n\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officii', 'dc64e6212ca3b95a93a7cc7ce9824949.gif'),
(21, 'Instrutor de Academia', 8, 500, 'Curitiba, PR', 6, '2017-11-27', ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet quod nisi quisquam modi dolore, dicta obcaecati architecto quidem ullam quia.\r\n\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officii', '64f7b2280188b61ccc19cf75ec9a0de8.jpg'),
(22, 'Fotagrafia Básico', 4, 800, 'Curitiba, PR', 7, '2017-01-05', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet quod nisi quisquam modi dolore, dicta obcaecati architecto quidem ullam quia.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas. E', '6cf1ea10e0067fbe294f3d73cfca55a7.jpg'),
(23, 'Arquiteto I', 24, 3500, 'Curitiba, PR', 9, '2017-01-05', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet quod nisi quisquam modi dolore, dicta obcaecati architecto quidem ullam quia.\r\n\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas.', 'c2a43b07979e3386db637c8df6ef0cf0.jpg'),
(24, 'Programação I', 8, 1000, 'Curitiba, PR', 5, '2017-01-05', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas. Eligendi inventore ducimus omnis, maxime, alias accusantium similique minus! Labore facilis qui, sunt, ipsam consectetur minus sapiente saepe n', '8cc0dd959860cf05f0b8cc78d0f3d30b.jpg'),
(25, 'Programação II', 10, 1200, 'Curitiba, PR', 5, '2017-12-25', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas. Eligendi inventore ducimus omnis, maxime, alias accusantium similique minus! Labore facilis qui, sunt, ipsam consectetur minus sapiente saepe n', 'c3ec2cce6eced273fa6b6e84ab4f6eb1.jpg'),
(26, 'Programação III', 16, 2000, 'Curitiba, PR', 5, '2017-01-05', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas. Eligendi inventore ducimus omnis, maxime, alias accusantium similique minus! Labore facilis qui, sunt, ipsam consectetur minus sapiente saepe n', 'fc09e7ecba42a3593ef56e4a0792893f.jpg'),
(27, 'Chefe de Cozinha', 20, 4000, 'Curitiba, PR', 4, '2017-11-27', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas. Eligendi inventore ducimus omnis, maxime, alias accusantium similique minus! Labore facilis qui, sunt, ipsam consectetur minus sapiente saepe n', 'b626efe68ec20475b0fe3d4723fd2572.gif'),
(28, 'Arquiteto II', 24, 2000, 'Curitiba, PR', 9, '2017-11-27', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo est itaque vero porro quasi illo ex consequuntur ad animi commodi, ipsam provident voluptas vel adipisci. Minima repellendus vel est, sequi labore quo ipsa voluptatem officiis ex fuga nemo quas. Eligendi inventore ducimus omnis, maxime, alias accusantium similique minus! Labore facilis qui, sunt, ipsam consectetur minus sapiente saepe n', 'ef28f5b2766cbdff415ad273b5193e08.jpg'),
(29, 'Fotografia Avançado', 12, 2000, 'Curitiba, PR', 7, '2017-11-27', ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus non dolorem excepturi libero itaque sint labore similique maxime natus eum ', '02e2d9fe7ecdaa800ecf934cad99bc93.jpg');
-- --------------------------------------------------------
--
-- Estrutura da tabela `usuarios`
--
CREATE TABLE `usuarios` (
`Id` int(11) NOT NULL,
`Email` varchar(150) NOT NULL,
`Senha` varchar(32) NOT NULL,
`Nivel` int(1) NOT NULL,
`Nome` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Extraindo dados da tabela `usuarios`
--
INSERT INTO `usuarios` (`Id`, `Email`, `Senha`, `Nivel`, `Nome`) VALUES
(3, 'ViniciusCruz', '827ccb0eea8a706c4c34a16891f84e7b', 1, 'Vinicius'),
(5, 'vini4842', '827ccb0eea8a706c4c34a16891f84e7b', 0, 'Vinicius Cruz'),
(6, 'admin', '827ccb0eea8a706c4c34a16891f84e7b', 0, 'Admin'),
(7, 'vinicius@gmail.com', '827ccb0eea8a706c4c34a16891f84e7b', 0, 'Vinicius Cruz');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categorias`
--
ALTER TABLE `categorias`
ADD PRIMARY KEY (`Id`);
--
-- Indexes for table `contato`
--
ALTER TABLE `contato`
ADD PRIMARY KEY (`Id`);
--
-- Indexes for table `cursos`
--
ALTER TABLE `cursos`
ADD PRIMARY KEY (`Id`);
--
-- Indexes for table `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`Id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categorias`
--
ALTER TABLE `categorias`
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `contato`
--
ALTER TABLE `contato`
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `cursos`
--
ALTER TABLE `cursos`
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT for table `usuarios`
--
ALTER TABLE `usuarios`
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
/*!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 */;