-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrevista.sql
115 lines (92 loc) · 2.81 KB
/
entrevista.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
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 24, 2021 at 06:48 AM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.1.23
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: `entrevista`
--
-- --------------------------------------------------------
--
-- Table structure for table `tb_status`
--
CREATE TABLE `tb_status` (
`id_status` int(11) NOT NULL,
`nm_status` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_status`
--
INSERT INTO `tb_status` (`id_status`, `nm_status`) VALUES
(1, 'Ativo'),
(2, 'Inativo\r\n');
-- --------------------------------------------------------
--
-- Table structure for table `tb_usuario`
--
CREATE TABLE `tb_usuario` (
`id_pessoa` int(11) NOT NULL,
`nm_pessoa` varchar(200) NOT NULL,
`cd_nis` varchar(11) NOT NULL,
`dt_cadastro` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`id_status` int(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_usuario`
--
INSERT INTO `tb_usuario` (`id_pessoa`, `nm_pessoa`, `cd_nis`, `dt_cadastro`, `id_status`) VALUES
(2, 'Luiz Antonio Jr', '12345678910', '2021-02-24 04:13:36', 1),
(3, 'dasdsssssssssssssssd asd', '88888888888', '2021-02-24 05:20:57', 1),
(4, 'dasdsssssssssssssssd asd', '88888888888', '2021-02-24 05:22:48', 1),
(5, 'dasdsssssssssssssssd asd', '88888888888', '2021-02-24 05:23:08', 1),
(6, '78978946545 465 456 456', '77777777777', '2021-02-24 05:26:35', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tb_status`
--
ALTER TABLE `tb_status`
ADD PRIMARY KEY (`id_status`);
--
-- Indexes for table `tb_usuario`
--
ALTER TABLE `tb_usuario`
ADD PRIMARY KEY (`id_pessoa`),
ADD KEY `fk_id_status` (`id_status`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tb_status`
--
ALTER TABLE `tb_status`
MODIFY `id_status` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_usuario`
--
ALTER TABLE `tb_usuario`
MODIFY `id_pessoa` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `tb_usuario`
--
ALTER TABLE `tb_usuario`
ADD CONSTRAINT `fk_id_status` FOREIGN KEY (`id_status`) REFERENCES `tb_status` (`id_status`);
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 */;