-- Table: public.vnd_orcamento_bloqueio_desconto -- DROP TABLE public.vnd_orcamento_bloqueio_desconto; CREATE TABLE public.vnd_orcamento_bloqueio_desconto ( filial_orc integer NOT NULL, orcamento integer NOT NULL, venda_usuario integer NOT NULL, venda_data date NOT NULL, venda_hora time without time zone NOT NULL, autorizado_usuario integer NOT NULL, autorizado_data date NOT NULL, autorizado_hora time without time zone NOT NULL, status character varying(1) COLLATE pg_catalog."default" NOT NULL, CONSTRAINT pk_vnd_orcamento_bloqueio_desconto PRIMARY KEY (filial_orc, orcamento), CONSTRAINT fk_vnd_orcamento_bloqueio_desconto FOREIGN KEY (filial_orc, orcamento) REFERENCES public.vnd_orcamento (filial_orc, orcamento) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE RESTRICT ) TABLESPACE pg_default; ALTER TABLE IF EXISTS public.vnd_orcamento_bloqueio_desconto OWNER to postgres; COMMENT ON TABLE public.vnd_orcamento_bloqueio_desconto IS 'Bloqueio de Pedido Para Autorizacao';