· 6 years ago · Aug 21, 2019, 04:54 PM
1/*==============================================================*/
2/* Nom de SGBD : MySQL 5.0 */
3/* Date de création : 21/08/2019 18:19:31 */
4/*==============================================================*/
5
6
7alter table ABONNEMENT
8 drop foreign key FK_ABONNEME_ABONNEMEN_PERSONNE;
9
10alter table ABONNEMENT
11 drop foreign key FK_ABONNEME_ABONNEMEN_SERVICE;
12
13alter table ABONNEMENT
14 drop foreign key FK_ABONNEME_ABONNEMEN_PRODUIT;
15
16alter table ABONNEMENT
17 drop foreign key FK_ABONNEME_ABONNEMEN_FACTURAT;
18
19alter table CONTACT
20 drop foreign key FK_CONTACT_CONTACT_PERSONNE;
21
22alter table CONTACT
23 drop foreign key FK_CONTACT_CONTACT2_PERSONNE;
24
25alter table CONTACT
26 drop foreign key FK_CONTACT_CONTACT3_ADRESSE;
27
28alter table IMAGE
29 drop foreign key FK_IMAGE_RELATION__PERSONNE;
30
31alter table IMAGE
32 drop foreign key FK_IMAGE_RELATION__PERSONNE;
33
34alter table IMAGE
35 drop foreign key FK_IMAGE_RELATION__PRODUIT;
36
37alter table IMAGE
38 drop foreign key FK_IMAGE_RELATION__SERVICE;
39
40alter table LANGUE_PRODUIT
41 drop foreign key FK_LANGUE_P_LANGUE_PR_LANGUE;
42
43alter table LANGUE_PRODUIT
44 drop foreign key FK_LANGUE_P_LANGUE_PR_PRODUIT;
45
46alter table LANGUE_SERVICE
47 drop foreign key FK_LANGUE_S_LANGUE_SE_LANGUE;
48
49alter table LANGUE_SERVICE
50 drop foreign key FK_LANGUE_S_LANGUE_SE_SERVICE;
51
52alter table LANGUE_UTILISATEUR
53 drop foreign key FK_LANGUE_U_LANGUE_UT_LANGUE;
54
55alter table LANGUE_UTILISATEUR
56 drop foreign key FK_LANGUE_U_LANGUE_UT_PERSONNE;
57
58alter table MONNAIE_PRODUIT
59 drop foreign key FK_MONNAIE__MONNAIE_P_MONNAIE;
60
61alter table MONNAIE_PRODUIT
62 drop foreign key FK_MONNAIE__MONNAIE_P_PRODUIT;
63
64alter table MONNAIE_SERVICE
65 drop foreign key FK_MONNAIE__MONNAIE_S_MONNAIE;
66
67alter table MONNAIE_SERVICE
68 drop foreign key FK_MONNAIE__MONNAIE_S_SERVICE;
69
70alter table NIVEAU
71 drop foreign key FK_NIVEAU_NIVEAU_COMPETEN;
72
73alter table NIVEAU
74 drop foreign key FK_NIVEAU_NIVEAU2_PERSONNE;
75
76alter table PHYSIQUE
77 drop foreign key FK_PHYSIQUE_HERITAGE__SERVICE;
78
79alter table PRODUIT
80 drop foreign key FK_PRODUIT_RELATION__PERSONNE;
81
82alter table PRODUIT
83 drop foreign key FK_PRODUIT_RELATION__OPERATIV;
84
85alter table PRODUIT
86 drop foreign key FK_PRODUIT_RELATION__CATEGORI;
87
88alter table RELATION_11
89 drop foreign key FK_RELATION_RELATION__ROLE;
90
91alter table RELATION_11
92 drop foreign key FK_RELATION_RELATION__PERSONNE;
93
94alter table RELATION_4
95 drop foreign key FK_RELATION_RELATION__PERSONNE;
96
97alter table RELATION_4
98 drop foreign key FK_RELATION_RELATION__SERVICE;
99
100alter table SERVICE
101 drop foreign key FK_SERVICE_RELATION__OPERATIV;
102
103alter table SERVICE
104 drop foreign key FK_SERVICE_RELATION__CATEGORI;
105
106alter table VIDEO
107 drop foreign key FK_VIDEO_RELATION__PRODUIT;
108
109alter table VIDEO
110 drop foreign key FK_VIDEO_RELATION__SERVICE;
111
112
113alter table ABONNEMENT
114 drop foreign key FK_ABONNEME_ABONNEMEN_PERSONNE;
115
116alter table ABONNEMENT
117 drop foreign key FK_ABONNEME_ABONNEMEN_SERVICE;
118
119alter table ABONNEMENT
120 drop foreign key FK_ABONNEME_ABONNEMEN_PRODUIT;
121
122alter table ABONNEMENT
123 drop foreign key FK_ABONNEME_ABONNEMEN_FACTURAT;
124
125drop table if exists ABONNEMENT;
126
127drop table if exists ADRESSE;
128
129drop table if exists CATEGORIE;
130
131drop table if exists COMPETENCE;
132
133
134alter table CONTACT
135 drop foreign key FK_CONTACT_CONTACT_PERSONNE;
136
137alter table CONTACT
138 drop foreign key FK_CONTACT_CONTACT2_PERSONNE;
139
140alter table CONTACT
141 drop foreign key FK_CONTACT_CONTACT3_ADRESSE;
142
143drop table if exists CONTACT;
144
145drop table if exists FACTURATION;
146
147
148alter table IMAGE
149 drop foreign key FK_IMAGE_RELATION__PRODUIT;
150
151alter table IMAGE
152 drop foreign key FK_IMAGE_RELATION__SERVICE;
153
154alter table IMAGE
155 drop foreign key FK_IMAGE_RELATION__PERSONNE;
156
157alter table IMAGE
158 drop foreign key FK_IMAGE_RELATION__PERSONNE;
159
160drop table if exists IMAGE;
161
162drop table if exists LANGUE;
163
164
165alter table LANGUE_PRODUIT
166 drop foreign key FK_LANGUE_P_LANGUE_PR_LANGUE;
167
168alter table LANGUE_PRODUIT
169 drop foreign key FK_LANGUE_P_LANGUE_PR_PRODUIT;
170
171drop table if exists LANGUE_PRODUIT;
172
173
174alter table LANGUE_SERVICE
175 drop foreign key FK_LANGUE_S_LANGUE_SE_LANGUE;
176
177alter table LANGUE_SERVICE
178 drop foreign key FK_LANGUE_S_LANGUE_SE_SERVICE;
179
180drop table if exists LANGUE_SERVICE;
181
182
183alter table LANGUE_UTILISATEUR
184 drop foreign key FK_LANGUE_U_LANGUE_UT_LANGUE;
185
186alter table LANGUE_UTILISATEUR
187 drop foreign key FK_LANGUE_U_LANGUE_UT_PERSONNE;
188
189drop table if exists LANGUE_UTILISATEUR;
190
191drop table if exists MONNAIE;
192
193
194alter table MONNAIE_PRODUIT
195 drop foreign key FK_MONNAIE__MONNAIE_P_MONNAIE;
196
197alter table MONNAIE_PRODUIT
198 drop foreign key FK_MONNAIE__MONNAIE_P_PRODUIT;
199
200drop table if exists MONNAIE_PRODUIT;
201
202
203alter table MONNAIE_SERVICE
204 drop foreign key FK_MONNAIE__MONNAIE_S_MONNAIE;
205
206alter table MONNAIE_SERVICE
207 drop foreign key FK_MONNAIE__MONNAIE_S_SERVICE;
208
209drop table if exists MONNAIE_SERVICE;
210
211
212alter table NIVEAU
213 drop foreign key FK_NIVEAU_NIVEAU_COMPETEN;
214
215alter table NIVEAU
216 drop foreign key FK_NIVEAU_NIVEAU2_PERSONNE;
217
218drop table if exists NIVEAU;
219
220drop table if exists OPERATIVITE;
221
222drop table if exists PERSONNE_MORALE;
223
224drop table if exists PERSONNE_PHYSIQUE;
225
226
227alter table PHYSIQUE
228 drop foreign key FK_PHYSIQUE_HERITAGE__SERVICE;
229
230drop table if exists PHYSIQUE;
231
232
233alter table PRODUIT
234 drop foreign key FK_PRODUIT_RELATION__PERSONNE;
235
236alter table PRODUIT
237 drop foreign key FK_PRODUIT_RELATION__CATEGORI;
238
239alter table PRODUIT
240 drop foreign key FK_PRODUIT_RELATION__OPERATIV;
241
242drop table if exists PRODUIT;
243
244
245alter table RELATION_11
246 drop foreign key FK_RELATION_RELATION__ROLE;
247
248alter table RELATION_11
249 drop foreign key FK_RELATION_RELATION__PERSONNE;
250
251drop table if exists RELATION_11;
252
253
254alter table RELATION_4
255 drop foreign key FK_RELATION_RELATION__PERSONNE;
256
257alter table RELATION_4
258 drop foreign key FK_RELATION_RELATION__SERVICE;
259
260drop table if exists RELATION_4;
261
262drop table if exists ROLE;
263
264
265alter table SERVICE
266 drop foreign key FK_SERVICE_RELATION__CATEGORI;
267
268alter table SERVICE
269 drop foreign key FK_SERVICE_RELATION__OPERATIV;
270
271drop table if exists SERVICE;
272
273
274alter table VIDEO
275 drop foreign key FK_VIDEO_RELATION__PRODUIT;
276
277alter table VIDEO
278 drop foreign key FK_VIDEO_RELATION__SERVICE;
279
280drop table if exists VIDEO;
281
282/*==============================================================*/
283/* Table : ABONNEMENT */
284/*==============================================================*/
285create table ABONNEMENT
286(
287 IDPERS numeric(4,0) not null comment '',
288 IDSERV numeric(5,0) not null comment '',
289 IDPROD numeric(5,0) not null comment '',
290 IDFACTURE numeric(7,0) comment '',
291 DATEDEB date comment '',
292 DATEFIN date comment '',
293 primary key (IDPERS, IDSERV, IDPROD)
294);
295
296/*==============================================================*/
297/* Table : ADRESSE */
298/*==============================================================*/
299create table ADRESSE
300(
301 IDADRESSE numeric(6,0) not null comment '',
302 BOITEPOST longtext comment '',
303 ADRESSE longtext comment '',
304 VILLE longtext comment '',
305 CODEPOSTAL numeric(5,0) comment '',
306 REGION longtext comment '',
307 PAYS longtext comment '',
308 "LABEL" longtext comment '',
309 DMMLONG longtext comment '',
310 DMMLAT longtext comment '',
311 primary key (IDADRESSE)
312);
313
314/*==============================================================*/
315/* Table : CATEGORIE */
316/*==============================================================*/
317create table CATEGORIE
318(
319 IDCAT numeric(6,0) not null comment '',
320 INTITULE longtext not null comment '',
321 primary key (IDCAT)
322);
323
324/*==============================================================*/
325/* Table : COMPETENCE */
326/*==============================================================*/
327create table COMPETENCE
328(
329 IDCOMPETENCE numeric(5,0) not null comment '',
330 LIBELLECOMPETENCE longtext not null comment '',
331 primary key (IDCOMPETENCE)
332);
333
334/*==============================================================*/
335/* Table : CONTACT */
336/*==============================================================*/
337create table CONTACT
338(
339 IDMORALE numeric(4,0) not null comment '',
340 IDPERS numeric(4,0) not null comment '',
341 IDADRESSE numeric(6,0) not null comment '',
342 primary key (IDMORALE, IDPERS, IDADRESSE)
343);
344
345/*==============================================================*/
346/* Table : FACTURATION */
347/*==============================================================*/
348create table FACTURATION
349(
350 IDFACTURE numeric(7,0) not null comment '',
351 primary key (IDFACTURE)
352);
353
354/*==============================================================*/
355/* Table : IMAGE */
356/*==============================================================*/
357create table IMAGE
358(
359 IDIMAGE numeric(8,0) not null comment '',
360 IDPERS numeric(4,0) comment '',
361 IDSERV numeric(5,0) comment '',
362 IDMORALE numeric(4,0) comment '',
363 IDPROD numeric(5,0) comment '',
364 DESCRIPTIONIMAGE longtext comment '',
365 URLIMAGE longtext not null comment '',
366 primary key (IDIMAGE)
367);
368
369/*==============================================================*/
370/* Table : LANGUE */
371/*==============================================================*/
372create table LANGUE
373(
374 IDLANGUE numeric(3,0) not null comment '',
375 "DESC" longtext not null comment '',
376 primary key (IDLANGUE)
377);
378
379/*==============================================================*/
380/* Table : LANGUE_PRODUIT */
381/*==============================================================*/
382create table LANGUE_PRODUIT
383(
384 IDLANGUE numeric(3,0) not null comment '',
385 IDPROD numeric(5,0) not null comment '',
386 primary key (IDLANGUE, IDPROD)
387);
388
389/*==============================================================*/
390/* Table : LANGUE_SERVICE */
391/*==============================================================*/
392create table LANGUE_SERVICE
393(
394 IDLANGUE numeric(3,0) not null comment '',
395 IDSERV numeric(5,0) not null comment '',
396 primary key (IDLANGUE, IDSERV)
397);
398
399/*==============================================================*/
400/* Table : LANGUE_UTILISATEUR */
401/*==============================================================*/
402create table LANGUE_UTILISATEUR
403(
404 IDLANGUE numeric(3,0) not null comment '',
405 IDPERS numeric(4,0) not null comment '',
406 primary key (IDLANGUE, IDPERS)
407);
408
409/*==============================================================*/
410/* Table : MONNAIE */
411/*==============================================================*/
412create table MONNAIE
413(
414 IDMONNAIE numeric(3,0) not null comment '',
415 DSCRMONNAIE longtext not null comment '',
416 primary key (IDMONNAIE)
417);
418
419/*==============================================================*/
420/* Table : MONNAIE_PRODUIT */
421/*==============================================================*/
422create table MONNAIE_PRODUIT
423(
424 IDMONNAIE numeric(3,0) not null comment '',
425 IDPROD numeric(5,0) not null comment '',
426 primary key (IDMONNAIE, IDPROD)
427);
428
429/*==============================================================*/
430/* Table : MONNAIE_SERVICE */
431/*==============================================================*/
432create table MONNAIE_SERVICE
433(
434 IDMONNAIE numeric(3,0) not null comment '',
435 IDSERV numeric(5,0) not null comment '',
436 primary key (IDMONNAIE, IDSERV)
437);
438
439/*==============================================================*/
440/* Table : NIVEAU */
441/*==============================================================*/
442create table NIVEAU
443(
444 IDCOMPETENCE numeric(5,0) not null comment '',
445 IDPERS numeric(4,0) not null comment '',
446 NIVEAUMAITRISE numeric(5,0) comment '',
447 COMMENTAIRENIV longtext comment '',
448 primary key (IDCOMPETENCE, IDPERS)
449);
450
451/*==============================================================*/
452/* Table : OPERATIVITE */
453/*==============================================================*/
454create table OPERATIVITE
455(
456 IDOPERATIVITE numeric(5,0) not null comment '',
457 INTITULEOPERATIVITE longtext not null comment '',
458 primary key (IDOPERATIVITE)
459);
460
461/*==============================================================*/
462/* Table : PERSONNE_MORALE */
463/*==============================================================*/
464create table PERSONNE_MORALE
465(
466 IDMORALE numeric(4,0) not null comment '',
467 ORGANISATION longtext not null comment '',
468 TELMOR char(10) comment '',
469 MAILMOR longtext comment '',
470 NOTEMOR longtext comment '',
471 REVISIONMOR longtext comment '',
472 URLMOR longtext comment '',
473 VERSIONMOR longtext comment '',
474 primary key (IDMORALE)
475);
476
477/*==============================================================*/
478/* Table : PERSONNE_PHYSIQUE */
479/*==============================================================*/
480create table PERSONNE_PHYSIQUE
481(
482 IDPERS numeric(4,0) not null comment '',
483 NOM longtext not null comment '',
484 PRENOM1 longtext not null comment '',
485 PRENOM2 longtext comment '',
486 PRENOM3 longtext comment '',
487 DATENAISS date not null comment '',
488 GENRE numeric(1,0) comment '',
489 TEL varchar(15) comment '',
490 VERSION longtext comment '',
491 COMMENTAIREPERS longtext comment '',
492 MAIL longtext comment '',
493 TITRE varchar(50) comment '',
494 REVISION longtext comment '',
495 URL longtext comment '',
496 TELFIXE longtext comment '',
497 primary key (IDPERS)
498);
499
500/*==============================================================*/
501/* Table : PHYSIQUE */
502/*==============================================================*/
503create table PHYSIQUE
504(
505 IDSERV numeric(5,0) not null comment '',
506 IDCAT numeric(6,0) comment '',
507 IDOPERATIVITE numeric(5,0) comment '',
508 PREREQUISSERV longtext not null comment '',
509 NOMSERV longtext not null comment '',
510 TARIFSERV numeric(8,2) not null comment '',
511 DESCRIPTIONSERV longtext not null comment '',
512 NOTESERV numeric(5,0) not null comment '',
513 VERSIONSERV longtext not null comment '',
514 TAILLESERV longtext not null comment '',
515 COMPATIBILITESERV longtext not null comment '',
516 AGESERV numeric(3,0) not null comment '',
517 COPYRIGHTSERV longtext not null comment '',
518 CONFIDENTIALITESERV longtext not null comment '',
519 LICENCESERV longtext not null comment '',
520 LUN smallint comment '',
521 MAR smallint comment '',
522 MER smallint comment '',
523 JEU smallint comment '',
524 VEN smallint comment '',
525 SAM smallint comment '',
526 DIM smallint comment '',
527 PERIMINTERVENTION longtext comment '',
528 COMMENTAIRE longtext comment '',
529 primary key (IDSERV)
530);
531
532/*==============================================================*/
533/* Table : PRODUIT */
534/*==============================================================*/
535create table PRODUIT
536(
537 IDPROD numeric(5,0) not null comment '',
538 IDCAT numeric(6,0) comment '',
539 IDOPERATIVITE numeric(5,0) comment '',
540 IDMORALE numeric(4,0) comment '',
541 NOMPROD longtext not null comment '',
542 PREREQUISPROD longtext not null comment '',
543 TARIFPROD numeric(8,2) not null comment '',
544 DESCRIPTIONPROD longtext not null comment '',
545 NOTEPROD numeric(5,0) not null comment '',
546 VERSIONPROD longtext not null comment '',
547 TAILLEPROD longtext not null comment '',
548 COMPATIBILITEPROD longtext not null comment '',
549 AGEPROD numeric(3,0) not null comment '',
550 COPYRIGHTPROD longtext not null comment '',
551 CONFIDENTIALITEPROD longtext not null comment '',
552 LICENCEPROD longtext not null comment '',
553 primary key (IDPROD)
554);
555
556/*==============================================================*/
557/* Table : RELATION_11 */
558/*==============================================================*/
559create table RELATION_11
560(
561 IDROLE numeric(3,0) not null comment '',
562 IDPERS numeric(4,0) not null comment '',
563 primary key (IDROLE, IDPERS)
564);
565
566/*==============================================================*/
567/* Table : RELATION_4 */
568/*==============================================================*/
569create table RELATION_4
570(
571 IDMORALE numeric(4,0) not null comment '',
572 IDSERV numeric(5,0) not null comment '',
573 primary key (IDMORALE, IDSERV)
574);
575
576/*==============================================================*/
577/* Table : ROLE */
578/*==============================================================*/
579create table ROLE
580(
581 IDROLE numeric(3,0) not null comment '',
582 LIBELLEROLE longtext not null comment '',
583 primary key (IDROLE)
584);
585
586/*==============================================================*/
587/* Table : SERVICE */
588/*==============================================================*/
589create table SERVICE
590(
591 IDCAT numeric(6,0) comment '',
592 IDOPERATIVITE numeric(5,0) comment '',
593 PREREQUISSERV longtext not null comment '',
594 NOMSERV longtext not null comment '',
595 TARIFSERV numeric(8,2) not null comment '',
596 DESCRIPTIONSERV longtext not null comment '',
597 NOTESERV numeric(5,0) not null comment '',
598 VERSIONSERV longtext not null comment '',
599 TAILLESERV longtext not null comment '',
600 COMPATIBILITESERV longtext not null comment '',
601 AGESERV numeric(3,0) not null comment '',
602 COPYRIGHTSERV longtext not null comment '',
603 CONFIDENTIALITESERV longtext not null comment '',
604 LICENCESERV longtext not null comment '',
605 IDSERV numeric(5,0) not null comment '',
606 primary key (IDSERV)
607);
608
609/*==============================================================*/
610/* Table : VIDEO */
611/*==============================================================*/
612create table VIDEO
613(
614 IDVIDEO numeric(8,0) not null comment '',
615 IDPROD numeric(5,0) comment '',
616 IDSERV numeric(5,0) comment '',
617 DESCRIPTIONVIDEO longtext comment '',
618 URLVIDEO longtext not null comment '',
619 primary key (IDVIDEO)
620);
621
622alter table ABONNEMENT add constraint FK_ABONNEME_ABONNEMEN_PERSONNE foreign key (IDPERS)
623 references PERSONNE_PHYSIQUE (IDPERS) on delete restrict on update restrict;
624
625alter table ABONNEMENT add constraint FK_ABONNEME_ABONNEMEN_SERVICE foreign key (IDSERV)
626 references SERVICE (IDSERV) on delete restrict on update restrict;
627
628alter table ABONNEMENT add constraint FK_ABONNEME_ABONNEMEN_PRODUIT foreign key (IDPROD)
629 references PRODUIT (IDPROD) on delete restrict on update restrict;
630
631alter table ABONNEMENT add constraint FK_ABONNEME_ABONNEMEN_FACTURAT foreign key (IDFACTURE)
632 references FACTURATION (IDFACTURE) on delete restrict on update restrict;
633
634alter table CONTACT add constraint FK_CONTACT_CONTACT_PERSONNE foreign key (IDMORALE)
635 references PERSONNE_MORALE (IDMORALE) on delete restrict on update restrict;
636
637alter table CONTACT add constraint FK_CONTACT_CONTACT2_PERSONNE foreign key (IDPERS)
638 references PERSONNE_PHYSIQUE (IDPERS) on delete restrict on update restrict;
639
640alter table CONTACT add constraint FK_CONTACT_CONTACT3_ADRESSE foreign key (IDADRESSE)
641 references ADRESSE (IDADRESSE) on delete restrict on update restrict;
642
643alter table IMAGE add constraint FK_IMAGE_RELATION__PERSONNE foreign key (IDPERS)
644 references PERSONNE_PHYSIQUE (IDPERS) on delete restrict on update restrict;
645
646alter table IMAGE add constraint FK_IMAGE_RELATION__PERSONNE foreign key (IDMORALE)
647 references PERSONNE_MORALE (IDMORALE) on delete restrict on update restrict;
648
649alter table IMAGE add constraint FK_IMAGE_RELATION__PRODUIT foreign key (IDPROD)
650 references PRODUIT (IDPROD) on delete restrict on update restrict;
651
652alter table IMAGE add constraint FK_IMAGE_RELATION__SERVICE foreign key (IDSERV)
653 references SERVICE (IDSERV) on delete restrict on update restrict;
654
655alter table LANGUE_PRODUIT add constraint FK_LANGUE_P_LANGUE_PR_LANGUE foreign key (IDLANGUE)
656 references LANGUE (IDLANGUE) on delete restrict on update restrict;
657
658alter table LANGUE_PRODUIT add constraint FK_LANGUE_P_LANGUE_PR_PRODUIT foreign key (IDPROD)
659 references PRODUIT (IDPROD) on delete restrict on update restrict;
660
661alter table LANGUE_SERVICE add constraint FK_LANGUE_S_LANGUE_SE_LANGUE foreign key (IDLANGUE)
662 references LANGUE (IDLANGUE) on delete restrict on update restrict;
663
664alter table LANGUE_SERVICE add constraint FK_LANGUE_S_LANGUE_SE_SERVICE foreign key (IDSERV)
665 references SERVICE (IDSERV) on delete restrict on update restrict;
666
667alter table LANGUE_UTILISATEUR add constraint FK_LANGUE_U_LANGUE_UT_LANGUE foreign key (IDLANGUE)
668 references LANGUE (IDLANGUE) on delete restrict on update restrict;
669
670alter table LANGUE_UTILISATEUR add constraint FK_LANGUE_U_LANGUE_UT_PERSONNE foreign key (IDPERS)
671 references PERSONNE_PHYSIQUE (IDPERS) on delete restrict on update restrict;
672
673alter table MONNAIE_PRODUIT add constraint FK_MONNAIE__MONNAIE_P_MONNAIE foreign key (IDMONNAIE)
674 references MONNAIE (IDMONNAIE) on delete restrict on update restrict;
675
676alter table MONNAIE_PRODUIT add constraint FK_MONNAIE__MONNAIE_P_PRODUIT foreign key (IDPROD)
677 references PRODUIT (IDPROD) on delete restrict on update restrict;
678
679alter table MONNAIE_SERVICE add constraint FK_MONNAIE__MONNAIE_S_MONNAIE foreign key (IDMONNAIE)
680 references MONNAIE (IDMONNAIE) on delete restrict on update restrict;
681
682alter table MONNAIE_SERVICE add constraint FK_MONNAIE__MONNAIE_S_SERVICE foreign key (IDSERV)
683 references SERVICE (IDSERV) on delete restrict on update restrict;
684
685alter table NIVEAU add constraint FK_NIVEAU_NIVEAU_COMPETEN foreign key (IDCOMPETENCE)
686 references COMPETENCE (IDCOMPETENCE) on delete restrict on update restrict;
687
688alter table NIVEAU add constraint FK_NIVEAU_NIVEAU2_PERSONNE foreign key (IDPERS)
689 references PERSONNE_PHYSIQUE (IDPERS) on delete restrict on update restrict;
690
691alter table PHYSIQUE add constraint FK_PHYSIQUE_HERITAGE__SERVICE foreign key (IDSERV)
692 references SERVICE (IDSERV) on delete restrict on update restrict;
693
694alter table PRODUIT add constraint FK_PRODUIT_RELATION__PERSONNE foreign key (IDMORALE)
695 references PERSONNE_MORALE (IDMORALE) on delete restrict on update restrict;
696
697alter table PRODUIT add constraint FK_PRODUIT_RELATION__OPERATIV foreign key (IDOPERATIVITE)
698 references OPERATIVITE (IDOPERATIVITE) on delete restrict on update restrict;
699
700alter table PRODUIT add constraint FK_PRODUIT_RELATION__CATEGORI foreign key (IDCAT)
701 references CATEGORIE (IDCAT) on delete restrict on update restrict;
702
703alter table RELATION_11 add constraint FK_RELATION_RELATION__ROLE foreign key (IDROLE)
704 references ROLE (IDROLE) on delete restrict on update restrict;
705
706alter table RELATION_11 add constraint FK_RELATION_RELATION__PERSONNE foreign key (IDPERS)
707 references PERSONNE_PHYSIQUE (IDPERS) on delete restrict on update restrict;
708
709alter table RELATION_4 add constraint FK_RELATION_RELATION__PERSONNE foreign key (IDMORALE)
710 references PERSONNE_MORALE (IDMORALE) on delete restrict on update restrict;
711
712alter table RELATION_4 add constraint FK_RELATION_RELATION__SERVICE foreign key (IDSERV)
713 references SERVICE (IDSERV) on delete restrict on update restrict;
714
715alter table SERVICE add constraint FK_SERVICE_RELATION__OPERATIV foreign key (IDOPERATIVITE)
716 references OPERATIVITE (IDOPERATIVITE) on delete restrict on update restrict;
717
718alter table SERVICE add constraint FK_SERVICE_RELATION__CATEGORI foreign key (IDCAT)
719 references CATEGORIE (IDCAT) on delete restrict on update restrict;
720
721alter table VIDEO add constraint FK_VIDEO_RELATION__PRODUIT foreign key (IDPROD)
722 references PRODUIT (IDPROD) on delete restrict on update restrict;
723
724alter table VIDEO add constraint FK_VIDEO_RELATION__SERVICE foreign key (IDSERV)
725 references SERVICE (IDSERV) on delete restrict on update restrict;