Configured the 5.0.12-tutorials as integration-test for the plugin
[hibernate4-maven-plugin] / src / it / transport / create.sql
1
2     create table Category_Category (
3         Category_id varchar(191) not null,
4         Category_nodeType integer not null,
5         Category_source VARCHAR(191) not null,
6         parents_id varchar(191) not null,
7         parents_nodeType integer not null,
8         parents_source VARCHAR(191) not null
9     );
10
11     create table Custom_Category (
12         Custom_id varchar(191) not null,
13         Custom_nodeType integer not null,
14         Custom_source VARCHAR(191) not null,
15         categories_id varchar(191) not null,
16         categories_nodeType integer not null,
17         categories_source VARCHAR(191) not null
18     );
19
20     create table Custom_contributors (
21         Custom_id varchar(191) not null,
22         Custom_nodeType integer not null,
23         Custom_source VARCHAR(191) not null,
24         contributor_id varchar(191),
25         contributor_nodeType integer,
26         contributor_source VARCHAR(191),
27         text varchar(511),
28         type varchar(255)
29     );
30
31     create table Custom_emails (
32         Custom_id varchar(191) not null,
33         Custom_nodeType integer not null,
34         Custom_source VARCHAR(191) not null,
35         extra varchar(255),
36         icon_id varchar(191),
37         icon_nodeType integer,
38         icon_source VARCHAR(191),
39         type varchar(255),
40         value varchar(255)
41     );
42
43     create table Custom_links (
44         Custom_id varchar(191) not null,
45         Custom_nodeType integer not null,
46         Custom_source VARCHAR(191) not null,
47         extra varchar(255),
48         icon_id varchar(191),
49         icon_nodeType integer,
50         icon_source VARCHAR(191),
51         type varchar(255),
52         value varchar(1023)
53     );
54
55     create table Custom_numbers (
56         Custom_id varchar(191) not null,
57         Custom_nodeType integer not null,
58         Custom_source VARCHAR(191) not null,
59         extra varchar(255),
60         icon_id varchar(191),
61         icon_nodeType integer,
62         icon_source VARCHAR(191),
63         type varchar(255),
64         value varchar(255)
65     );
66
67     create table Date_contributors (
68         Date_id varchar(191) not null,
69         Date_nodeType integer not null,
70         Date_source VARCHAR(191) not null,
71         contributor_id varchar(191),
72         contributor_nodeType integer,
73         contributor_source VARCHAR(191),
74         text varchar(511),
75         type varchar(255)
76     );
77
78     create table Date_emails (
79         Date_id varchar(191) not null,
80         Date_nodeType integer not null,
81         Date_source VARCHAR(191) not null,
82         extra varchar(255),
83         icon_id varchar(191),
84         icon_nodeType integer,
85         icon_source VARCHAR(191),
86         type varchar(255),
87         value varchar(255)
88     );
89
90     create table Date_links (
91         Date_id varchar(191) not null,
92         Date_nodeType integer not null,
93         Date_source VARCHAR(191) not null,
94         extra varchar(255),
95         icon_id varchar(191),
96         icon_nodeType integer,
97         icon_source VARCHAR(191),
98         type varchar(255),
99         value varchar(1023)
100     );
101
102     create table Date_numbers (
103         Date_id varchar(191) not null,
104         Date_nodeType integer not null,
105         Date_source VARCHAR(191) not null,
106         extra varchar(255),
107         icon_id varchar(191),
108         icon_nodeType integer,
109         icon_source VARCHAR(191),
110         type varchar(255),
111         value varchar(255)
112     );
113
114     create table Date_types (
115         Date_id varchar(191) not null,
116         Date_nodeType integer not null,
117         Date_source VARCHAR(191) not null,
118         types varchar(255)
119     );
120
121     create table Event_Category (
122         Event_id varchar(191) not null,
123         Event_nodeType integer not null,
124         Event_source VARCHAR(191) not null,
125         categories_id varchar(191) not null,
126         categories_nodeType integer not null,
127         categories_source VARCHAR(191) not null
128     );
129
130     create table Event_contributors (
131         Event_id varchar(191) not null,
132         Event_nodeType integer not null,
133         Event_source VARCHAR(191) not null,
134         contributor_id varchar(191),
135         contributor_nodeType integer,
136         contributor_source VARCHAR(191),
137         text varchar(511),
138         type varchar(255)
139     );
140
141     create table Event_emails (
142         Event_id varchar(191) not null,
143         Event_nodeType integer not null,
144         Event_source VARCHAR(191) not null,
145         extra varchar(255),
146         icon_id varchar(191),
147         icon_nodeType integer,
148         icon_source VARCHAR(191),
149         type varchar(255),
150         value varchar(255)
151     );
152
153     create table Event_links (
154         Event_id varchar(191) not null,
155         Event_nodeType integer not null,
156         Event_source VARCHAR(191) not null,
157         extra varchar(255),
158         icon_id varchar(191),
159         icon_nodeType integer,
160         icon_source VARCHAR(191),
161         type varchar(255),
162         value varchar(1023)
163     );
164
165     create table Event_numbers (
166         Event_id varchar(191) not null,
167         Event_nodeType integer not null,
168         Event_source VARCHAR(191) not null,
169         extra varchar(255),
170         icon_id varchar(191),
171         icon_nodeType integer,
172         icon_source VARCHAR(191),
173         type varchar(255),
174         value varchar(255)
175     );
176
177     create table EventInfo_Group (
178         nodeId varchar(191) not null,
179         nodeType integer not null,
180         source VARCHAR(191) not null,
181         groups_id varchar(191) not null,
182         groups_nodeType integer not null,
183         groups_source VARCHAR(191) not null
184     );
185
186     create table Exhibition_contributors (
187         Exhibition_id varchar(191) not null,
188         Exhibition_nodeType integer not null,
189         Exhibition_source VARCHAR(191) not null,
190         contributor_id varchar(191),
191         contributor_nodeType integer,
192         contributor_source VARCHAR(191),
193         text varchar(511),
194         type varchar(255)
195     );
196
197     create table Exhibition_emails (
198         Exhibition_id varchar(191) not null,
199         Exhibition_nodeType integer not null,
200         Exhibition_source VARCHAR(191) not null,
201         extra varchar(255),
202         icon_id varchar(191),
203         icon_nodeType integer,
204         icon_source VARCHAR(191),
205         type varchar(255),
206         value varchar(255)
207     );
208
209     create table Exhibition_hours (
210         Exhibition_id varchar(191) not null,
211         Exhibition_nodeType integer not null,
212         Exhibition_source VARCHAR(191) not null,
213         close time,
214         day integer,
215         open time,
216         type varchar(255)
217     );
218
219     create table Exhibition_links (
220         Exhibition_id varchar(191) not null,
221         Exhibition_nodeType integer not null,
222         Exhibition_source VARCHAR(191) not null,
223         extra varchar(255),
224         icon_id varchar(191),
225         icon_nodeType integer,
226         icon_source VARCHAR(191),
227         type varchar(255),
228         value varchar(1023)
229     );
230
231     create table Exhibition_numbers (
232         Exhibition_id varchar(191) not null,
233         Exhibition_nodeType integer not null,
234         Exhibition_source VARCHAR(191) not null,
235         extra varchar(255),
236         icon_id varchar(191),
237         icon_nodeType integer,
238         icon_source VARCHAR(191),
239         type varchar(255),
240         value varchar(255)
241     );
242
243     create table Group_contributors (
244         Group_id varchar(191) not null,
245         Group_nodeType integer not null,
246         Group_source VARCHAR(191) not null,
247         contributor_id varchar(191),
248         contributor_nodeType integer,
249         contributor_source VARCHAR(191),
250         text varchar(511),
251         type varchar(255)
252     );
253
254     create table Group_emails (
255         Group_id varchar(191) not null,
256         Group_nodeType integer not null,
257         Group_source VARCHAR(191) not null,
258         extra varchar(255),
259         icon_id varchar(191),
260         icon_nodeType integer,
261         icon_source VARCHAR(191),
262         type varchar(255),
263         value varchar(255)
264     );
265
266     create table Group_links (
267         Group_id varchar(191) not null,
268         Group_nodeType integer not null,
269         Group_source VARCHAR(191) not null,
270         extra varchar(255),
271         icon_id varchar(191),
272         icon_nodeType integer,
273         icon_source VARCHAR(191),
274         type varchar(255),
275         value varchar(1023)
276     );
277
278     create table Group_numbers (
279         Group_id varchar(191) not null,
280         Group_nodeType integer not null,
281         Group_source VARCHAR(191) not null,
282         extra varchar(255),
283         icon_id varchar(191),
284         icon_nodeType integer,
285         icon_source VARCHAR(191),
286         type varchar(255),
287         value varchar(255)
288     );
289
290     create table LegalPerson_Category (
291         LegalPerson_id varchar(191) not null,
292         LegalPerson_nodeType integer not null,
293         LegalPerson_source VARCHAR(191) not null,
294         categories_id varchar(191) not null,
295         categories_nodeType integer not null,
296         categories_source VARCHAR(191) not null
297     );
298
299     create table LegalPerson_emails (
300         LegalPerson_id varchar(191) not null,
301         LegalPerson_nodeType integer not null,
302         LegalPerson_source VARCHAR(191) not null,
303         extra varchar(255),
304         icon_id varchar(191),
305         icon_nodeType integer,
306         icon_source VARCHAR(191),
307         type varchar(255),
308         value varchar(255)
309     );
310
311     create table LegalPerson_links (
312         LegalPerson_id varchar(191) not null,
313         LegalPerson_nodeType integer not null,
314         LegalPerson_source VARCHAR(191) not null,
315         extra varchar(255),
316         icon_id varchar(191),
317         icon_nodeType integer,
318         icon_source VARCHAR(191),
319         type varchar(255),
320         value varchar(1023)
321     );
322
323     create table LegalPerson_numbers (
324         LegalPerson_id varchar(191) not null,
325         LegalPerson_nodeType integer not null,
326         LegalPerson_source VARCHAR(191) not null,
327         extra varchar(255),
328         icon_id varchar(191),
329         icon_nodeType integer,
330         icon_source VARCHAR(191),
331         type varchar(255),
332         value varchar(255)
333     );
334
335     create table Location_Category (
336         Location_id varchar(191) not null,
337         Location_nodeType integer not null,
338         Location_source VARCHAR(191) not null,
339         categories_id varchar(191) not null,
340         categories_nodeType integer not null,
341         categories_source VARCHAR(191) not null
342     );
343
344     create table Location_emails (
345         Location_id varchar(191) not null,
346         Location_nodeType integer not null,
347         Location_source VARCHAR(191) not null,
348         extra varchar(255),
349         icon_id varchar(191),
350         icon_nodeType integer,
351         icon_source VARCHAR(191),
352         type varchar(255),
353         value varchar(255)
354     );
355
356     create table Location_hours (
357         Location_id varchar(191) not null,
358         Location_nodeType integer not null,
359         Location_source VARCHAR(191) not null,
360         close time,
361         day integer,
362         open time,
363         type varchar(255)
364     );
365
366     create table Location_links (
367         Location_id varchar(191) not null,
368         Location_nodeType integer not null,
369         Location_source VARCHAR(191) not null,
370         extra varchar(255),
371         icon_id varchar(191),
372         icon_nodeType integer,
373         icon_source VARCHAR(191),
374         type varchar(255),
375         value varchar(1023)
376     );
377
378     create table Location_numbers (
379         Location_id varchar(191) not null,
380         Location_nodeType integer not null,
381         Location_source VARCHAR(191) not null,
382         extra varchar(255),
383         icon_id varchar(191),
384         icon_nodeType integer,
385         icon_source VARCHAR(191),
386         type varchar(255),
387         value varchar(255)
388     );
389
390     create table Node (
391         DTYPE integer not null,
392         id varchar(191) not null,
393         nodeType integer not null,
394         source VARCHAR(191) not null,
395         created timestamp,
396         locale varchar(127),
397         modified timestamp,
398         name varchar(511),
399         version integer,
400         ord integer,
401         alt varchar(255),
402         copyright varchar(255),
403         credit varchar(255),
404         height integer,
405         width integer,
406         file varchar(255),
407         mediaType varchar(255),
408         size bigint,
409         teaser varchar(1023),
410         text varchar(4095),
411         uri varchar(255),
412         latitude double,
413         longitude double,
414         east double,
415         north double,
416         south double,
417         west double,
418         city varchar(127),
419         postalCode varchar(31),
420         street varchar(255),
421         firstName varchar(255),
422         lastName varchar(255),
423         type varchar(255),
424         end date,
425         start date,
426         gemkey varchar(31),
427         generator varchar(255),
428         after varchar(255),
429         date date,
430         photographer_id varchar(191),
431         photographer_nodeType integer,
432         photographer_source VARCHAR(191),
433         country_id varchar(191),
434         country_nodeType integer,
435         country_source VARCHAR(191),
436         state_id varchar(191),
437         state_nodeType integer,
438         state_source VARCHAR(191),
439         city_id varchar(191),
440         city_nodeType integer,
441         city_source VARCHAR(191),
442         district_id varchar(191),
443         district_nodeType integer,
444         district_source VARCHAR(191),
445         parent_id varchar(191),
446         parent_nodeType integer,
447         parent_source VARCHAR(191),
448         event_id varchar(191),
449         event_nodeType integer,
450         event_source VARCHAR(191),
451         location_id varchar(191),
452         location_nodeType integer,
453         location_source VARCHAR(191),
454         node_id varchar(191),
455         node_nodeType integer,
456         node_source VARCHAR(191),
457         subunit_id varchar(191),
458         subunit_nodeType integer,
459         subunit_source VARCHAR(191),
460         primary key (id, nodeType, source)
461     );
462
463     create table Node_features (
464         Node_id varchar(191) not null,
465         Node_nodeType integer not null,
466         Node_source VARCHAR(191) not null,
467         features varchar(255)
468     );
469
470     create table Node_fields (
471         Node_id varchar(191) not null,
472         Node_nodeType integer not null,
473         Node_source VARCHAR(191) not null,
474         fields varchar(255),
475         fields_KEY varchar(255) not null,
476         primary key (Node_id, Node_nodeType, Node_source, fields_KEY)
477     );
478
479     create table Node_Media (
480         nodeId varchar(191) not null,
481         nodeType integer not null,
482         source VARCHAR(191) not null,
483         media_id varchar(191) not null,
484         media_nodeType integer not null,
485         media_source VARCHAR(191) not null
486     );
487
488     create table Node_Nodes (
489         Node_id varchar(191) not null,
490         Node_nodeType integer not null,
491         Node_source VARCHAR(191) not null,
492         nodes_dbid bigint not null,
493         nodes_KEY varchar(255) not null,
494         primary key (Node_id, Node_nodeType, Node_source, nodes_KEY)
495     );
496
497     create table Nodes (
498         dbid bigint generated by default as identity,
499         type varchar(255),
500         primary key (dbid)
501     );
502
503     create table Nodes_Node (
504         Nodes_dbid bigint not null,
505         nodes_id varchar(191) not null,
506         nodes_nodeType integer not null,
507         nodes_source VARCHAR(191) not null
508     );
509
510     create table Organization_contributors (
511         Organization_id varchar(191) not null,
512         Organization_nodeType integer not null,
513         Organization_source VARCHAR(191) not null,
514         contributor_id varchar(191),
515         contributor_nodeType integer,
516         contributor_source VARCHAR(191),
517         text varchar(511),
518         type varchar(255)
519     );
520
521     create table Place_Region (
522         Place_id varchar(191) not null,
523         Place_nodeType integer not null,
524         Place_source VARCHAR(191) not null,
525         regions_id varchar(191) not null,
526         regions_nodeType integer not null,
527         regions_source VARCHAR(191) not null
528     );
529
530     create table Price (
531         dbid bigint generated by default as identity,
532         currency varchar(255),
533         text varchar(255),
534         type varchar(255),
535         value double,
536         nodeId varchar(191),
537         nodeType integer,
538         source VARCHAR(191),
539         primary key (dbid)
540     );
541
542     create table Price_emails (
543         Price_dbid bigint not null,
544         extra varchar(255),
545         icon_id varchar(191),
546         icon_nodeType integer,
547         icon_source VARCHAR(191),
548         type varchar(255),
549         value varchar(255)
550     );
551
552     create table Price_links (
553         Price_dbid bigint not null,
554         extra varchar(255),
555         icon_id varchar(191),
556         icon_nodeType integer,
557         icon_source VARCHAR(191),
558         type varchar(255),
559         value varchar(1023)
560     );
561
562     create table Price_numbers (
563         Price_dbid bigint not null,
564         extra varchar(255),
565         icon_id varchar(191),
566         icon_nodeType integer,
567         icon_source VARCHAR(191),
568         type varchar(255),
569         value varchar(255)
570     );
571
572     create table Region_City (
573         Region_id varchar(191) not null,
574         Region_nodeType integer not null,
575         Region_source VARCHAR(191) not null,
576         cities_id varchar(191) not null,
577         cities_nodeType integer not null,
578         cities_source VARCHAR(191) not null
579     );
580
581     create table Source (
582         uri VARCHAR(191) not null,
583         name varchar(255),
584         primary key (uri)
585     );
586
587     create table Source_features (
588         Source_uri VARCHAR(191) not null,
589         features binary(255),
590         features_KEY varchar(255) not null,
591         primary key (Source_uri, features_KEY)
592     );
593
594     create table Source_types (
595         Source_uri VARCHAR(191) not null,
596         types binary(255),
597         types_KEY varchar(255) not null,
598         primary key (Source_uri, types_KEY)
599     );
600
601     alter table Category_Category 
602         add constraint UK_ed5lqxomulp7x8hcy3104lw7t unique (parents_id, parents_nodeType, parents_source);
603
604     alter table Node 
605         add constraint uri unique (source, nodeType, id, locale, version);
606
607     alter table Category_Category 
608         add constraint FKbtv4wjkjdxcopetysbong6ui6 
609         foreign key (parents_id, parents_nodeType, parents_source) 
610         references Node;
611
612     alter table Category_Category 
613         add constraint FKkvdv0b6eqyobky9sah5hv2new 
614         foreign key (Category_id, Category_nodeType, Category_source) 
615         references Node;
616
617     alter table Custom_Category 
618         add constraint FK2o95493movsb6l1yw4n4khtbh 
619         foreign key (categories_id, categories_nodeType, categories_source) 
620         references Node;
621
622     alter table Custom_Category 
623         add constraint FK9k7jg7cp6xluljk2qt815tdjp 
624         foreign key (Custom_id, Custom_nodeType, Custom_source) 
625         references Node;
626
627     alter table Custom_contributors 
628         add constraint FKi7asp1dwf0b59mmrqjlhuspfe 
629         foreign key (contributor_id, contributor_nodeType, contributor_source) 
630         references Node;
631
632     alter table Custom_contributors 
633         add constraint FKthm0rsemcxntnnw2vqa9fbjtg 
634         foreign key (Custom_id, Custom_nodeType, Custom_source) 
635         references Node;
636
637     alter table Custom_emails 
638         add constraint FKphffh59qd5yhax6ompthaby5w 
639         foreign key (icon_id, icon_nodeType, icon_source) 
640         references Node;
641
642     alter table Custom_emails 
643         add constraint FKt2p150a9i7yores6qhhrxdlqg 
644         foreign key (Custom_id, Custom_nodeType, Custom_source) 
645         references Node;
646
647     alter table Custom_links 
648         add constraint FKoavtb3ysx30i4vkp1o9qha3x8 
649         foreign key (icon_id, icon_nodeType, icon_source) 
650         references Node;
651
652     alter table Custom_links 
653         add constraint FKdp6pu85ss0k17nhnhg8wt95qu 
654         foreign key (Custom_id, Custom_nodeType, Custom_source) 
655         references Node;
656
657     alter table Custom_numbers 
658         add constraint FKspyya70ibrtp0yp0aet1aulv0 
659         foreign key (icon_id, icon_nodeType, icon_source) 
660         references Node;
661
662     alter table Custom_numbers 
663         add constraint FK9n5qkj8uw768qyxluocmgp86l 
664         foreign key (Custom_id, Custom_nodeType, Custom_source) 
665         references Node;
666
667     alter table Date_contributors 
668         add constraint FKi6oc1dly4i431dvbh5p6bf8mk 
669         foreign key (contributor_id, contributor_nodeType, contributor_source) 
670         references Node;
671
672     alter table Date_contributors 
673         add constraint FKr39enr8uc3pjasjsvts2qk67t 
674         foreign key (Date_id, Date_nodeType, Date_source) 
675         references Node;
676
677     alter table Date_emails 
678         add constraint FKipovx7k7ccjs6ovv2p1squaqb 
679         foreign key (icon_id, icon_nodeType, icon_source) 
680         references Node;
681
682     alter table Date_emails 
683         add constraint FK8ewik7de7eruekfjln9wiw9u7 
684         foreign key (Date_id, Date_nodeType, Date_source) 
685         references Node;
686
687     alter table Date_links 
688         add constraint FK56sagoqdlfivnhx9j64ffq0aq 
689         foreign key (icon_id, icon_nodeType, icon_source) 
690         references Node;
691
692     alter table Date_links 
693         add constraint FK2epditya9rqnwedje5clh9fst 
694         foreign key (Date_id, Date_nodeType, Date_source) 
695         references Node;
696
697     alter table Date_numbers 
698         add constraint FK8sybhsii1xwy1b6ay4yw29aad 
699         foreign key (icon_id, icon_nodeType, icon_source) 
700         references Node;
701
702     alter table Date_numbers 
703         add constraint FKpi1tiq27ga4vg10jpu3lcn00j 
704         foreign key (Date_id, Date_nodeType, Date_source) 
705         references Node;
706
707     alter table Date_types 
708         add constraint FKdwuqn78ynn843lq8qnay7m99d 
709         foreign key (Date_id, Date_nodeType, Date_source) 
710         references Node;
711
712     alter table Event_Category 
713         add constraint FK796bki6riterk5qhwwer52i7e 
714         foreign key (categories_id, categories_nodeType, categories_source) 
715         references Node;
716
717     alter table Event_Category 
718         add constraint FKoxnijth24p7efxasu8gbqglnh 
719         foreign key (Event_id, Event_nodeType, Event_source) 
720         references Node;
721
722     alter table Event_contributors 
723         add constraint FK1tegfyer7c6f6gvjaxum2qoh4 
724         foreign key (contributor_id, contributor_nodeType, contributor_source) 
725         references Node;
726
727     alter table Event_contributors 
728         add constraint FK9nb0vn1fpg02lv1xqwrnymp2a 
729         foreign key (Event_id, Event_nodeType, Event_source) 
730         references Node;
731
732     alter table Event_emails 
733         add constraint FKgukmvw30p78pd01t0ub3yhl89 
734         foreign key (icon_id, icon_nodeType, icon_source) 
735         references Node;
736
737     alter table Event_emails 
738         add constraint FK44jxwok6hcnl26utfhmabp0w6 
739         foreign key (Event_id, Event_nodeType, Event_source) 
740         references Node;
741
742     alter table Event_links 
743         add constraint FKh2cty42m9dcwee8jrbwcykd00 
744         foreign key (icon_id, icon_nodeType, icon_source) 
745         references Node;
746
747     alter table Event_links 
748         add constraint FKhnuhk1ebnx3lhblp9tobx2xkm 
749         foreign key (Event_id, Event_nodeType, Event_source) 
750         references Node;
751
752     alter table Event_numbers 
753         add constraint FKgpmu2w9h057i4412lhy35u8wk 
754         foreign key (icon_id, icon_nodeType, icon_source) 
755         references Node;
756
757     alter table Event_numbers 
758         add constraint FK7vkbmaxmvnycab6grkx1enack 
759         foreign key (Event_id, Event_nodeType, Event_source) 
760         references Node;
761
762     alter table EventInfo_Group 
763         add constraint FKpwna397y3jfavhfbi631jrfuc 
764         foreign key (groups_id, groups_nodeType, groups_source) 
765         references Node;
766
767     alter table EventInfo_Group 
768         add constraint FK7vvheht7xq6t8q60x0iwbbo8e 
769         foreign key (nodeId, nodeType, source) 
770         references Node;
771
772     alter table Exhibition_contributors 
773         add constraint FK5x96y7obyfslktrjb3lw5ksnf 
774         foreign key (contributor_id, contributor_nodeType, contributor_source) 
775         references Node;
776
777     alter table Exhibition_contributors 
778         add constraint FKhb6cddg2ut19lyqhvhkm3n8k6 
779         foreign key (Exhibition_id, Exhibition_nodeType, Exhibition_source) 
780         references Node;
781
782     alter table Exhibition_emails 
783         add constraint FKrj3srkor5p48sqctfmqk7kndb 
784         foreign key (icon_id, icon_nodeType, icon_source) 
785         references Node;
786
787     alter table Exhibition_emails 
788         add constraint FK4hdpyj0v87bnl6qjs8q50esot 
789         foreign key (Exhibition_id, Exhibition_nodeType, Exhibition_source) 
790         references Node;
791
792     alter table Exhibition_hours 
793         add constraint FK27vcm7e9ercq01vac5vfjy8lp 
794         foreign key (Exhibition_id, Exhibition_nodeType, Exhibition_source) 
795         references Node;
796
797     alter table Exhibition_links 
798         add constraint FKd7q17uoid3jjmj5juqnn6kh3t 
799         foreign key (icon_id, icon_nodeType, icon_source) 
800         references Node;
801
802     alter table Exhibition_links 
803         add constraint FK9a6f7rvpeplqd2w7se00d6k7i 
804         foreign key (Exhibition_id, Exhibition_nodeType, Exhibition_source) 
805         references Node;
806
807     alter table Exhibition_numbers 
808         add constraint FK50xco0skes213iffdar4rsjdl 
809         foreign key (icon_id, icon_nodeType, icon_source) 
810         references Node;
811
812     alter table Exhibition_numbers 
813         add constraint FKr3esjj54fnif36h8khekq6cjl 
814         foreign key (Exhibition_id, Exhibition_nodeType, Exhibition_source) 
815         references Node;
816
817     alter table Group_contributors 
818         add constraint FKbmsmbeitqbq8iex4vylge405d 
819         foreign key (contributor_id, contributor_nodeType, contributor_source) 
820         references Node;
821
822     alter table Group_contributors 
823         add constraint FKf636sk9rghhtgj07a9b19ln5h 
824         foreign key (Group_id, Group_nodeType, Group_source) 
825         references Node;
826
827     alter table Group_emails 
828         add constraint FKmip0rdn17823nw0ev7j07658u 
829         foreign key (icon_id, icon_nodeType, icon_source) 
830         references Node;
831
832     alter table Group_emails 
833         add constraint FK7skv245m9v0iq1pksnqul1ljx 
834         foreign key (Group_id, Group_nodeType, Group_source) 
835         references Node;
836
837     alter table Group_links 
838         add constraint FKe52ogqykhxk91v8l6tnvwt1gn 
839         foreign key (icon_id, icon_nodeType, icon_source) 
840         references Node;
841
842     alter table Group_links 
843         add constraint FKd3p24awb4qhm7i7sqhm7gmw3y 
844         foreign key (Group_id, Group_nodeType, Group_source) 
845         references Node;
846
847     alter table Group_numbers 
848         add constraint FKadx9i37o50hkycey1s3q1uc97 
849         foreign key (icon_id, icon_nodeType, icon_source) 
850         references Node;
851
852     alter table Group_numbers 
853         add constraint FK4w1p7ivthda1sxpmt2py3n4r5 
854         foreign key (Group_id, Group_nodeType, Group_source) 
855         references Node;
856
857     alter table LegalPerson_Category 
858         add constraint FKqqfb7yiroxuw542ni9p54ge6i 
859         foreign key (categories_id, categories_nodeType, categories_source) 
860         references Node;
861
862     alter table LegalPerson_Category 
863         add constraint FKq571u0kqnrtbw1kaebgp5o5b6 
864         foreign key (LegalPerson_id, LegalPerson_nodeType, LegalPerson_source) 
865         references Node;
866
867     alter table LegalPerson_emails 
868         add constraint FK57r51bhrrtkphral2s5g8fliw 
869         foreign key (icon_id, icon_nodeType, icon_source) 
870         references Node;
871
872     alter table LegalPerson_emails 
873         add constraint FKcw2plu6hr2x0cn9oif1vb8fnc 
874         foreign key (LegalPerson_id, LegalPerson_nodeType, LegalPerson_source) 
875         references Node;
876
877     alter table LegalPerson_links 
878         add constraint FK2n9qnfwvfu8np8w29h7k3323g 
879         foreign key (icon_id, icon_nodeType, icon_source) 
880         references Node;
881
882     alter table LegalPerson_links 
883         add constraint FKqtqxdehi6fu72ko6odlbg6r3t 
884         foreign key (LegalPerson_id, LegalPerson_nodeType, LegalPerson_source) 
885         references Node;
886
887     alter table LegalPerson_numbers 
888         add constraint FKe37ecgbbetkxwlw77m973rqwe 
889         foreign key (icon_id, icon_nodeType, icon_source) 
890         references Node;
891
892     alter table LegalPerson_numbers 
893         add constraint FKo2l34vktv5jnysok64g3wfqvq 
894         foreign key (LegalPerson_id, LegalPerson_nodeType, LegalPerson_source) 
895         references Node;
896
897     alter table Location_Category 
898         add constraint FKbpj9fd3vreu4hi2xpe2ll55vo 
899         foreign key (categories_id, categories_nodeType, categories_source) 
900         references Node;
901
902     alter table Location_Category 
903         add constraint FK5b6fpm548a7lgts68vhy7mcj4 
904         foreign key (Location_id, Location_nodeType, Location_source) 
905         references Node;
906
907     alter table Location_emails 
908         add constraint FKn2xd9u1a04ks23nd0ussna3rq 
909         foreign key (icon_id, icon_nodeType, icon_source) 
910         references Node;
911
912     alter table Location_emails 
913         add constraint FKckgpp1j0ob5bspu854g61goko 
914         foreign key (Location_id, Location_nodeType, Location_source) 
915         references Node;
916
917     alter table Location_hours 
918         add constraint FK2fgc24b4d2v3pu1opsfvowt3o 
919         foreign key (Location_id, Location_nodeType, Location_source) 
920         references Node;
921
922     alter table Location_links 
923         add constraint FK22oj3jm0qo3ylcojflryeovsj 
924         foreign key (icon_id, icon_nodeType, icon_source) 
925         references Node;
926
927     alter table Location_links 
928         add constraint FKr1c5cxw7f0kea4e6jf3t4wwbl 
929         foreign key (Location_id, Location_nodeType, Location_source) 
930         references Node;
931
932     alter table Location_numbers 
933         add constraint FKn5fopoumjl9peoc0wydq0y7if 
934         foreign key (icon_id, icon_nodeType, icon_source) 
935         references Node;
936
937     alter table Location_numbers 
938         add constraint FKr5k04mtbvfnbof26m75de5ujl 
939         foreign key (Location_id, Location_nodeType, Location_source) 
940         references Node;
941
942     alter table Node 
943         add constraint FK9ted8q3xnwgdae6r2b6a2j2c8 
944         foreign key (photographer_id, photographer_nodeType, photographer_source) 
945         references Node;
946
947     alter table Node 
948         add constraint FKdbvdgnv0766xu7jlxwghad4oq 
949         foreign key (country_id, country_nodeType, country_source) 
950         references Node;
951
952     alter table Node 
953         add constraint FKkh3kdosgk406i59pksttr398b 
954         foreign key (state_id, state_nodeType, state_source) 
955         references Node;
956
957     alter table Node 
958         add constraint FKqwd2vxgkcydcohnw9xuxu4w8n 
959         foreign key (city_id, city_nodeType, city_source) 
960         references Node;
961
962     alter table Node 
963         add constraint FKcfsvjllpwnsrxy2qkv2fg1wli 
964         foreign key (district_id, district_nodeType, district_source) 
965         references Node;
966
967     alter table Node 
968         add constraint FKhuf20tlghhk21gs0n65cdgwxh 
969         foreign key (parent_id, parent_nodeType, parent_source) 
970         references Node;
971
972     alter table Node 
973         add constraint FK3t7obkasckpeh8lam3gul13k 
974         foreign key (event_id, event_nodeType, event_source) 
975         references Node;
976
977     alter table Node 
978         add constraint FK5v23em75p47f86muwm34i6ibk 
979         foreign key (location_id, location_nodeType, location_source) 
980         references Node;
981
982     alter table Node 
983         add constraint FKnsy9f76nf7ocajkfuuvxmv5g7 
984         foreign key (node_id, node_nodeType, node_source) 
985         references Node;
986
987     alter table Node 
988         add constraint FK6udg7k9o0ffj9lesyf3a12pqr 
989         foreign key (subunit_id, subunit_nodeType, subunit_source) 
990         references Node;
991
992     alter table Node_features 
993         add constraint FKrq26l7t2c19663gew9ml6cvud 
994         foreign key (Node_id, Node_nodeType, Node_source) 
995         references Node;
996
997     alter table Node_fields 
998         add constraint FKneblsglqyju4ma3kpju4c7orq 
999         foreign key (Node_id, Node_nodeType, Node_source) 
1000         references Node;
1001
1002     alter table Node_Media 
1003         add constraint FKn0qdv3hrutqr6r0umned27d4c 
1004         foreign key (media_id, media_nodeType, media_source) 
1005         references Node;
1006
1007     alter table Node_Media 
1008         add constraint FK1xaqp7wwyf36aporbvniekdrv 
1009         foreign key (nodeId, nodeType, source) 
1010         references Node;
1011
1012     alter table Node_Nodes 
1013         add constraint FKi3m2oeejpb1njux7j14pvo16b 
1014         foreign key (nodes_dbid) 
1015         references Nodes;
1016
1017     alter table Node_Nodes 
1018         add constraint FKee84dn6iionubhwkf575y9vax 
1019         foreign key (Node_id, Node_nodeType, Node_source) 
1020         references Node;
1021
1022     alter table Nodes_Node 
1023         add constraint FKq8jht9sf4j6k5qo8cuwn65cbo 
1024         foreign key (nodes_id, nodes_nodeType, nodes_source) 
1025         references Node;
1026
1027     alter table Nodes_Node 
1028         add constraint FKjp2exc3ajmkmmt4oa151243e 
1029         foreign key (Nodes_dbid) 
1030         references Nodes;
1031
1032     alter table Organization_contributors 
1033         add constraint FKdr4ufvx8juh8jpq913j63mvjy 
1034         foreign key (contributor_id, contributor_nodeType, contributor_source) 
1035         references Node;
1036
1037     alter table Organization_contributors 
1038         add constraint FKlda1w56spi8gim216xocg2n5t 
1039         foreign key (Organization_id, Organization_nodeType, Organization_source) 
1040         references Node;
1041
1042     alter table Place_Region 
1043         add constraint FK1barpdkpy4p8f2tcgwhqaay1n 
1044         foreign key (regions_id, regions_nodeType, regions_source) 
1045         references Node;
1046
1047     alter table Place_Region 
1048         add constraint FK3gga17h07k8awue3capjepjb2 
1049         foreign key (Place_id, Place_nodeType, Place_source) 
1050         references Node;
1051
1052     alter table Price 
1053         add constraint FKson2y4hg9osya48c5idq0kguk 
1054         foreign key (nodeId, nodeType, source) 
1055         references Node;
1056
1057     alter table Price_emails 
1058         add constraint FK7j7cjie0a3qemqlgwlxqqlc92 
1059         foreign key (icon_id, icon_nodeType, icon_source) 
1060         references Node;
1061
1062     alter table Price_emails 
1063         add constraint FKq6ito5fik1kniadn6cwqm0l9f 
1064         foreign key (Price_dbid) 
1065         references Price;
1066
1067     alter table Price_links 
1068         add constraint FKobn3hdtitjci6trqdwnrmj7m2 
1069         foreign key (icon_id, icon_nodeType, icon_source) 
1070         references Node;
1071
1072     alter table Price_links 
1073         add constraint FKhmji8edy6h9017ktwlrr9vmw 
1074         foreign key (Price_dbid) 
1075         references Price;
1076
1077     alter table Price_numbers 
1078         add constraint FK4xahu5ppk7qmu1g6toypk0a13 
1079         foreign key (icon_id, icon_nodeType, icon_source) 
1080         references Node;
1081
1082     alter table Price_numbers 
1083         add constraint FKiejn1brgdrrpflwykhlpw0w4n 
1084         foreign key (Price_dbid) 
1085         references Price;
1086
1087     alter table Region_City 
1088         add constraint FKogds6ncpkoqv484wign95w0sd 
1089         foreign key (cities_id, cities_nodeType, cities_source) 
1090         references Node;
1091
1092     alter table Region_City 
1093         add constraint FKhifiimy7x0ksxh6ffenvqw38t 
1094         foreign key (Region_id, Region_nodeType, Region_source) 
1095         references Node;
1096
1097     alter table Source_features 
1098         add constraint FKbowlk95psbed0re5f8b2x8xch 
1099         foreign key (Source_uri) 
1100         references Source;
1101
1102     alter table Source_types 
1103         add constraint FK2miu98q4nc71gepck5sx3v7ye 
1104         foreign key (Source_uri) 
1105         references Source;