ALTER TABLE tabela_precos ADD CONSTRAINT tabela_preco_pk PRIMARY KEY ( id );

ALTER TABLE tabela_precos ADD CONSTRAINT tabela_precos_id_frete UNIQUE ( id,
                                                                         frete );