CREATE TABLE ctl_operacionesurlwspaccfdi
(
  num_paccfdi smallint NOT NULL,
  num_operacion smallint NOT NULL,
  num_urlwspaccfdi integer NOT NULL,
  CONSTRAINT pk_ctl_operacionesurlwspaccfdi PRIMARY KEY (num_paccfdi , num_operacion ),
  CONSTRAINT fk_ctl_operacionesurlwspaccfdi_num_operacion FOREIGN KEY (num_operacion)
      REFERENCES cat_operacionesfacturaselectronicasnomina (idu_operacion) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION,
  CONSTRAINT fk_ctl_operacionesurlwspaccfdi_num_paccfdi FOREIGN KEY (num_paccfdi)
      REFERENCES cat_paccfdi (idu_paccfdi) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION,
  CONSTRAINT fk_ctl_operacionesurlwspaccfdi_num_urlwspaccfdi FOREIGN KEY (num_urlwspaccfdi)
      REFERENCES cat_urlwspaccfdi (idu_urlwspaccfdi) MATCH SIMPLE
      ON UPDATE NO ACTION ON DELETE NO ACTION
);
ALTER TABLE ctl_operacionesurlwspaccfdi
  OWNER TO sysfacturaelectronicaadmin;
