-
Notifications
You must be signed in to change notification settings - Fork 1
/
xpressing (1).sql
140 lines (112 loc) · 3.66 KB
/
xpressing (1).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
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Client : 127.0.0.1
-- Généré le : Sam 15 Avril 2017 à 18:58
-- 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 : `xpressing`
--
-- --------------------------------------------------------
--
-- Structure de la table `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`username` varchar(32) NOT NULL,
`pword` varchar(32) NOT NULL,
PRIMARY KEY (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Contenu de la table `admin`
--
INSERT INTO `admin` (`username`, `pword`) VALUES
('admin', 'passer123');
-- --------------------------------------------------------
--
-- Structure de la table `articles`
--
CREATE TABLE IF NOT EXISTS `articles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_depots` int(11) DEFAULT NULL,
`libelle` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_depot` (`id_depots`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `clients`
--
CREATE TABLE IF NOT EXISTS `clients` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(32) NOT NULL,
`prenom` varchar(32) NOT NULL,
`adresse` varchar(32) DEFAULT NULL,
`numTel` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `depots`
--
CREATE TABLE IF NOT EXISTS `depots` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_pressing` int(11) DEFAULT NULL,
`id_clients` int(11) DEFAULT NULL,
`id_employe` int(11) DEFAULT NULL,
`ref` varchar(50) NOT NULL,
`estLivre` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `fk_emp` (`id_employe`),
KEY `fk_press` (`id_pressing`),
KEY `fk_client` (`id_clients`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `employes`
--
CREATE TABLE IF NOT EXISTS `employes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`matricule` varchar(32) DEFAULT NULL,
`nom` varchar(32) DEFAULT NULL,
`prenom` varchar(32) DEFAULT NULL,
`id_pressing` int(11) DEFAULT NULL,
`pword` varchar(32) NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_idPress` (`id_pressing`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- Structure de la table `gerants`
--
CREATE TABLE IF NOT EXISTS `gerants` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL,
`nom` varchar(32) DEFAULT NULL,
`prenom` varchar(32) DEFAULT NULL,
`pword` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `pressing`
--
CREATE TABLE IF NOT EXISTS `pressing` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_gerant` varchar(32) DEFAULT NULL,
`nom` varchar(32) NOT NULL,
`isActive` tinyint(1) DEFAULT NULL,
`Adresse` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_idGerant` (`id_gerant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!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 */;