CREATE TABLE IF NOT EXISTS public.log_vnd_orcamento_alteracao ( log_sequencia integer NOT NULL, log_terminal_ip character varying(50) COLLATE pg_catalog."default" NOT NULL, log_filial_usuario integer NOT NULL, log_usuario integer NOT NULL, log_formulario character varying(100) COLLATE pg_catalog."default" NOT NULL, log_data date NOT NULL, log_hora time without time zone NOT NULL, filial_orc integer NOT NULL, orcamento integer NOT NULL, sequencia integer NOT NULL, ant_endereco_entrega integer NOT NULL, ant_tipo_entrega integer NOT NULL, ant_almox_vnd integer NOT NULL, ant_data_previsao_entrega date NOT NULL, atu_endereco_entrega integer NOT NULL, atu_tipo_entrega integer NOT NULL, atu_almox_vnd integer NOT NULL, atu_data_previsao_entrega date NOT NULL, CONSTRAINT pk_log_vnd_orcamento_alteracao PRIMARY KEY (log_sequencia) ) TABLESPACE pg_default; ALTER TABLE IF EXISTS public.log_vnd_orcamento_alteracao OWNER to postgres; COMMENT ON TABLE public.log_vnd_orcamento_alteracao IS 'Log de Alteração do Pedido (Endereco Entrega, Tipo Entrega, Almoxarifado, Data Previsao Entrega)';