-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprivate_message.sql
More file actions
107 lines (88 loc) · 3.18 KB
/
private_message.sql
File metadata and controls
107 lines (88 loc) · 3.18 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
104
105
106
107
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : mar. 24 sep. 2019 à 22:19
-- Version du serveur : 5.7.24
-- Version de PHP : 7.3.1
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 : `private_message`
--
-- --------------------------------------------------------
--
-- Structure de la table `ban_ip`
--
DROP TABLE IF EXISTS `ban_ip`;
CREATE TABLE IF NOT EXISTS `ban_ip` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` varchar(255) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`is_perma` tinyint(1) DEFAULT NULL,
`end_on` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_public` varchar(255) NOT NULL,
`id_public_parent` varchar(255) NOT NULL,
`last_edit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`text` text NOT NULL,
`author_public_id` varchar(255) NOT NULL,
`author_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `topic`
--
DROP TABLE IF EXISTS `topic`;
CREATE TABLE IF NOT EXISTS `topic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`public_id` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`text` text NOT NULL,
`author_name` varchar(255) NOT NULL,
`author_public_id` varchar(255) NOT NULL,
`last_edit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`is_edit` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=60 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,
`public_id` varchar(255) DEFAULT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL DEFAULT '123abc',
`join_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`is_banned` tinyint(1) DEFAULT NULL,
`ban_timeout` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM AUTO_INCREMENT=176 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id`, `public_id`, `username`, `password`, `join_date`, `is_banned`, `ban_timeout`) VALUES
(175, 'guz-5d891ac43d2bc5d891ac43d2c0', 'guzz0x', '$2y$10$2naYPbISGRTOAeOzmb0p/Ox/U834fZ4uQjhJ0piMKRfkEqx6OkYJq', '2019-09-23 19:19:32', NULL, NULL);
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 */;