-
Notifications
You must be signed in to change notification settings - Fork 0
/
librarie.sql
179 lines (149 loc) · 6.42 KB
/
librarie.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Client : 127.0.0.1
-- Généré le : Dim 08 Mai 2016 à 23:52
-- Version du serveur : 5.6.17
-- Version de PHP : 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Base de données : `librarie`
--
-- --------------------------------------------------------
--
-- Structure de la table `albumphoto`
--
CREATE TABLE IF NOT EXISTS `albumphoto` (
`id_album` int(11) NOT NULL,
`email` text NOT NULL,
`idphoto` int(11) NOT NULL,
`id_albumphoto` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id_albumphoto`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;
--
-- Contenu de la table `albumphoto`
--
INSERT INTO `albumphoto` (`id_album`, `email`, `idphoto`, `id_albumphoto`) VALUES
(1, '[email protected]', 20, 1),
(3, '[email protected]', 3, 5),
(3, '[email protected]', 20, 6),
(8, '[email protected]', 25, 8),
(1, '[email protected]', 17, 9),
(1, '[email protected]', 17, 10),
(8, '[email protected]', 25, 11),
(1, '[email protected]', 20, 12),
(8, '[email protected]', 17, 13),
(8, '[email protected]', 3, 14),
(8, '[email protected]', 20, 15),
(8, '[email protected]', 25, 16),
(9, '[email protected]', 25, 17),
(10, '[email protected]', 27, 18),
(10, '[email protected]', 26, 19),
(11, '[email protected]', 30, 20),
(11, '[email protected]', 29, 21);
-- --------------------------------------------------------
--
-- Structure de la table `albums`
--
CREATE TABLE IF NOT EXISTS `albums` (
`email` text NOT NULL,
`titre_album` text NOT NULL,
`id_album` int(11) NOT NULL AUTO_INCREMENT,
`statut` int(1) NOT NULL,
PRIMARY KEY (`id_album`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
--
-- Contenu de la table `albums`
--
INSERT INTO `albums` (`email`, `titre_album`, `id_album`, `statut`) VALUES
('[email protected]', 'albumtest', 1, 0),
('[email protected]', 'fhuhfeihfi', 3, 0),
('[email protected]', 'yolo', 8, 0),
('[email protected]', 'zadazdazd', 9, 0),
('[email protected]', 'Jeux :D ', 10, 0),
('[email protected]', 'testprivéé', 11, 1);
-- --------------------------------------------------------
--
-- Structure de la table `favoris`
--
CREATE TABLE IF NOT EXISTS `favoris` (
`email` varchar(25) NOT NULL,
`idphoto` int(11) NOT NULL,
`id_favoris` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id_favoris`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
--
-- Contenu de la table `favoris`
--
INSERT INTO `favoris` (`email`, `idphoto`, `id_favoris`) VALUES
('[email protected]', 18, 3),
('[email protected]', 17, 7),
('[email protected]', 21, 12),
('[email protected]', 25, 13),
('[email protected]', 25, 14),
('[email protected]', 17, 15);
-- --------------------------------------------------------
--
-- Structure de la table `photos`
--
CREATE TABLE IF NOT EXISTS `photos` (
`idphoto` int(50) NOT NULL AUTO_INCREMENT,
`lieu` varchar(50) NOT NULL,
`date` date NOT NULL,
`statut` tinyint(1) NOT NULL,
`theme` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`commentaire` text NOT NULL,
`path` varchar(50) NOT NULL,
`titre_photo` text NOT NULL,
PRIMARY KEY (`idphoto`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=32 ;
--
-- Contenu de la table `photos`
--
INSERT INTO `photos` (`idphoto`, `lieu`, `date`, `statut`, `theme`, `email`, `commentaire`, `path`, `titre_photo`) VALUES
(3, 'paris', '2016-04-14', 0, 'th1', '[email protected]', ' ', 'images/japon.jpg', 'Le Japon la vie'),
(17, ' ', '2016-04-21', 0, 'th1', '[email protected]', ' ', 'images/009 - The Elder Scrolls.jpg', 'Casque Skyrim'),
(18, 'doekdoekdoekodk', '2016-04-21', 1, 'th3', '[email protected]', ' Description de la photo dkeodkoekdoe', 'images/082 - Pac Man.jpg', 'Art appliquer digne des mecs des arts'),
(20, 'starwars', '2016-04-21', 0, 'th3', '[email protected]', ' Description de la photodzadazdazd', 'images/19.jpg', 'light sabers!!!!'),
(21, 'texas', '2016-04-21', 0, 'th2', '[email protected]', ' Description de la photo', 'images/usa.jpg', 'Ce coucher de soleil magnifique'),
(25, 'Niseko', '2016-04-21', 0, 'th2', '[email protected]', ' Description de la photo', 'images/snow_snow.jpg', 'Snowboard'),
(26, 'games', '2016-04-21', 0, 'th3', '[email protected]', 'Ce jeux est magnifique', 'images/14.jpg', 'Halo Hero'),
(27, 'intergalactic', '2016-04-21', 0, 'th3', '[email protected]', 'Pew PEw PEW PEW ', 'images/15.jpg', 'PEW PEW PEW PEW PEW PEW '),
(28, 'house', '2016-04-21', 0, 'th6', '[email protected]', ' Description de la photofafaf', 'images/tortillacat.jpg', 'tortilla cate'),
(29, 'azdazd', '2016-04-21', 0, 'th1', '[email protected]', ' Description de la photodazdazd', 'images/afrique.jpg', 'dazdaz'),
(30, 'thailand', '0000-00-00', 0, 'th1', '[email protected]', 'le zbeul', 'images/mehdi_strippeur.jpg', 'Party in thailanddd'),
(31, 'games', '0000-00-00', 0, 'th3', '[email protected]', ' Description de la photodzdazd', 'images/082 - Pac Man.jpg', 'trop de pacman');
-- --------------------------------------------------------
--
-- Structure de la table `profil`
--
CREATE TABLE IF NOT EXISTS `profil` (
`email` varchar(100) NOT NULL,
`pass` varchar(100) NOT NULL,
`nom` varchar(100) NOT NULL,
`prenom` varchar(1000) DEFAULT NULL,
`date` varchar(100) NOT NULL,
`sex` varchar(100) NOT NULL,
`profil_picture` varchar(100) NOT NULL DEFAULT 'images/profil_start.jpg',
`admin` int(11) NOT NULL,
PRIMARY KEY (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Contenu de la table `profil`
--
INSERT INTO `profil` (`email`, `pass`, `nom`, `prenom`, `date`, `sex`, `profil_picture`, `admin`) VALUES
('[email protected]', 'azerty', 'chouteau', 'jojo', '1/1/1916', 'h', 'profil/008 - Fallout.png', 1),
('[email protected]', 'bababa', 'balzer', 'cedric', '1/1/1916', '', 'profil/cedric_content.jpg', 0),
('[email protected]', 'bababa', 'jeong', 'yang', '1/1/1916', 'h', 'images/profil_start.jpg', 1),
('[email protected]', 'bababa', 'morere', 'laeti', '1/1/1916', 'f', 'images/profil_start.jpg', 0),
('[email protected]', 'bababa', 'bg', 'babar', '1/1/1916', 'h', 'images/profil_start.jpg', 0);
/*!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 */;