Ajustements
This commit is contained in:
10
README.md
10
README.md
@@ -8,8 +8,10 @@ docker build -t iut/pgsql:2025-08 .
|
|||||||
|
|
||||||
### Schéma
|
### Schéma
|
||||||
|
|
||||||
|
```
|
||||||
Adherent : id, nom, prenom, genre, naissance, codepostal
|
Adherent : id, nom, prenom, genre, naissance, codepostal
|
||||||
Famille : code, famille, code_parent
|
Famille : code, famille, code_parent
|
||||||
Article : code, article, famille_code, factpoids, prix
|
Article : code, article, famille_code, factpoids, prix
|
||||||
Ticket : id, date_ticket, adherent_id, mode_rglt
|
Ticket : id, date_ticket, adherent_id, mode_rglt
|
||||||
Ligne : id, ticket_id, article_code, prix_unitaire, quantite
|
Ligne : id, ticket_id, article_code, prix_unitaire, quantite
|
||||||
|
```
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"AUBER","Aubergine bio plant motte 8cm","05AUBE",0,2,1.6,2,1,0,0
|
"AUBER","Aubergine bio plant motte 8cm","05AUBE",0,2,1.6,2,1,0,0
|
||||||
"AUBERG","Aubergine Jardins","02AUBE",0,3,3.5,2,1,0,1
|
"AUBERG","Aubergine Jardins","02AUBE",0,3,3.5,2,1,0,1
|
||||||
"AUBERGINESCOT","Aubergine SCOT","02AUBE",0,3,4.7,2,1,2,1
|
"AUBERGINESCOT","Aubergine SCOT","02AUBE",0,3,4.7,2,1,2,1
|
||||||
"AUBRAC","Ventes Délices d'Aubrac","12DELAUBRA",0,1,0,2,1,0,0
|
"AUBRAC","Délices d'Aubrac","12DELAUBRA",0,1,0,2,1,0,0
|
||||||
"AVOCAT","Avocat Kenya Kg","03AVOCAT",0,3,7.95,2,1,2,1
|
"AVOCAT","Avocat Kenya Kg","03AVOCAT",0,3,7.95,2,1,2,1
|
||||||
"AVOCATAFS","Avocat Hass Espagne Kg","03AVOCAT",0,3,7.5,2,1,2,1
|
"AVOCATAFS","Avocat Hass Espagne Kg","03AVOCAT",0,3,7.5,2,1,2,1
|
||||||
"AVOCATHASS","Avocat fuerte Espagne Pièce","03AVOCAT",0,2,1.75,2,1,2,1
|
"AVOCATHASS","Avocat fuerte Espagne Pièce","03AVOCAT",0,2,1.75,2,1,2,1
|
||||||
|
|||||||
|
@@ -10,13 +10,13 @@ create table adherent (
|
|||||||
create table famille (
|
create table famille (
|
||||||
code text primary key,
|
code text primary key,
|
||||||
famille text,
|
famille text,
|
||||||
code_parent text
|
code_parent text -- references famille(code)
|
||||||
);
|
);
|
||||||
|
|
||||||
create table article (
|
create table article (
|
||||||
code text primary key,
|
code text primary key,
|
||||||
article text,
|
article text,
|
||||||
famille_code text, -- references famille(famille)
|
famille_code text, -- references famille(code)
|
||||||
factpoids int,
|
factpoids int,
|
||||||
unitevente int,
|
unitevente int,
|
||||||
prix decimal,
|
prix decimal,
|
||||||
@@ -29,7 +29,7 @@ create table article (
|
|||||||
create table ticket (
|
create table ticket (
|
||||||
id int primary key,
|
id int primary key,
|
||||||
date_ticket timestamp,
|
date_ticket timestamp,
|
||||||
adherent_id int,
|
adherent_id int, -- references adherent(id)
|
||||||
mode_rglt int
|
mode_rglt int
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user