Commit 7c73e919332a93f8042d3c9de89be7dbbf885e86
1 parent
7b9c0dc6
Re : Fichier base de donnees
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
BDD.sql
@@ -10,7 +10,7 @@ CREATE TABLE Client ( | @@ -10,7 +10,7 @@ CREATE TABLE Client ( | ||
10 | nom char(30), | 10 | nom char(30), |
11 | prenom char(30), | 11 | prenom char(30), |
12 | loglille1 char(30) PRIMARY KEY, | 12 | loglille1 char(30) PRIMARY KEY, |
13 | - solde float5.2, | 13 | + solde float 5.2, |
14 | idcarte integer, | 14 | idcarte integer, |
15 | credit boolean | 15 | credit boolean |
16 | ); | 16 | ); |
@@ -18,16 +18,16 @@ CREATE TABLE Client ( | @@ -18,16 +18,16 @@ CREATE TABLE Client ( | ||
18 | 18 | ||
19 | CREATE TABLE Prix ( | 19 | CREATE TABLE Prix ( |
20 | produit char(30), | 20 | produit char(30), |
21 | - prix float5.2 | 21 | + prix float 5.2 |
22 | ); | 22 | ); |
23 | 23 | ||
24 | 24 | ||
25 | CREATE TABLE Transactions ( | 25 | CREATE TABLE Transactions ( |
26 | id serial PRIMARY KEY, | 26 | id serial PRIMARY KEY, |
27 | type char(15), | 27 | type char(15), |
28 | - date char(15), | ||
29 | - montant float5.2, | ||
30 | - quantite interger2, | 28 | + date_heure char(15), |
29 | + montant float 5.2, | ||
30 | + quantite interger 2, | ||
31 | utilisateur char(30) REFERENCES Utilisateur(login), | 31 | utilisateur char(30) REFERENCES Utilisateur(login), |
32 | client char(30) REFERENCES Client(loglille1), | 32 | client char(30) REFERENCES Client(loglille1), |
33 | valide boolean | 33 | valide boolean |