-
Notifications
You must be signed in to change notification settings - Fork 0
/
2phpd.sql
99 lines (79 loc) · 2.67 KB
/
2phpd.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
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : lun. 02 mars 2020 à 12:49
-- Version du serveur : 10.4.10-MariaDB
-- Version de PHP : 7.3.12
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 */;
--
-- Base de données : `2phpd`
--
-- --------------------------------------------------------
--
-- Structure de la table `admin`
--
DROP TABLE IF EXISTS `admin`;
CREATE TABLE IF NOT EXISTS `admin` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`username` varchar(60) NOT NULL,
`password` varchar(80) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`) VALUES
(1, 'root', 'superpassword'),
(2, 'adminuser', '1234567');
-- --------------------------------------------------------
--
-- Structure de la table `orders`
--
DROP TABLE IF EXISTS `orders`;
CREATE TABLE IF NOT EXISTS `orders` (
`Id` int(6) NOT NULL AUTO_INCREMENT,
`userId` int(6) NOT NULL,
`Name` varchar(200) NOT NULL,
`Quantity` int(50) NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`),
KEY `userId` (`userId`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `orders`
--
INSERT INTO `orders` (`Id`, `userId`, `Name`, `Quantity`) VALUES
(1, 1, 'Ordinateur', 1),
(2, 2, 'Clavier', 4);
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`email` varchar(200) NOT NULL,
`firstname` varchar(64) NOT NULL,
`lastname` varchar(128) NOT NULL,
`age` int(3) NOT NULL,
`password` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id`, `email`, `firstname`, `lastname`, `age`, `password`) VALUES
(30, '[email protected]', 'Monsieur', 'Test', 30, '$2y$10$qCY51A7XKMLwkTsP3oLozeT3RpjqXm3FftIc8mAPOtiCyKDt0qoz2'),
(29, '[email protected]', 'toto', 'toto', 20, '$2y$10$n3HCkMpvzZfIANg8mVPokuHdZ0VwsnSyGM6EFggT7v.ixdyG/SrgG');
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 */;