I would like to know the meaning of the UNIQUE constraint, it is a generated script, it concerns sponsorship, it does not have to be rather?
CONSTRAINT PARRAINAGE_PERSONNE_COMPTE_AK UNIQUE (id_pers_cpt, id_pers_cpt_PERSONNE_COMPTE)
Table:
CREATE TABLE PARRAINAGE
(
id_parrainage Int Auto_increment NOT NULL ,
date Date NOT NULL ,
id_pers_cpt Int NOT NULL ,
id_pers_cpt_PERSONNE_COMPTE Int NOT NULL ,
id_etab Int,
CONSTRAINT PARRAINAGE_PK PRIMARY KEY (id_parrainage)
,CONSTRAINT PARRAINAGE_PERSONNE_COMPTE_FK FOREIGN KEY (id_pers_cpt) REFERENCES PERSONNE_COMPTE(id_pers_cpt)
,CONSTRAINT PARRAINAGE_PERSONNE_COMPTE0_FK FOREIGN KEY (id_pers_cpt_PERSONNE_COMPTE) REFERENCES PERSONNE_COMPTE(id_pers_cpt)
,CONSTRAINT PARRAINAGE_ETABLISSEMENT1_FK FOREIGN KEY (id_etab) REFERENCES ETABLISSEMENT(id_etab)
,CONSTRAINT PARRAINAGE_PERSONNE_COMPTE_AK UNIQUE (id_pers_cpt)
)ENGINE=InnoDB;