-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat_num.sql
88 lines (72 loc) · 2.67 KB
/
chat_num.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
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : mar. 03 mars 2020 à 15:50
-- Version du serveur : 5.7.26
-- Version de PHP : 7.3.5
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 : `chat_num`
--
-- --------------------------------------------------------
--
-- Structure de la table `offres`
--
DROP TABLE IF EXISTS `offres`;
CREATE TABLE IF NOT EXISTS `offres` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`Url` varchar(1000) NOT NULL,
`Title` varchar(200) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `posts`
--
DROP TABLE IF EXISTS `posts`;
CREATE TABLE IF NOT EXISTS `posts` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`User_Id` int(11) NOT NULL,
`Author` varchar(30) NOT NULL,
`Content` varchar(20000) NOT NULL,
`CreationTimestamp` datetime NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`FirstName` varchar(30) NOT NULL,
`LastName` varchar(30) NOT NULL,
`Pseudo` varchar(30) NOT NULL,
`Email` varchar(90) NOT NULL,
`Password` varchar(200) NOT NULL,
`Role` varchar(6) NOT NULL,
`Status` varchar(10) DEFAULT NULL,
`Campus` varchar(30) NOT NULL,
`Promotion` varchar(10) NOT NULL,
`CreationTimestamp` datetime NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`Id`, `FirstName`, `LastName`, `Pseudo`, `Email`, `Password`, `Role`, `Status`, `Campus`, `Promotion`, `CreationTimestamp`) VALUES
(3, 'admin', 'admin', 'admin', 'admin@gmail.com', '$2y$11$6c431b79df1b9c927e6f0uH7QU7GmorsYeWvGQo2zFpIjKM3W7Ojy', 'user', 'hors ligne', 'paris', 'Pa147', '2020-03-03 12:55:21'),
(4, 'user', 'user', 'user', 'user@gmail.com', '$2y$11$c7b93e27273eb5f3a6aa6uXAG/bDzlsb0J4vk/3PGp5ipehu/c4Zi', 'user', 'en ligne', 'paris', 'pa147', '2020-03-03 16:34:57');
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 */;