create table categoria (cd_categoria int primary key, ds_categoria char(50)); create table marca (cd_marca int primary key, ds_marca char(50)); create table modelo (cd_modelo int primary key, ds_modelo char(50), cd_marca int, foreign key (cd_marca) references marca); create table cat_mod (cd_categoria int, cd_modelo int, primary key (cd_categoria, cd_modelo), foreign key (cd_categoria) references categoria, foreign key (cd_modelo) references modelo); create table configuracao (cd_conf int primary key, n_portas char(50), cor char(50), motor char(50), opcionais char(50)); create table mod_conf (cd_modelo int, cd_conf int, qtde_estoque int not null, valor money not null,primary key (cd_modelo, cd_conf), foreign key (cd_modelo) references modelo, foreign key (cd_conf) references configuracao);