hola que tal, fijate, de esta manera creo mis tablas y las relaciono.
create table usuarios
  (
    cod_usu smallint not null ,
    nombre char(40) not null ,
    sigla char(8) not null ,
    clave char(10) not null ,
    estado char(1) not null ,
    check (estado IN ('A' ,'B' )),
    primary key (cod_usu)
  );
create table usuprog
  (
    cod_usu smallint not null ,
    cod_apl smallint not null ,
    cod_pro smallint not null ,
    primary key (cod_usu,cod_apl,cod_pro)
  );
alter table usuprog add constraint (foreign key (cod_usu) references usuarios );
espero que sea de tu ayuda.