-
Notifications
You must be signed in to change notification settings - Fork 0
/
mvc.sql
122 lines (97 loc) · 3.32 KB
/
mvc.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
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : mer. 14 juin 2023 à 15:36
-- Version du serveur : 10.4.27-MariaDB
-- Version de PHP : 8.2.0
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 : `mvc`
--
-- --------------------------------------------------------
--
-- Structure de la table `admis`
--
CREATE TABLE `admis` (
`id` int(11) NOT NULL,
`name` varchar(256) NOT NULL,
`email` varchar(64) NOT NULL,
`password` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Structure de la table `items`
--
CREATE TABLE `items` (
`item_id` int(11) NOT NULL,
`item_name` varchar(60) NOT NULL,
`item_photo` blob NOT NULL,
`item_description` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Déchargement des données de la table `items`
--
INSERT INTO `items` (`item_id`, `item_name`, `item_photo`, `item_description`, `created_at`) VALUES
(9, 'test 1', 0x32303233303532385f3137333331332e6a7067, 'this is a example of my work , i can do better contact me', '2023-06-13 23:36:35'),
(10, 'test 2', 0x70686f746f5f323032332d30352d33315f31312d32322d32362e6a7067, 'we will see and we will be happy', '2023-06-13 23:37:20');
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(64) NOT NULL,
`email` varchar(256) NOT NULL,
`password` varchar(64) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `created_at`) VALUES
(1, 'Uzziah Lukeka Yambayamba', 'uzziahlukeka@gmail.com', '$2y$10$4Dv4mgKAQfsI3yLV56H5GusFYMIqGamUNAXg8JHx35fZVbuhElxZi', '2023-06-07 16:57:24'),
(2, 'Uzziah Lukeka Yambayamba', 'uzziahlukeka@gmail.com', '$2y$10$qVH5a.OC88QbC1OhKzK9EecnOgqaHHAYf0PmTtF0xVAtuiUIHzMwy', '2023-06-13 23:51:46');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `admis`
--
ALTER TABLE `admis`
ADD PRIMARY KEY (`email`);
--
-- Index pour la table `items`
--
ALTER TABLE `items`
ADD PRIMARY KEY (`item_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 `items`
--
ALTER TABLE `items`
MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT pour la table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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 */;