-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 26-Jul-2021 às 08:07
-- Versão do servidor: 10.1.29-MariaDB
-- PHP Version: 7.2.0

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 */;

--
-- Database: `login`
--

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

--
-- Estrutura da tabela `admin`
--

CREATE TABLE `admin` (
  `id_admin` int(11) NOT NULL,
  `nome` text NOT NULL,
  `email` varchar(200) NOT NULL,
  `senha` text NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estrutura da tabela `aluno`
--

CREATE TABLE `aluno` (
  `id_aluno` int(11) NOT NULL,
  `nome` text NOT NULL,
  `num_inscricao` int(11) NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estrutura da tabela `cursos`
--

CREATE TABLE `cursos` (
  `id_curso` int(11) NOT NULL,
  `nome` text NOT NULL,
  `id_dpt` int(11) NOT NULL,
  `id_admin` int(11) NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Extraindo dados da tabela `cursos`
--

INSERT INTO `cursos` (`id_curso`, `nome`, `id_dpt`, `id_admin`, `data`) VALUES
(6, 'EngenhÃ¡ria InformÃ¡tica', 1, 1, '2021-07-24'),
(7, 'Arquitetura e Urbanismo', 1, 1, '2021-07-24'),
(8, 'Engenharia de TelecomunicaÃ§Ãµes', 1, 1, '2021-07-24'),
(9, 'Engeharia MecÃ¢nica', 1, 1, '2021-07-24'),
(10, 'Engenharia CÃ­vil', 1, 1, '2021-07-24'),
(11, 'Engenharia de PetrÃ³leo(RefinÃ§Ã£o, Pesquisa e ProduÃ§Ã£o', 1, 1, '2021-07-24'),
(12, 'Enfermagem', 3, 1, '2021-07-24'),
(13, 'Ãnalises ClÃ­nicas', 3, 1, '2021-07-24'),
(14, 'Fisoterapia', 3, 1, '2021-07-24'),
(15, 'CiÃªncias FarmacÃªuticas', 3, 1, '2021-07-24'),
(16, 'Medicina DentÃ¡ria', 3, 1, '2021-07-24'),
(17, 'Direito', 2, 1, '2021-07-24'),
(18, 'RelaÃ§Ãµes Internacionais', 2, 1, '2021-07-24'),
(19, 'Contabilidade', 2, 1, '2021-07-24'),
(20, 'GestÃ£o de Recursos Humanos', 2, 1, '2021-07-24'),
(21, 'GestÃ£o e AdministraÃ§Ã£o de Empresas', 2, 1, '2021-07-24'),
(22, 'Economia', 2, 1, '2021-07-24'),
(23, 'Psicologia (Escolar, Trabalho, ClÃ­nica, Criminal)', 2, 1, '2021-07-24');

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

--
-- Estrutura da tabela `departamento`
--

CREATE TABLE `departamento` (
  `id_dpt` int(11) NOT NULL,
  `nome` text NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Extraindo dados da tabela `departamento`
--

INSERT INTO `departamento` (`id_dpt`, `nome`, `data`) VALUES
(1, 'DEPARTAMENTO DE ENGENHARIA E TECNOLOGIAS', '2021-07-24'),
(2, 'DEPARTAMENTO DE CIÊNCIAS SOCIAS E HUMANAS', '2021-07-24'),
(3, 'DEPARTAMENTO DE CIÊNCIAS DA SAÚDE', '2021-07-24');

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

--
-- Estrutura da tabela `disciplina`
--

CREATE TABLE `disciplina` (
  `id_disciplina` int(11) NOT NULL,
  `nome` text NOT NULL,
  `id_curso` int(11) NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estrutura da tabela `eventos`
--

CREATE TABLE `eventos` (
  `id_evento` int(11) NOT NULL,
  `Assunto` text NOT NULL,
  `imagem` text NOT NULL,
  `id_admin` int(11) NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estrutura da tabela `noticias`
--

CREATE TABLE `noticias` (
  `id_noticias` int(11) NOT NULL,
  `Assunto` text NOT NULL,
  `titulo` text NOT NULL,
  `imagem` text NOT NULL,
  `id_admin` int(11) NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Extraindo dados da tabela `noticias`
--

INSERT INTO `noticias` (`id_noticias`, `Assunto`, `titulo`, `imagem`, `id_admin`, `data`) VALUES
(5, 'ISPEKA 2021/2022', 'INSCRIÃ‡Ã•ES ABERTAS 2021/2022', 'ju.jpg', 1, '2021-07-24'),
(9, 'SaudaÃ§Ãµes!\r\nOs exames especiais serÃ£o realizados entre 23 e 27 de Agosto.b', 'EXAMES ESPECIAS 2020/2021', 'ispeka.jpg', 1, '2021-07-25');

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

--
-- Estrutura da tabela `professores`
--

CREATE TABLE `professores` (
  `id_prof` int(11) NOT NULL,
  `nome` text NOT NULL,
  `email` varchar(200) NOT NULL,
  `data` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estrutura da tabela `usertable`
--

CREATE TABLE `usertable` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `imagem` text NOT NULL,
  `code` mediumint(50) NOT NULL,
  `status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Extraindo dados da tabela `usertable`
--

INSERT INTO `usertable` (`id`, `name`, `email`, `password`, `imagem`, `code`, `status`) VALUES
(1, 'Ruben Calandula', 'rubencalandula2014@gmail.com', '$2y$10$/Hl3JBdiMjQn6Tn.Fm6Hre4a1luYmaILyiI0QuFsCtDOtJc715d2O', 'ju.jpg', 0, 'verified');

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

--
-- Estrutura da tabela `views`
--

CREATE TABLE `views` (
  `view_id` int(11) NOT NULL,
  `page` int(11) NOT NULL,
  `post` int(11) NOT NULL,
  `view_time` varchar(45) CHARACTER SET utf8mb4 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`id_admin`);

--
-- Indexes for table `aluno`
--
ALTER TABLE `aluno`
  ADD PRIMARY KEY (`id_aluno`);

--
-- Indexes for table `cursos`
--
ALTER TABLE `cursos`
  ADD PRIMARY KEY (`id_curso`);

--
-- Indexes for table `departamento`
--
ALTER TABLE `departamento`
  ADD PRIMARY KEY (`id_dpt`);

--
-- Indexes for table `disciplina`
--
ALTER TABLE `disciplina`
  ADD PRIMARY KEY (`id_disciplina`);

--
-- Indexes for table `eventos`
--
ALTER TABLE `eventos`
  ADD PRIMARY KEY (`id_evento`);

--
-- Indexes for table `noticias`
--
ALTER TABLE `noticias`
  ADD PRIMARY KEY (`id_noticias`);

--
-- Indexes for table `professores`
--
ALTER TABLE `professores`
  ADD PRIMARY KEY (`id_prof`);

--
-- Indexes for table `usertable`
--
ALTER TABLE `usertable`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `views`
--
ALTER TABLE `views`
  ADD PRIMARY KEY (`view_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
  MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `aluno`
--
ALTER TABLE `aluno`
  MODIFY `id_aluno` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cursos`
--
ALTER TABLE `cursos`
  MODIFY `id_curso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `departamento`
--
ALTER TABLE `departamento`
  MODIFY `id_dpt` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `disciplina`
--
ALTER TABLE `disciplina`
  MODIFY `id_disciplina` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `eventos`
--
ALTER TABLE `eventos`
  MODIFY `id_evento` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `noticias`
--
ALTER TABLE `noticias`
  MODIFY `id_noticias` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `professores`
--
ALTER TABLE `professores`
  MODIFY `id_prof` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `usertable`
--
ALTER TABLE `usertable`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `views`
--
ALTER TABLE `views`
  MODIFY `view_id` int(11) 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 */;
