-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrubraz.sql
112 lines (91 loc) · 3.67 KB
/
rubraz.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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 25/07/2024 às 23:34
-- Versão do servidor: 10.4.32-MariaDB
-- Versão do PHP: 8.2.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;
--
-- Banco de dados: `rubraz`
--
-- --------------------------------------------------------
--
-- Estrutura para tabela `rubraz_password_resets`
--
CREATE TABLE `rubraz_password_resets` (
`passwordResetId` int(11) NOT NULL,
`passwordResetUserId` int(11) NOT NULL,
`passwordResetToken` varchar(32) NOT NULL,
`passwordResetExpiresAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Estrutura para tabela `rubraz_users`
--
CREATE TABLE `rubraz_users` (
`userId` int(11) NOT NULL,
`userName` varchar(255) NOT NULL,
`userEmail` varchar(255) NOT NULL,
`userCpfOrCnpj` varchar(255) NOT NULL,
`userPhone` varchar(255) NOT NULL,
`userPassword` varchar(255) NOT NULL,
`userHasImage` tinyint(1) NOT NULL DEFAULT 0,
`userDateOfCreation` datetime NOT NULL DEFAULT current_timestamp(),
`userResetToken` varchar(255) DEFAULT NULL,
`userResetTokenExpires` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Despejando dados para a tabela `rubraz_users`
--
INSERT INTO `rubraz_users` (`userId`, `userName`, `userEmail`, `userCpfOrCnpj`, `userPhone`, `userPassword`, `userHasImage`, `userDateOfCreation`, `userResetToken`, `userResetTokenExpires`) VALUES
(1, 'Lucas Dantasaaaaaaa', 'teste@teste.com', '123123', '123123123aaaaaaaaaaa', '$2y$10$ABEgnwO.WaFHYup82RDZ8.9eHSCRMF68jg.eUua7wV3NOeTMGcnh.', 0, '2024-07-25 08:23:16', '', NULL),
(2, 'Lucas', 'lucasdantasprogramador@gmail.com', '000000', '21', '$2y$10$x5rl7/wUoBHStQvVUT/dOOHz5G265kDC5J0XEZrZMlAFtqzjqcfja', 0, '2024-07-25 10:24:30', '', NULL),
(3, 'Lucas', 'lucas.dantas@rdexclusive.com.br', '33333', '21', '$2y$10$SoTl0yVXEdis7Fhgsvipue4cJ2AT1FgRIk/fL8erjvML06op0vvf6', 0, '2024-07-25 10:26:45', '0a92f53dab03448ade758e8a3996548b', '2024-07-25 20:02:02'),
(4, 'teeeetes', 'tes2e2@df2.c.como', 'd,21980128812989', '98321893218921', '$2y$10$lGg729rADEWxjvzMRtaKGutU91iXbAqy2aw5Kr6iDRx9mDZ6adt4u', 0, '2024-07-25 15:35:55', NULL, NULL);
--
-- Índices para tabelas despejadas
--
--
-- Índices de tabela `rubraz_password_resets`
--
ALTER TABLE `rubraz_password_resets`
ADD PRIMARY KEY (`passwordResetId`),
ADD KEY `passwordResetUserId` (`passwordResetUserId`);
--
-- Índices de tabela `rubraz_users`
--
ALTER TABLE `rubraz_users`
ADD PRIMARY KEY (`userId`);
--
-- AUTO_INCREMENT para tabelas despejadas
--
--
-- AUTO_INCREMENT de tabela `rubraz_password_resets`
--
ALTER TABLE `rubraz_password_resets`
MODIFY `passwordResetId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de tabela `rubraz_users`
--
ALTER TABLE `rubraz_users`
MODIFY `userId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Restrições para tabelas despejadas
--
--
-- Restrições para tabelas `rubraz_password_resets`
--
ALTER TABLE `rubraz_password_resets`
ADD CONSTRAINT `rubraz_password_resets_ibfk_1` FOREIGN KEY (`passwordResetUserId`) REFERENCES `rubraz_users` (`userId`) ON DELETE CASCADE;
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 */;