@@ -150,7 +148,7 @@ alter table ACHAT add constraint FKprovient_d_un_FK
references EXEMPLAIRE;
alter table autorise_l_acces add constraint FKaut_UTI
foreign key (email -- Compound attribute --)
foreign key (email)
references UTILISATEUR;
alter table autorise_l_acces add constraint FKaut_LAB_FK
...
...
@@ -162,7 +160,7 @@ alter table EXEMPLAIRE add constraint FKpossede_FK
references LABORATOIRE;
alter table EXEMPLAIRE add constraint FKemprunte_FK
foreign key (email -- Compound attribute --)
foreign key (email)
references UTILISATEUR;
alter table EXEMPLAIRE add constraint FKcomporte_FK
...
...
@@ -170,7 +168,7 @@ alter table EXEMPLAIRE add constraint FKcomporte_FK
references PUBLICATION;
alter table interesse_par add constraint FKint_UTI_FK
foreign key (email -- Compound attribute --)
foreign key (email)
references UTILISATEUR;
alter table interesse_par add constraint FKint_MOT
...
...
@@ -187,10 +185,10 @@ alter table LIVRE add constraint ID_LIVRE_CHK
alter table PERIODIQUE add constraint ID_PERIODIQUE_CHK
check(exists(select * from PUBLICATION
where PUBLICATION.numero = numero and PUBLICATION.editeur = editeur and PUBLICATION.edition = edition and PUBLICATION.annee_de_publication = annee_de_publication));
where PUBLICATION.ID_PER = ID_PER));
alter table propose add constraint FKpro_UTI_FK
foreign key (email -- Compound attribute --)
foreign key (email)
references UTILISATEUR;
alter table propose add constraint FKpro_PUB_FK
...
...
@@ -198,15 +196,15 @@ alter table propose add constraint FKpro_PUB_FK
references PUBLICATION;
alter table PUBLICATION add constraint FKou_est_un_FK