Disculpa un error por copiarlo :D
Código Mysql:
Ver original'comprobante', 'CREATE TABLE `comprobante` (\n `id_comprobante` varchar(10) NOT NULL,\n `cod_cli` varchar(6) NOT NULL,\n `tipo` varchar(45) NOT NULL,\n `serie` varchar(6) NOT NULL,\n `correlativo` varchar(6) NOT NULL,\n `ruc_cli` varchar(11) NOT NULL,\n `sub_total` double NOT NULL,\n `igv` double NOT NULL,\n `total` double NOT NULL,\n `fec_comp` varchar(10) NOT NULL,\n `est_compro` varchar(1) NOT NULL,\n `cod_user` varchar(6) NOT NULL,\n PRIMARY KEY (`id_comprobante`),\n KEY `xcodCli_idx` (`cod_cli`),\n KEY `xcod_user_idx` (`cod_user`),\n CONSTRAINT `xcodCli` FOREIGN KEY (`cod_cli`) REFERENCES `cliente` (`cod_cli`) ON DELETE NO ACTION ON UPDATE NO ACTION,\n CONSTRAINT `xcod_user` FOREIGN KEY (`cod_user`) REFERENCES `usuario` (`cod_user`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=latin1'