depot=# \d articles_tbl
          Table "public.articles_tbl"
     Column     |       Type        | Modifiers
----------------+-------------------+-----------
 id_articles    | integer           | not null
 id_deposant    | integer           |
 id_geographie  | integer           |
 id_employe     | integer           |
 id_famille     | integer           |
 description    | text              | not null
 observation    | text              | not null
 assure         | boolean           | not null
 cle            | boolean           | not null
 id_fournisseur | integer           |
 id_article     | character varying |
 prix_achat     | numeric(9,2)      |
 prix_vente     | numeric(9,2)      |
 nb_baisse      | smallint          | default 0
Indexes:
    "articles_tbl_pkey" primary key, btree (id_articles)
    "fk_deposants" btree (id_deposant)
    "fk_employes" btree (id_employe)
    "fk_famille" btree (id_famille)
    "fk_fournisseur" btree (id_fournisseur)
    "fk_geo" btree (id_geographie)
Foreign-key constraints:
    "FK_deposant" FOREIGN KEY (id_deposant) REFERENCES deposants_tbl(id_deposant
) ON UPDATE RESTRICT ON DELETE RESTRICT
    "FK_employe" FOREIGN KEY (id_employe) REFERENCES employes_tbl(id_employe) ON
 UPDATE RESTRICT ON DELETE RESTRICT
    "FK_famille" FOREIGN KEY (id_famille) REFERENCES famille_tbl(id_famille) ON
UPDATE RESTRICT ON DELETE RESTRICT
    "FK_geo" FOREIGN KEY (id_geographie) REFERENCES geographie_tbl(id_geographie
) ON UPDATE RESTRICT ON DELETE RESTRICT
    "FK_fournisseur" FOREIGN KEY (id_fournisseur) REFERENCES fournisseurs_tbl(id
_fournisseur) ON UPDATE RESTRICT ON DELETE RESTRICT
Triggers:
    concat AFTER INSERT ON articles_tbl FOR EACH ROW EXECUTE PROCEDURE concat()
    numero AFTER INSERT ON articles_tbl FOR EACH ROW EXECUTE PROCEDURE numero_tr
igger()
			
		
 
	
Partager