create table adherent ( id int primary key, nom text, prenom text, genre text, naissance date, codepostal text ); create table famille ( code text primary key, famille text, code_parent text ); create table article ( code text primary key, article text, famille text, -- references famille(famille) factpoids int, unitevente int, prix decimal, unitepoids int, publie int, suivistock int, sommeil int ); create table ticket ( id int primary key, date_ticket timestamp, client_id int, mode_rglt int ); create table ligne ( id int primary key, ticket_id int, --references ticket (id), article text, -- references article (code) prix_unitaire decimal, quantite decimal );