DROP TABLE public.prd_aux_ficha_tecnica_embalagem_gera_pedido; CREATE TABLE public.prd_aux_ficha_tecnica_embalagem_gera_pedido ( terminal_ip character varying(50) COLLATE pg_catalog."default" NOT NULL, filial integer NOT NULL, produto_acabado integer NOT NULL, ficha_tecnica integer NOT NULL, sequencia integer NOT NULL, proposta integer NOT NULL, custo_unit numeric(18,6) NOT NULL, venda_unit numeric(18,6) NOT NULL, quantidade numeric(18,6) NOT NULL, custo_total numeric(18,6) NOT NULL, venda_total numeric(18,6) NOT NULL, data_prev_entrega date NOT NULL, tipo_pagamento integer NOT NULL, cliente integer NOT NULL, endereco_entrega integer NOT NULL, CONSTRAINT pk_prd_aux_ficha_tecnica_embalagem_gera_pedido PRIMARY KEY (terminal_ip, filial, produto_acabado) ) TABLESPACE pg_default; ALTER TABLE public.prd_aux_ficha_tecnica_embalagem_gera_pedido OWNER to postgres;