-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.sql
More file actions
103 lines (82 loc) · 2.52 KB
/
chat.sql
File metadata and controls
103 lines (82 loc) · 2.52 KB
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
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : jeu. 27 jan. 2022 à 11:49
-- Version du serveur : 10.4.14-MariaDB
-- Version de PHP : 7.4.10
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 */;
--
-- Base de données : `chat`
--
-- --------------------------------------------------------
--
-- Structure de la table `messages`
--
CREATE TABLE `messages` (
`id` int(11) NOT NULL,
`author` varchar(50) NOT NULL,
`content` varchar(1000) NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `messages`
--
INSERT INTO `messages` (`id`, `author`, `content`, `created_at`) VALUES
(52, 'Faback', 'Bonjour Fodé', '2022-01-22 15:18:48'),
(53, 'Fodé', 'Bonjour Faback comment tu vas ?', '2022-01-22 15:19:01');
-- --------------------------------------------------------
--
-- Structure de la table `utilisateurs`
--
CREATE TABLE `utilisateurs` (
`idU` int(11) NOT NULL,
`pseudo` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` text NOT NULL,
`image` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `utilisateurs`
--
INSERT INTO `utilisateurs` (`idU`, `pseudo`, `email`, `password`, `image`) VALUES
(7, 'Faback', 'fabacklevrai16@gmail.com', 'Bintou10', 'faback.jpg'),
(8, 'Fodé', 'fodedieye@gmail.fr', 'Dieye10', 'ahmada.jpg'),
(9, 'Giresse', 'giressekifouani@gmail.com', 'Giresse10', 'giresse.jpg');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `messages`
--
ALTER TABLE `messages`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `utilisateurs`
--
ALTER TABLE `utilisateurs`
ADD PRIMARY KEY (`idU`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `messages`
--
ALTER TABLE `messages`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;
--
-- AUTO_INCREMENT pour la table `utilisateurs`
--
ALTER TABLE `utilisateurs`
MODIFY `idU` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
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 */;