Ajustements

This commit is contained in:
2025-08-29 11:18:26 +02:00
parent bb465e0a18
commit d12cd30a96
3 changed files with 10 additions and 8 deletions

View File

@@ -8,8 +8,10 @@ docker build -t iut/pgsql:2025-08 .
### Schéma
```
Adherent : id, nom, prenom, genre, naissance, codepostal
Famille : code, famille, code_parent
Article : code, article, famille_code, factpoids, prix
Ticket : id, date_ticket, adherent_id, mode_rglt
Ligne : id, ticket_id, article_code, prix_unitaire, quantite
Famille : code, famille, code_parent
Article : code, article, famille_code, factpoids, prix
Ticket : id, date_ticket, adherent_id, mode_rglt
Ligne : id, ticket_id, article_code, prix_unitaire, quantite
```

View File

@@ -38,7 +38,7 @@
"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
"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
"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
1 code article famille factpoids unitevente prix unitepoids publie suivistock sommeil
38 AUBER Aubergine bio plant motte 8cm 05AUBE 0 2 1.6 2 1 0 0
39 AUBERG Aubergine Jardins 02AUBE 0 3 3.5 2 1 0 1
40 AUBERGINESCOT Aubergine SCOT 02AUBE 0 3 4.7 2 1 2 1
41 AUBRAC Ventes Délices d'Aubrac Délices d'Aubrac 12DELAUBRA 0 1 0 2 1 0 0
42 AVOCAT Avocat Kenya Kg 03AVOCAT 0 3 7.95 2 1 2 1
43 AVOCATAFS Avocat Hass Espagne Kg 03AVOCAT 0 3 7.5 2 1 2 1
44 AVOCATHASS Avocat fuerte Espagne Pièce 03AVOCAT 0 2 1.75 2 1 2 1

View File

@@ -10,13 +10,13 @@ create table adherent (
create table famille (
code text primary key,
famille text,
code_parent text
code_parent text -- references famille(code)
);
create table article (
code text primary key,
article text,
famille_code text, -- references famille(famille)
famille_code text, -- references famille(code)
factpoids int,
unitevente int,
prix decimal,
@@ -29,7 +29,7 @@ create table article (
create table ticket (
id int primary key,
date_ticket timestamp,
adherent_id int,
adherent_id int, -- references adherent(id)
mode_rglt int
);