You are on page 1of 1

create table contacto (

id_cont int primary key,


nom_cont varchar(20),
Apell_cont varchar(20),
correo_cont varchar(20),
dir_cont varchar(20),
foto_cont varchar(20)
);
create table etiqueta (
id_etiqieta int primary key not null,
nombre varchar(20)
);
create table telefono (
id_tel int primary key not null,
numero int not null,
id_cont int not null,
id_etiqueta_fk not null,
foreign key (id_cont) references contacto (id_cont),
foreign key (id_etiqueta) references etiqueta(id_etiqieta)
);

You might also like