CREATE TABLE dis_romaneio_canc( filial integer NOT NULL, romaneio integer NOT NULL, terminal_ip character varying(16) NOT NULL, usuario integer NOT NULL, motivo integer NOT NULL, observacao character varying(300) NOT NULL, hora time without time zone NOT NULL, data date NOT NULL, CONSTRAINT pk_dis_romaneio_canc PRIMARY KEY (filial, romaneio), CONSTRAINT fk_dis_romaneio_canc_filial_romaneio FOREIGN KEY (filial, romaneio) REFERENCES public.dis_romaneio (filial, romaneio) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE RESTRICT, CONSTRAINT fk_dis_romaneio_canc_motivo FOREIGN KEY (motivo) REFERENCES public.dis_mot_cancelam (codigo) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE RESTRICT )WITH ( OIDS = FALSE ) TABLESPACE pg_default; COMMENT ON TABLE public.dis_romaneio_canc IS 'Tabela Cancelamento do Romaneio';