5 foreign key (b_id) references b (b_id),
10 -- b_id serial not null,
11 -- primary key (b_id),
16 -- a_b_id serial not null,
17 -- primary key (a_b_id),
19 -- foreign key (a_id) references a (a_id),
21 -- foreign key (b_id) references b (b_id)
25 -- c_id serial not null,
26 -- primary key (c_id),
28 -- foreign key (b_id) references b (b_id),
33 -- d_id serial not null,
34 -- primary key (d_id),
36 -- foreign key (c_id) references c (c_id),
47 -- c_e_id serial not null,
48 -- primary key (c_e_id),
50 -- foreign key (c_id) references c (c_id),
52 -- foreign key (e_id) references e (e_id)
56 -- f_id serial not null,
57 -- primary key (f_id),
58 -- e1_id int not null,
59 -- foreign key (e1_id) references e (e_id),
60 -- e2_id int not null,
61 -- foreign key (e2_id) references e (e_id)
68 foreign key (a_id) references a (a_id),
70 foreign key (e1_id) references e (e_id),
72 foreign key (e2_id) references e (e_id)
76 -- h_id serial not null,
77 -- primary key (h_id),
78 -- a1_id int not null,
79 -- foreign key (a1_id) references a (a_id),
80 -- a2_id int not null,
81 -- foreign key (a2_id) references a (a_id),
82 -- g1_id int not null,
83 -- foreign key (g1_id) references g (g_id),
84 -- g2_id int not null,
85 -- foreign key (g2_id) references g (g_id)