-- https://www.phpmyadmin.net
--
-- Versão do servidor: 5.6.35




--
-- Database: `carros`
--

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

--
-- Estrutura da tabela `UTILIZADORES`
--

CREATE TABLE IF NOT EXISTS `USUARIOS` (
  `id_user` int(11) NOT NULL,
  `tipo` varchar(30) NOT NULL,
  `user` varchar(32) NOT NULL,
  `passe` varchar(100) NOT NULL,
  `nome` varchar(40) NOT NULL,
  `email` varchar(120) NOT NULL,
  `activo` tinyint(1) NOT NULL DEFAULT '1',
  `datainsc` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `image` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Extraindo dados da tabela `UTILIZADORES`
--

INSERT INTO `USUARIOS` (`id_user`, `tipo`, `user`, `passe`, `nome`, `email`, `activo`, `datainsc`, `image`) VALUES
(1, 'admin', 'admin', '90cdebe6e9d0f9920af7a2e898551d17', 'admin', 'admin@hotmail.com', 1, '2017-08-07 20:38:05', 'uploads/admin/usuario.jpg'),
(2, 'admin', 'carlos', '90cdebe6e9d0f9920af7a2e898551d17', 'carlos', 'achemaceio@gmail.com', 1, '2017-08-07 20:35:48', 'uploads/carlos/5988f9547e1f6.jpg'),
(3, 'user', 'carlos', 'c0312f09c371f1da107bf503282bcf7f', 'Carlos', 'carloseduardopantaleao@gmail.com', 1, '2017-10-05 13:13:21', 'uploads/Carlos/59d65a21c9b25.jpg');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `UTILIZADORES`
--
ALTER TABLE `USUARIOS`
  ADD PRIMARY KEY (`id_user`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `UTILIZADORES`
--
ALTER TABLE `USUARIOS`
  MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
