// Data plateforme : modèle global (DBML, importable dans dbdiagram.io / dbdocs) Table "anc"."anc" { "article__ref" text "numero" text [pk, not null, note: "Numéro d'ANC"] "date_ouverture" text "atelier" text [note: "Atelier émetteur (USINAGE, MONTAGE, TRAITEMENT)"] "statut" text "gravite" bigint "article__famille" text } Table "anc"."anc__lignes" { "defaut" text "quantite" bigint } Table "ref_articles"."articles" { "ref_article" text [pk, not null, note: "Référence ERP, 8 caractères, peut commencer par 0"] "designation" text [note: "Libellé court de l'article"] "famille" text [note: "Famille technique : ARBRE, ENGRENAGE, CARTER, ROULEMENT, VISSERIE"] "type_article" text [note: "FAB (fabriqué) ou ACH (acheté)"] "unite" text [note: "Unité de gestion : PCE, KG, M"] "poids_kg" double [note: "Poids unitaire en kilogrammes"] "statut" text [note: "ACT actif, OBS obsolète"] "date_creation" date [note: "Date de création dans l'ERP"] "prix_standard" double [note: "Prix standard HT en euros, arrondi en staging"] "fournisseur" text [note: "Fournisseur principal (articles achetés), masqué en staging"] Note: "Un enregistrement par article, actifs et obsolètes confondus." } Ref: "anc"."anc"."article__ref" > "ref_articles"."articles"."ref_article"