-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdbc.sql
78 lines (63 loc) · 2.28 KB
/
dbc.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
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: 16-Nov-2018 às 01:50
-- Versão do servidor: 5.7.21
-- PHP Version: 7.2.4
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: `dbc`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `cliente`
--
DROP TABLE IF EXISTS `cliente`;
CREATE TABLE IF NOT EXISTS `cliente` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(80) COLLATE utf8_bin NOT NULL,
`rend_mensal` decimal(10,2) NOT NULL,
`risco` enum('A','B','C') COLLATE utf8_bin NOT NULL,
`endereco` varchar(200) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Extraindo dados da tabela `cliente`
--
INSERT INTO `cliente` (`id`, `nome`, `rend_mensal`, `risco`, `endereco`) VALUES
(1, 'Joao Silva', '2000.00', 'B', 'zzzzzzz'),
(2, 'Ana Maria', '8300.86', 'A', 'ccccccc'),
(3, 'Fernando Souza', '1600.00', 'C', 'qweqewe');
-- --------------------------------------------------------
--
-- Estrutura da tabela `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`password` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_sb8bbouer5wak8vyiiy4pf2bx` (`username`)
) ENGINE=MyISAM AUTO_INCREMENT=52 DEFAULT CHARSET=latin1;
--
-- Extraindo dados da tabela `user`
--
INSERT INTO `user` (`id`, `name`, `password`, `role`, `username`) VALUES
(1, 'User', '$2a$10$ghvEZVe5ZzawvDJU/HlGPubVGXsYEn.Rgl1ytc6JZy3TpvWgOlECO', 'USER', 'user'),
(2, 'Administrator', '$2a$08$bCCcGjB03eulCWt3CY0AZew2rVzXFyouUolL5dkL/pBgFkUH9O4J2', 'ADMIN', 'admin');
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 */;