-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcdi-axe-project.sql
127 lines (106 loc) · 5.61 KB
/
cdi-axe-project.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
116
117
118
119
120
121
122
123
124
125
126
127
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost:3306
-- Généré le : ven. 26 mai 2023 à 20:56
-- Version du serveur : 8.0.30
-- Version de PHP : 8.1.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 : `cdi-axe-project`
--
-- --------------------------------------------------------
--
-- Structure de la table `post`
--
CREATE TABLE `post` (
`id` int NOT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`image` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
`tag` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`thumb_up` int NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`user_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Déchargement des données de la table `post`
--
INSERT INTO `post` (`id`, `content`, `image`, `tag`, `thumb_up`, `date`, `user_id`) VALUES
(133, 'Quand tu dois rendre ton projet de semaine de renfo dans moins d\'1h et qu\'il te manque les posts :', 'panique_y_a_t_il_un_pilote_dans_l_avion.gif', 'Tech', 0, '2023-04-16 21:20:52', 2),
(134, 'Je crois faut faire des posts pour qu\'Alexis puisse tester les tags après...', NULL, 'Art', 0, '2023-04-16 21:22:31', 3),
(136, 'Téma les stats', 'record de tout sur Paladins.png', 'JeuxVidéo', 0, '2023-04-16 21:27:25', 3),
(138, 'Quand je vois Thomas dans le même groupe que moi :', 'spider_thomas.png', 'Culture', 0, '2023-04-16 21:30:54', 2),
(139, 'En vrai il est trop beau mon Papyrus !', 'Sans titre.png', 'Art', 0, '2023-04-16 21:32:31', 4),
(141, 'Quand tu te rend compte que y a la date complète sous les posts avec H-2 (il est actuellement 23h36)', 'chaleur-sweating.gif', 'Sport', 0, '2023-04-16 21:36:47', 2),
(142, 'Go tester la led', NULL, 'Cinéma', 0, '2023-05-03 13:12:30', 2),
(143, 'Trop fier d\'avoir gagné la compétition', NULL, 'Sport', 0, '2023-05-03 13:13:17', 2),
(152, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-04 14:36:13', 5),
(153, 'Overwatch', NULL, 'JeuxVidéo', 0, '2023-05-04 14:38:07', 2),
(154, 'Picasso', NULL, 'Art', 0, '2023-05-04 14:38:31', 2),
(155, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-04 14:39:01', 5),
(159, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-22 14:24:05', 5),
(161, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-22 14:25:04', 5),
(162, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-22 14:25:08', 5),
(163, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-22 14:25:10', 5),
(164, 'Message automatique fait par mon créateur', NULL, 'Tech', 0, '2023-05-22 14:25:11', 5),
(167, 'Go tester si l\'heure marche mtn ...', NULL, 'Culture', 0, '2023-05-25 08:02:33', 4),
(168, 'On teste une deuxième fois :', NULL, 'Culture', 0, '2023-05-25 10:05:19', 4),
(169, 'let\'s go ça marche !!!', NULL, 'Histoire', 0, '2023-05-25 10:05:34', 4);
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
CREATE TABLE `users` (
`id` int NOT NULL,
`prenom` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`nom` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`pseudo` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`mail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`mdp` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`profile_picture` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id`, `prenom`, `nom`, `pseudo`, `mail`, `mdp`, `profile_picture`) VALUES
(2, 'Quentin', 'Garnier', 'Finex', '[email protected]', '$2y$10$6792UhAJrYpLWJEf1hC5yOAM.Qn25342saiV2GhEEbzsib3BGmlVm', 'https://fastly.picsum.photos/id/670/200/200.jpg?hmac=r8TCUI8W_ykYaZnXA3SXAoh2eXVWEefFjjZ2VsLJBXg'),
(3, 'Jean', 'Guuaannew0.7', 'CannaJ', '[email protected]', '$2y$10$SYIdLRNOkYEt98mr0/StPuczpUZvQoayqr74V9489hOo/7Ek03O9u', 'https://fastly.picsum.photos/id/455/200/200.jpg?hmac=YZhCbBjCYF0ha5dR9ElToDVwWcw05w0e4pAv5S9nZYg'),
(4, 'Jean', 'Paul', 'JP', '[email protected]', '$2y$10$5vj4Sl88Pscppmf4sPQeT.Wgl1VwayI828zi9MwaygVUfVqwI7Etm', 'https://img.freepik.com/photos-gratuite/jetee-au-bord-lac-hallstatt-autriche_181624-44201.jpg'),
(5, 'Bot', 'Bot', 'Bot', '[email protected]', '$2y$10$AbSmSqLGoQL2lUv8/lrknO06BJ2qooCLfdktK4rv9SM/H5uNrxK8.', 'https://creazilla-store.fra1.digitaloceanspaces.com/emojis/58440/robot-emoji-clipart-md.png');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `post`
--
ALTER TABLE `post`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `post`
--
ALTER TABLE `post`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=176;
--
-- AUTO_INCREMENT pour la table `users`
--
ALTER TABLE `users`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;