Vite fait, peut-être :
1 2 3 4 5
| Produit -1,1---[Être]---0,1- Materiel
| |
| (XT)/(+)
| |
+-----1,1---[Être]---0,1- Consommable |
donnant :
Produit(IdProduit, Libelle, QuantiteStock, [informations communes aux matériels et aux consommables]) ;
Materiel(#IdProduit, NumeroSerie, [autres informations propres aux matériels]) ==> index unique sur NumeroSerie (non null) ;
Consommable(#IdProduit, [informations propres aux consommables]).
Contraintes :
- un produit doit être, obligatoirement, un matériel OU un consommable (+) ;
- un produit ne doit pas être un matériel ET un consommable (XT) ;
- un produit "Materiel" doit avoir une QuantiteStock=0 ou =1.
Partager