--
-- Host: localhost    Database: grupom350
-- ------------------------------------------------------


--
-- Table structure for table `abonos`
--

CREATE TABLE `abonos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idfactura` bigint unsigned NOT NULL,
  `nc` int DEFAULT '0',
  `consecutivo` int DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `saldoinicialfactura` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `saldoinicial` double NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '1',
  `observacionesabono` varchar(300) DEFAULT NULL,
  `observacionesabonos` varchar(100) DEFAULT NULL,
  `consecutivosistema` int DEFAULT NULL,
  `idoorden` int DEFAULT '0',
  `idorden` int DEFAULT '0',
  `idtercero` int DEFAULT '0',
  `destino` varchar(25) DEFAULT NULL,
  `idreserva` int DEFAULT '0',
  `idasesor` int DEFAULT '0',
  `abonogeneral` varchar(25) DEFAULT NULL,
  `idrecibogeneral` int DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idfactura` (`idfactura`),
  CONSTRAINT `abonos_ibfk_1` FOREIGN KEY (`idz`) REFERENCES `z` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonos`
--


--
-- Table structure for table `abonoscompras`
--

CREATE TABLE `abonoscompras` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idmayorcompras` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` int DEFAULT '0',
  `valorinicial` int NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  `cc` bigint unsigned NOT NULL,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  `mediodepago` varchar(25) DEFAULT NULL,
  `afectacaja` int DEFAULT '1',
  `observacionesabonocompra` varchar(200) DEFAULT NULL,
  `abonogeneral` varchar(25) DEFAULT NULL,
  `idtercero` int DEFAULT '0',
  `consecutivoac` int DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idmayorcompras` (`idmayorcompras`),
  KEY `idz` (`idz`),
  CONSTRAINT `abonoscompras_ibfk_1` FOREIGN KEY (`idmayorcompras`) REFERENCES `mayorescompras` (`id`),
  CONSTRAINT `abonoscompras_ibfk_2` FOREIGN KEY (`idz`) REFERENCES `z` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonoscompras`
--


--
-- Table structure for table `abonosordenservicio`
--

CREATE TABLE `abonosordenservicio` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idorden` bigint unsigned NOT NULL,
  `consecutivo` int DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  `facturado` int DEFAULT '0',
  `abonado` int DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idfactura` (`idorden`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonosordenservicio`
--


--
-- Table structure for table `abonosprestamos`
--

CREATE TABLE `abonosprestamos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `valor` int DEFAULT NULL,
  `saldoinicial` int DEFAULT NULL,
  `saldofinal` int DEFAULT NULL,
  `idz` int DEFAULT '1',
  `idusuario` int DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idprestamo` int DEFAULT NULL,
  `consecutivo` int DEFAULT NULL,
  `idcliente` int DEFAULT '0',
  `cc` int DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonosprestamos`
--


--
-- Table structure for table `abonosprestamosin`
--

CREATE TABLE `abonosprestamosin` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `valor` int DEFAULT NULL,
  `saldoinicial` int DEFAULT NULL,
  `saldofinal` int DEFAULT NULL,
  `idz` int DEFAULT '1',
  `idusuario` int DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idprestamo` int DEFAULT NULL,
  `consecutivo` int DEFAULT NULL,
  `idcliente` int DEFAULT '0',
  `cc` int DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '0',
  `observaciones` varchar(100) DEFAULT NULL,
  `abonado` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonosprestamosin`
--

INSERT INTO `abonosprestamosin` (`id`, `valor`, `saldoinicial`, `saldofinal`, `idz`, `idusuario`, `fechacreacion`, `idprestamo`, `consecutivo`, `idcliente`, `cc`, `mediodepago`, `pv`, `afectacaja`, `observaciones`, `abonado`) VALUES (1,25000,0,NULL,562,2,'2025-04-24 19:29:37',1,NULL,0,0,'EFECTIVO','KALDI',1,'asd fasdfasdf',0);

--
-- Table structure for table `abonosreservas`
--

CREATE TABLE `abonosreservas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idfactura` bigint unsigned NOT NULL,
  `nc` int DEFAULT '0',
  `consecutivo` int DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `saldoinicialfactura` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `saldoinicial` double NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '1',
  `observacionesabono` varchar(100) DEFAULT NULL,
  `observacionesabonos` varchar(100) DEFAULT NULL,
  `consecutivosistema` int DEFAULT NULL,
  `abonado` int DEFAULT '0',
  `idorden` int DEFAULT '0',
  `idtercero` int DEFAULT '0',
  `destino` varchar(25) DEFAULT NULL,
  `idreserva` int DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT 'EFECTIVO',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idfactura` (`idfactura`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonosreservas`
--


--
-- Table structure for table `abonosseparados`
--

CREATE TABLE `abonosseparados` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idmayorseparados` bigint unsigned NOT NULL,
  `nc` int DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `saldoinicialfactura` double NOT NULL DEFAULT '0',
  `consecutivo` int NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `saldoinicial` double NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `idgasto` int DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idmayorseparados` (`idmayorseparados`),
  CONSTRAINT `abonosseparados_ibfk_1` FOREIGN KEY (`idz`) REFERENCES `z` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `abonosseparados`
--


--
-- Table structure for table `adicionales`
--

CREATE TABLE `adicionales` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned DEFAULT NULL,
  `idadicional` bigint unsigned DEFAULT NULL,
  `incremento` decimal(5,2) DEFAULT '0.00',
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idarticulo_2` (`idarticulo`,`idadicional`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idadicional` (`idadicional`),
  KEY `idusuario` (`idusuario`),
  CONSTRAINT `adicionales_ibfk_1` FOREIGN KEY (`idadicional`) REFERENCES `articulos` (`id`),
  CONSTRAINT `adicionales_ibfk_2` FOREIGN KEY (`idarticulo`) REFERENCES `articulos` (`id`),
  CONSTRAINT `adicionales_ibfk_3` FOREIGN KEY (`idadicional`) REFERENCES `articulos` (`id`),
  CONSTRAINT `adicionales_ibfk_4` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=458 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `adicionales`
--


--
-- Table structure for table `adicionales_grupo`
--

CREATE TABLE `adicionales_grupo` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idgrupo` int NOT NULL,
  `idadicional` bigint unsigned NOT NULL,
  `incremento` decimal(5,2) DEFAULT '0.00',
  `fechacreacion` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idgrupo_adicional` (`idgrupo`,`idadicional`),
  KEY `idgrupo` (`idgrupo`),
  KEY `idadicional` (`idadicional`),
  CONSTRAINT `adicionales_grupo_ibfk_1` FOREIGN KEY (`idgrupo`) REFERENCES `grupos_adicionales` (`id`),
  CONSTRAINT `adicionales_grupo_ibfk_2` FOREIGN KEY (`idadicional`) REFERENCES `articulos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `adicionales_grupo`
--


--
-- Table structure for table `ajustesdebodega`
--

CREATE TABLE `ajustesdebodega` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(100) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` int DEFAULT NULL,
  `detalle` varchar(100) NOT NULL DEFAULT '',
  `idusuario` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idusuario` (`idusuario`),
  KEY `cc` (`cc`),
  CONSTRAINT `ajustesdebodega_ibfk_2` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `ajustesdebodega_ibfk_3` FOREIGN KEY (`idarticulo`) REFERENCES `articulos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ajustesdebodega`
--


--
-- Table structure for table `ajustesdeinventario`
--

CREATE TABLE `ajustesdeinventario` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(100) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` int DEFAULT NULL,
  `detalle` varchar(100) NOT NULL DEFAULT '',
  `idusuario` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idusuario` (`idusuario`),
  KEY `cc` (`cc`),
  CONSTRAINT `ajustesdeinventario_ibfk_2` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ajustesdeinventario`
--


--
-- Table structure for table `anticipos`
--

CREATE TABLE `anticipos` (
  `id` int NOT NULL AUTO_INCREMENT,
  `fechacreacion` date DEFAULT NULL,
  `valor` int DEFAULT '0',
  `mediodepago` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'EFECTIVO',
  `afectacaja` tinyint unsigned DEFAULT '1',
  `observaciones` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `idorden` int DEFAULT '0',
  `idusuario` int DEFAULT '0',
  `consecutivo` int DEFAULT '0',
  `idz` int DEFAULT '1',
  `idfactura` int DEFAULT '0',
  `idcliente` int DEFAULT '0',
  `anticpoencm` int DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `anticipos`
--

INSERT INTO `anticipos` (`id`, `fechacreacion`, `valor`, `mediodepago`, `afectacaja`, `observaciones`, `idorden`, `idusuario`, `consecutivo`, `idz`, `idfactura`, `idcliente`, `anticpoencm`) VALUES (1,'2024-08-13',500,'EFECTIVO',1,NULL,2,1,1,562,47740,3161,0),(2,'2024-08-13',100,'EFECTIVO',1,NULL,2,1,3,562,47740,3161,0),(3,'2024-08-13',3000,'TRANSFERENCIA',1,NULL,7,1,4,562,47741,3161,0),(4,'2024-08-13',5000,'TRANSFERENCIA',0,NULL,7,1,5,562,47741,3161,0);

--
-- Table structure for table `anticiposeliminados`
--

CREATE TABLE `anticiposeliminados` (
  `id` int NOT NULL AUTO_INCREMENT,
  `fechacreacion` date DEFAULT NULL,
  `valor` int DEFAULT '0',
  `mediodepago` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `afectacaja` tinyint unsigned DEFAULT '1',
  `observaciones` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `idorden` int DEFAULT '0',
  `idusuario` int DEFAULT '0',
  `consecutivo` int DEFAULT '0',
  `idcliente` int DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `anticiposeliminados`
--


--
-- Table structure for table `articulos`
--

CREATE TABLE `articulos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idtienda` int DEFAULT '1',
  `esmp` bit(1) DEFAULT b'1',
  `seproduce` int DEFAULT '0',
  `sedesccomponeenventa` int NOT NULL DEFAULT '1',
  `idseccion` int DEFAULT '0',
  `SUBseccion` varchar(50) DEFAULT 'GENERAL',
  `ordendelarticulo` int DEFAULT '0',
  `referencia` varchar(20) NOT NULL DEFAULT '',
  `alias` varchar(20) NOT NULL DEFAULT '',
  `codabajo` varchar(5) NOT NULL DEFAULT '',
  `CODARTICULOABAJO` varchar(5) NOT NULL DEFAULT '',
  `situacioncocina` varchar(25) DEFAULT 'CAJA',
  `descripcion` varchar(100) NOT NULL DEFAULT ' ',
  `descripcionlarga` varchar(300) NOT NULL DEFAULT ' ',
  `seccion` varchar(50) NOT NULL DEFAULT 'SELECCIONE',
  `valordeventa` double NOT NULL DEFAULT '0',
  `cantidad` double NOT NULL DEFAULT '0',
  `cantidadenbodega` int DEFAULT '0',
  `fechadecreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `extension` varchar(5) NOT NULL DEFAULT ' ',
  `cc` bigint unsigned NOT NULL DEFAULT '0',
  `ultimocoste` double NOT NULL DEFAULT '0',
  `tienecomposicion` int NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `saleenlamesa` int DEFAULT '1',
  `esmodificador` int DEFAULT '1',
  `costomedio` double NOT NULL DEFAULT '0',
  `costoactual` double NOT NULL DEFAULT '0',
  `cantidadminima` int DEFAULT '0',
  `numerodelineas` int NOT NULL DEFAULT '1',
  `porcentajeiva` decimal(5,2) DEFAULT '0.00',
  `linea` varchar(50) NOT NULL DEFAULT 'SELECCIONE',
  `familiademodificadores` varchar(50) NOT NULL DEFAULT 'SELECCIONE',
  `descuentomaximo` int DEFAULT '0',
  `valordistribuidor` int NOT NULL DEFAULT '0',
  `descatalogado` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `tienemodificadores` int NOT NULL DEFAULT '0',
  `valordeventatiendas` double NOT NULL DEFAULT '0',
  `valordeventafundaciones` double NOT NULL DEFAULT '0',
  `valortiendavirtual` decimal(11,2) DEFAULT NULL,
  `comision` int NOT NULL DEFAULT '0',
  `orden` int NOT NULL DEFAULT '0',
  `semonitorea` int NOT NULL DEFAULT '0',
  `idunidaddemedida` bigint unsigned NOT NULL DEFAULT '1',
  `idrapi` varchar(25) DEFAULT NULL,
  `sesubeaifood` int DEFAULT '0',
  `sesubearappi` int DEFAULT '0',
  `secompra` int DEFAULT '0',
  `marca` varchar(25) DEFAULT NULL,
  `talla` varchar(5) DEFAULT NULL,
  `referenciacruzada` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  `COD_SATELITE_ARTICULO` varchar(25) DEFAULT NULL,
  `fabricante` varchar(100) DEFAULT NULL,
  `modelo` varchar(100) DEFAULT NULL,
  `serial` varchar(100) DEFAULT NULL,
  `usuarioedita` varchar(100) DEFAULT NULL,
  `ultimaedicion` datetime DEFAULT CURRENT_TIMESTAMP,
  `cantidad2` int DEFAULT '0',
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `idifood` varchar(50) DEFAULT NULL,
  `valordeventaregular` int DEFAULT '0',
  `sesubeashopify` int DEFAULT '0',
  `codigoarea` int DEFAULT NULL,
  `materiales` varchar(300) DEFAULT NULL,
  `idlinea` int DEFAULT NULL,
  `porcentajecomision` decimal(5,2) DEFAULT NULL,
  `cuenta_impuesto` int DEFAULT NULL,
  `urlfotoarticulo` varchar(500) DEFAULT 'https://susoftware.es/imagenes/susoftware.png',
  `imei` varchar(50) DEFAULT NULL,
  `sefactura` bit(1) DEFAULT b'1',
  `cupon_vence` date DEFAULT NULL,
  `porcentajeutilidad1` decimal(5,2) DEFAULT NULL,
  `porcentajeutilidad2` decimal(5,2) DEFAULT NULL,
  `tipoanimal` bit(1) DEFAULT b'0',
  `tiendavirtual` bit(1) DEFAULT b'1',
  `sevendeacero` bit(1) DEFAULT b'0',
  `descuentodeldia` int DEFAULT '0',
  `conteodiario` int DEFAULT '0',
  `cantidadbodega` bit(1) DEFAULT b'0',
  `verenventas` bit(1) DEFAULT b'0',
  `mostraartodosentv` int DEFAULT '1',
  `impultraprocesados` int DEFAULT '0',
  `urlfoto` bit(1) DEFAULT b'0',
  `meta` bit(1) DEFAULT b'0',
  `promocionar_t` int DEFAULT '0',
  `p_descuento1` decimal(3,2) DEFAULT '0.00',
  `compraminima` int DEFAULT '1',
  `vrventapublico` double DEFAULT '0',
  `dia` int DEFAULT '0',
  `lunes` int DEFAULT '0',
  `martes` int DEFAULT '0',
  `miercoles` int DEFAULT '0',
  `jueves` int DEFAULT '0',
  `viernes` int DEFAULT '0',
  `sabado` int DEFAULT '0',
  `domingo` int DEFAULT '0',
  `inilunes` time DEFAULT '00:00:00',
  `inimartes` time DEFAULT '00:00:00',
  `inimiercoles` time DEFAULT '00:00:00',
  `inijueves` time DEFAULT '00:00:00',
  `iniviernes` time DEFAULT '00:00:00',
  `inisabado` time DEFAULT '00:00:00',
  `inidomingo` time DEFAULT '00:00:00',
  `finlunes` time DEFAULT '00:00:00',
  `finmartes` time DEFAULT '00:00:00',
  `finmiercoles` time DEFAULT '00:00:00',
  `finjueves` time DEFAULT '00:00:00',
  `finviernes` time DEFAULT '00:00:00',
  `finsabado` time DEFAULT '00:00:00',
  `findomingo` time DEFAULT '00:00:00',
  `descuentodeldiaentv` int DEFAULT '0',
  `porcentaje_ganancia_en_venta` decimal(5,2) DEFAULT '0.00',
  `factorpresentacion` int DEFAULT '1',
  `idpresentacion` int DEFAULT '0',
  `presentacion` varchar(25) DEFAULT NULL,
  `valorporfactor` decimal(8,2) DEFAULT '0.00',
  `fecha_vence_articulos` date DEFAULT NULL,
  `division` int DEFAULT '1',
  `varlorventa1` int DEFAULT '0',
  `referencia2` varchar(25) DEFAULT NULL,
  `compromisoactual` int DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idunidaddemedida` (`idunidaddemedida`),
  CONSTRAINT `articulos_ibfk_1` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `articulos_ibfk_3` FOREIGN KEY (`idunidaddemedida`) REFERENCES `unidadesdemedida` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `articulos`
--

INSERT INTO `articulos` (`id`, `idtienda`, `esmp`, `seproduce`, `sedesccomponeenventa`, `idseccion`, `SUBseccion`, `ordendelarticulo`, `referencia`, `alias`, `codabajo`, `CODARTICULOABAJO`, `situacioncocina`, `descripcion`, `descripcionlarga`, `seccion`, `valordeventa`, `cantidad`, `cantidadenbodega`, `fechadecreacion`, `extension`, `cc`, `ultimocoste`, `tienecomposicion`, `idusuario`, `saleenlamesa`, `esmodificador`, `costomedio`, `costoactual`, `cantidadminima`, `numerodelineas`, `porcentajeiva`, `linea`, `familiademodificadores`, `descuentomaximo`, `valordistribuidor`, `descatalogado`, `subido`, `tienemodificadores`, `valordeventatiendas`, `valordeventafundaciones`, `valortiendavirtual`, `comision`, `orden`, `semonitorea`, `idunidaddemedida`, `idrapi`, `sesubeaifood`, `sesubearappi`, `secompra`, `marca`, `talla`, `referenciacruzada`, `pv`, `COD_SATELITE_ARTICULO`, `fabricante`, `modelo`, `serial`, `usuarioedita`, `ultimaedicion`, `cantidad2`, `situacioncocina2`, `idifood`, `valordeventaregular`, `sesubeashopify`, `codigoarea`, `materiales`, `idlinea`, `porcentajecomision`, `cuenta_impuesto`, `urlfotoarticulo`, `imei`, `sefactura`, `cupon_vence`, `porcentajeutilidad1`, `porcentajeutilidad2`, `tipoanimal`, `tiendavirtual`, `sevendeacero`, `descuentodeldia`, `conteodiario`, `cantidadbodega`, `verenventas`, `mostraartodosentv`, `impultraprocesados`, `urlfoto`, `meta`, `promocionar_t`, `p_descuento1`, `compraminima`, `vrventapublico`, `dia`, `lunes`, `martes`, `miercoles`, `jueves`, `viernes`, `sabado`, `domingo`, `inilunes`, `inimartes`, `inimiercoles`, `inijueves`, `iniviernes`, `inisabado`, `inidomingo`, `finlunes`, `finmartes`, `finmiercoles`, `finjueves`, `finviernes`, `finsabado`, `findomingo`, `descuentodeldiaentv`, `porcentaje_ganancia_en_venta`, `factorpresentacion`, `idpresentacion`, `presentacion`, `valorporfactor`, `fecha_vence_articulos`, `division`, `varlorventa1`, `referencia2`, `compromisoactual`) VALUES (1,1,_binary '',0,1,0,'GENERAL',0,'','','','','CAJA','EN ESPERA',' ','SELECCIONE',200,-1000,0,'2025-09-29 00:37:13',' ',2,0,0,1,1,1,0,0,0,1,21.00,'SELECCIONE','SELECCIONE',0,0,0,0,0,0,0,NULL,0,0,0,1,NULL,0,0,0,NULL,NULL,'-1','KALDI',NULL,NULL,NULL,NULL,NULL,'2025-09-29 00:37:13',0,'SELECCIONE',NULL,0,0,NULL,NULL,NULL,NULL,NULL,'https://susoftware.es/imagenes/susoftware.png',NULL,_binary '',NULL,NULL,NULL,_binary '\0',_binary '',_binary '\0',0,0,_binary '\0',_binary '\0',1,0,_binary '\0',_binary '\0',0,0.00,1,0,0,0,0,0,0,0,0,0,'00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00',0,0.00,1,0,NULL,0.00,NULL,1,0,NULL,0),(2,1,_binary '',0,1,0,'GENERAL',0,'1','','','','CAJA','','','SELECCIONE',1,-3158.21,0,'2025-09-29 16:07:22',' ',0,0,0,1,1,1,0,0,0,1,21.00,'SELECCIONE','SELECCIONE',0,0,0,0,0,0,0,NULL,0,0,0,1,NULL,0,0,0,NULL,NULL,NULL,'KALDI',NULL,NULL,NULL,NULL,NULL,'2025-09-29 15:07:22',0,'SELECCIONE',NULL,0,0,NULL,NULL,NULL,NULL,NULL,'https://susoftware.es/imagenes/susoftware.png',NULL,_binary '',NULL,NULL,NULL,_binary '\0',_binary '',_binary '\0',0,0,_binary '\0',_binary '\0',1,0,_binary '\0',_binary '\0',0,0.00,1,0,0,0,0,0,0,0,0,0,'00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00','00:00:00',0,0.00,1,0,NULL,0.00,NULL,1,0,NULL,0);

--
-- Table structure for table `articulos_grupos`
--

CREATE TABLE `articulos_grupos` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `idgrupo` int NOT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idarticulo_grupo` (`idarticulo`,`idgrupo`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idgrupo` (`idgrupo`),
  CONSTRAINT `articulos_grupos_ibfk_1` FOREIGN KEY (`idarticulo`) REFERENCES `articulos` (`id`),
  CONSTRAINT `articulos_grupos_ibfk_2` FOREIGN KEY (`idgrupo`) REFERENCES `grupos_adicionales` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `articulos_grupos`
--


--
-- Table structure for table `asignacionarticulosfamiliasmodificadores`
--

CREATE TABLE `asignacionarticulosfamiliasmodificadores` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `familiademodificadores` varchar(50) NOT NULL DEFAULT '',
  `activo` int DEFAULT '0',
  `idfamilia` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sesubeaifood` int DEFAULT '0',
  `idrapi` varchar(25) DEFAULT NULL,
  `papa` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `orden` int DEFAULT '0',
  `sesubearappi` int DEFAULT '1',
  `minimo` int DEFAULT '0',
  `maximo` int DEFAULT '0',
  `ordenasignaionfm` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idfamilia` (`idfamilia`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignacionarticulosfamiliasmodificadores`
--


--
-- Table structure for table `asignacionarticulosturnos`
--

CREATE TABLE `asignacionarticulosturnos` (
  `id` bigint unsigned NOT NULL,
  `idarticulo` int NOT NULL,
  `idturno` int NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cc` int NOT NULL DEFAULT '0',
  `idarticulooriginal` int NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignacionarticulosturnos`
--


--
-- Table structure for table `asignacionclientesturnos`
--

CREATE TABLE `asignacionclientesturnos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idcliente` bigint unsigned DEFAULT NULL,
  `idturno` bigint unsigned DEFAULT NULL,
  `fechacreacion` date DEFAULT NULL,
  `idusuario` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idcliente` (`idcliente`),
  KEY `idturno` (`idturno`),
  KEY `idusuario` (`idusuario`),
  CONSTRAINT `asignacionclientesturnos_ibfk_1` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`),
  CONSTRAINT `asignacionclientesturnos_ibfk_2` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `asignacionclientesturnos_ibfk_3` FOREIGN KEY (`idturno`) REFERENCES `turnos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignacionclientesturnos`
--


--
-- Table structure for table `asignacioncupones`
--

CREATE TABLE `asignacioncupones` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `idcupon` bigint DEFAULT NULL,
  `fechainicio` date DEFAULT NULL,
  `fechafin` date DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `porcentajedescuento` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idfamilia` (`fechafin`),
  KEY `idcupon` (`idcupon`),
  CONSTRAINT `asignacioncupones_ibfk_1` FOREIGN KEY (`idcupon`) REFERENCES `cupones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignacioncupones`
--


--
-- Table structure for table `asignaciondescuentos`
--

CREATE TABLE `asignaciondescuentos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `idcliente` int DEFAULT NULL,
  `fechainicio` date DEFAULT NULL,
  `fechafin` date DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `porcentajedescuento` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idfamilia` (`fechafin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignaciondescuentos`
--


--
-- Table structure for table `asignacionseccionesterceros`
--

CREATE TABLE `asignacionseccionesterceros` (
  `idcliente` bigint unsigned NOT NULL,
  `idseccion` bigint unsigned NOT NULL,
  `activo` int DEFAULT '1',
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `idcliente_2` (`idcliente`,`idseccion`),
  KEY `idseccion` (`idseccion`),
  KEY `idcliente` (`idcliente`),
  CONSTRAINT `asig1` FOREIGN KEY (`idseccion`) REFERENCES `secciones` (`id`),
  CONSTRAINT `asig12` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignacionseccionesterceros`
--


--
-- Table structure for table `asignacionzonasterceros`
--

CREATE TABLE `asignacionzonasterceros` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idcliente` bigint unsigned NOT NULL,
  `idzona` bigint unsigned NOT NULL,
  `activo` int DEFAULT '1',
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `idcliente` (`idcliente`,`idzona`),
  KEY `clienteszonas2` (`idzona`),
  CONSTRAINT `clienteszonas1` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`),
  CONSTRAINT `clienteszonas2` FOREIGN KEY (`idzona`) REFERENCES `zonas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `asignacionzonasterceros`
--

INSERT INTO `asignacionzonasterceros` (`id`, `idcliente`, `idzona`, `activo`) VALUES (1,2,1,1),(2,5,1,1);

--
-- Table structure for table `auxiliarbuscarpadre`
--

CREATE TABLE `auxiliarbuscarpadre` (
  `a` int NOT NULL,
  `b` int NOT NULL,
  `idusuario` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `auxiliarbuscarpadre`
--


--
-- Table structure for table `auxiliarcambiodeprecios`
--

CREATE TABLE `auxiliarcambiodeprecios` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idinsumo` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL DEFAULT '1',
  `cc` bigint unsigned NOT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idinsumo`),
  KEY `idcaja` (`idarticulo`),
  KEY `cc` (`cc`),
  CONSTRAINT `auxiliarcambiodeprecios_ibfk_1` FOREIGN KEY (`idarticulo`) REFERENCES `articulos` (`id`),
  CONSTRAINT `auxiliarcambiodeprecios_ibfk_2` FOREIGN KEY (`idinsumo`) REFERENCES `articulos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `auxiliarcambiodeprecios`
--


--
-- Table structure for table `auxiliarcostoagrupado`
--

CREATE TABLE `auxiliarcostoagrupado` (
  `idarticulo` int NOT NULL,
  `idinsumo` int NOT NULL,
  `idusuario` int NOT NULL,
  `cantidad` double NOT NULL,
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `auxiliarcostoagrupado`
--


--
-- Table structure for table `auxiliarcotizarreceta`
--

CREATE TABLE `auxiliarcotizarreceta` (
  `idarticulo` int NOT NULL,
  `idinsumo` int NOT NULL,
  `idusuario` int NOT NULL,
  `cantidad` double NOT NULL,
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `auxiliarcotizarreceta`
--


--
-- Table structure for table `bajas`
--

CREATE TABLE `bajas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idmayor` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` bigint unsigned NOT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL,
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(8) NOT NULL DEFAULT 'MESAS',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` varchar(2) NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idmayor` (`idmayor`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`),
  CONSTRAINT `bajas_ibfk_2` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `bajas_ibfk_3` FOREIGN KEY (`idz`) REFERENCES `z` (`id`),
  CONSTRAINT `bajas_ibfk_4` FOREIGN KEY (`idvendedor`) REFERENCES `clientes` (`id`),
  CONSTRAINT `bajas_ibfk_6` FOREIGN KEY (`idmayor`) REFERENCES `mayoresbajas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `bajas`
--


--
-- Table structure for table `bajasauxiliar`
--

CREATE TABLE `bajasauxiliar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `estadoimpresion` int DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(50) DEFAULT NULL,
  `pagarcontraentrega` int DEFAULT '0',
  `idmesa` int DEFAULT '1',
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int NOT NULL,
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '2',
  `origen` varchar(8) NOT NULL DEFAULT 'MESAS',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÆ’Ã‚Â² el producto',
  `entregado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÆ’Ã‚Â² el producto',
  `enespera` int NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int NOT NULL DEFAULT '0',
  `numlinea` int NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idvendedor` (`idvendedor`),
  KEY `idcliente` (`idcliente`),
  CONSTRAINT `bajasauxiliar_ibfk_1` FOREIGN KEY (`idarticulo`) REFERENCES `articulos` (`id`),
  CONSTRAINT `bajasauxiliar_ibfk_3` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `bajasauxiliar_ibfk_4` FOREIGN KEY (`idvendedor`) REFERENCES `clientes` (`id`),
  CONSTRAINT `bajasauxiliar_ibfk_6` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `bajasauxiliar`
--


--
-- Table structure for table `banco`
--

CREATE TABLE `banco` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int DEFAULT NULL,
  `valor` double DEFAULT '0',
  `tipo` varchar(25) DEFAULT NULL,
  `descripcion` varchar(25) DEFAULT NULL,
  `concepto` varchar(200) DEFAULT NULL,
  `idz` int DEFAULT '1',
  `fecha` date DEFAULT NULL,
  `valorinicial` double DEFAULT '0',
  `valorfinal` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `banco`
--


--
-- Table structure for table `barrios`
--

CREATE TABLE `barrios` (
  `barrio` varchar(150) DEFAULT NULL,
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `incremento` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `barrio` (`barrio`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `barrios`
--

INSERT INTO `barrios` (`barrio`, `id`, `incremento`) VALUES ('',1,0),('horizontes',2,0),('fuenlabrada',3,0),('enlabrada Madrid',4,0),('Fuenlabrada Madrid',5,0),('CASTELLLON DE LA PLANA',6,0),('Getafe',7,0),('COLMENERO',8,0);

--
-- Table structure for table `bases`
--

CREATE TABLE `bases` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `base` int NOT NULL DEFAULT '0',
  `fechacreacion` datetime NOT NULL,
  `idz` int NOT NULL DEFAULT '1',
  `idusuario` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'texasburgers',
  `usuario` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `idz` (`idz`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `bases`
--


--
-- Table structure for table `bitacora`
--

CREATE TABLE `bitacora` (
  `id` int NOT NULL,
  `texto` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `fecha` date DEFAULT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idcliente` bigint unsigned DEFAULT NULL,
  `idusuario` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  CONSTRAINT `bitacora_ibfk_1` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`),
  CONSTRAINT `bitacora_ibfk_2` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `bitacora`
--


--
-- Table structure for table `bolsillos`
--

CREATE TABLE `bolsillos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `idcliente` bigint unsigned NOT NULL,
  `valorinicial` double NOT NULL DEFAULT '0',
  `valorfinal` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idfactura` int DEFAULT '0',
  `movimiento` varchar(8) DEFAULT 'INGRESO',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  CONSTRAINT `bolsillos_ibfk_1` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `bolsillos_ibfk_2` FOREIGN KEY (`idz`) REFERENCES `z` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `bolsillos`
--


--
-- Table structure for table `cajamayor`
--

CREATE TABLE `cajamayor` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int DEFAULT NULL,
  `valor` double DEFAULT '0',
  `tipo` varchar(25) DEFAULT NULL,
  `descripcion` varchar(25) DEFAULT NULL,
  `concepto` varchar(25) DEFAULT NULL,
  `idz` int DEFAULT '1',
  `fecha` date DEFAULT NULL,
  `valorinicial` double DEFAULT '0',
  `valorfinal` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cajamayor`
--


--
-- Table structure for table `cajamayor2`
--

CREATE TABLE `cajamayor2` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int DEFAULT NULL,
  `valor` double DEFAULT '0',
  `tipo` varchar(25) DEFAULT NULL,
  `descripcion` varchar(100) DEFAULT '',
  `concepto` varchar(120) DEFAULT NULL,
  `idz` int DEFAULT '1',
  `fecha` date DEFAULT NULL,
  `valorinicial` double DEFAULT '0',
  `valorfinal` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `mediodepago` varchar(25) DEFAULT NULL,
  `entrada` double DEFAULT '0',
  `salida` double DEFAULT '0',
  `idprestamoin` int DEFAULT NULL,
  `idtabla` int DEFAULT '0',
  `tabla` varchar(12) DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cajamayor2`
--


--
-- Table structure for table `cajas`
--

CREATE TABLE `cajas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `caja` varchar(25) NOT NULL DEFAULT '',
  `cc` bigint unsigned NOT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cajas`
--

INSERT INTO `cajas` (`id`, `caja`, `cc`, `pv`) VALUES (1,'1',1,'KALDI'),(2,'1',2,'KALDI');

--
-- Table structure for table `calendario`
--

CREATE TABLE `calendario` (
  `id` bigint NOT NULL,
  `descripcion` varchar(200) DEFAULT NULL,
  `titulo` varchar(200) DEFAULT NULL,
  `start` datetime DEFAULT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `end` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `calendario`
--


--
-- Table structure for table `cambios`
--

CREATE TABLE `cambios` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bruto` double DEFAULT '0',
  `estadoimpresion` int DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int DEFAULT '0',
  `idfactura` int DEFAULT NULL,
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int NOT NULL,
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `mediodepago` varchar(25) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `tipo` varchar(25) DEFAULT NULL,
  `despachado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `entregado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `enespera` int NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int NOT NULL DEFAULT '0',
  `numlinea` int NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `enviaraproduccion` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL,
  `consecutivo` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idvendedor` (`idvendedor`),
  KEY `idcliente` (`idcliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cambios`
--


--
-- Table structure for table `cambiosauxiliar`
--

CREATE TABLE `cambiosauxiliar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bruto` double DEFAULT '0',
  `estadoimpresion` int DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `iva` double DEFAULT '0',
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int DEFAULT '0',
  `idfactura` int DEFAULT NULL,
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int NOT NULL,
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `entregado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `enespera` int NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int NOT NULL DEFAULT '0',
  `numlinea` int NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `enviaraproduccion` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idvendedor` (`idvendedor`),
  KEY `idcliente` (`idcliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cambiosauxiliar`
--


--
-- Table structure for table `cambiosrecibidoauxiliar`
--

CREATE TABLE `cambiosrecibidoauxiliar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bruto` double DEFAULT '0',
  `estadoimpresion` int DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int DEFAULT '0',
  `idfactura` int DEFAULT NULL,
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int NOT NULL,
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `tipo` varchar(25) DEFAULT NULL,
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `entregado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `enespera` int NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int NOT NULL DEFAULT '0',
  `numlinea` int NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `enviaraproduccion` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `afectacaja` int DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idvendedor` (`idvendedor`),
  KEY `idcliente` (`idcliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cambiosrecibidoauxiliar`
--


--
-- Table structure for table `cargos`
--

CREATE TABLE `cargos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `cargo` varchar(120) NOT NULL DEFAULT '',
  `cc` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cargos`
--

INSERT INTO `cargos` (`id`, `cargo`, `cc`, `pv`) VALUES (3,'MESERO',2,'KALDI'),(8,'',2,'KALDI');

--
-- Table structure for table `causaciones`
--

CREATE TABLE `causaciones` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `valor` int DEFAULT '0',
  `idcliente` int DEFAULT NULL,
  `tipo` varchar(15) DEFAULT 'PAGO',
  `estado` varchar(25) DEFAULT 'ACTIVO',
  `idpadre3` varchar(25) DEFAULT NULL,
  `fecha` date DEFAULT NULL,
  `fechacreacion` datetime DEFAULT CURRENT_TIMESTAMP,
  `fecharecibido4` date DEFAULT NULL,
  `devolucionreportada` bit(1) DEFAULT b'0',
  `fecharecibido7` datetime DEFAULT NULL,
  `fecharecibido10` datetime DEFAULT NULL,
  `fechaeliminado` datetime DEFAULT NULL,
  `usuarioelimina` varchar(150) DEFAULT NULL,
  `idfactura` int DEFAULT '0',
  `idpadre` int DEFAULT '0',
  `cliente` varchar(25) DEFAULT NULL,
  `padre` varchar(25) DEFAULT NULL,
  `idmayornomina` int DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `cc` (`idcliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `causaciones`
--


--
-- Table structure for table `cc`
--

CREATE TABLE `cc` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `nombrecc` varchar(25) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cc`
--

INSERT INTO `cc` (`id`, `nombrecc`) VALUES (19,'MERCADO LIBRE G NATECH'),(22,'PAGINA WEB'),(23,'RAPPI NATECH'),(24,'MERCADO LIBRE G COMERCIA'),(25,'LUEGO PAGO'),(26,'RAPPI G COMERCIA'),(27,'ADDI'),(28,'FALABELLA G COMERCIA');

--
-- Table structure for table `centrosdecostos`
--

CREATE TABLE `centrosdecostos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `refrescarcache` int DEFAULT '0',
  `debepagarel` int DEFAULT '0',
  `direccion` varchar(120) NOT NULL DEFAULT ' ',
  `titulotirilla` varchar(50) DEFAULT NULL,
  `pagoefectivo` int DEFAULT '0',
  `cuenta_costodeventa` int DEFAULT NULL,
  `type_regime_id` int DEFAULT '0',
  `ultimomespagado` int DEFAULT '0',
  `telefono` varchar(20) NOT NULL DEFAULT ' ',
  `nit` varchar(20) NOT NULL DEFAULT ' ',
  `centrodecostos` varchar(100) NOT NULL DEFAULT 'ALIMENTOS DOGGY',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `representante` varchar(100) NOT NULL DEFAULT ' ',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idresolucion` bigint unsigned NOT NULL DEFAULT '1',
  `email` varchar(100) DEFAULT '',
  `regimen` varchar(45) DEFAULT NULL,
  `comentariotirilla` text,
  `convertirpedidoenfactura` int DEFAULT '0',
  `numero` varchar(40) DEFAULT '',
  `prefijo` varchar(5) DEFAULT NULL,
  `razonsocialcomanda` varchar(100) DEFAULT NULL,
  `mostrariva` int NOT NULL DEFAULT '0',
  `contacto` varchar(200) DEFAULT NULL,
  `telefonocontacto` varchar(25) DEFAULT NULL,
  `cuenta_ingreso` int DEFAULT NULL,
  `modulocontable` bit(1) DEFAULT b'0',
  `impresionfichaderegistro` varchar(7) DEFAULT 'TIRILLA',
  `cuenta_inventario` int DEFAULT NULL,
  `alerta2` varchar(100) DEFAULT NULL,
  `desde` int DEFAULT NULL,
  `hasta` int DEFAULT NULL,
  `porcentajeservicio` int DEFAULT '10',
  `lineaimpuestos` varchar(4) DEFAULT '12',
  `fecharesolucion` date DEFAULT NULL,
  `fechainicioresolucion` date DEFAULT NULL,
  `fechafinresolucion` date DEFAULT NULL,
  `codigodepartamento` varchar(2) DEFAULT NULL,
  `codigomunicipio` varchar(5) DEFAULT NULL,
  `ciudad` varchar(25) DEFAULT NULL,
  `departamento` varchar(25) DEFAULT NULL,
  `id_tipo_persona` int DEFAULT '2',
  `tipo_identificacion` varchar(3) DEFAULT 'NIT',
  `endpoint_taxxa` varchar(200) DEFAULT 'https://demo1.taxxa.co/api.djson',
  `prefijonc` varchar(2) DEFAULT NULL,
  `token_taxxa` varchar(150) DEFAULT NULL,
  `prefijofe` varchar(5) DEFAULT NULL,
  `puedeusar` int DEFAULT '0',
  `descuento` double DEFAULT '0',
  `descuentodeldia` int DEFAULT '0',
  `alerta` varchar(150) DEFAULT NULL,
  `hastafe` int DEFAULT '0',
  `fechahastafe` date DEFAULT NULL,
  `satelitecallcenter` varchar(25) DEFAULT 'SELECCIONE',
  `tituloimpuestos` varchar(50) DEFAULT 'DETALLE IMPOCONSUMO',
  `nombreimpuesto` varchar(50) DEFAULT 'IMPOCONSUMO',
  `pv` varchar(25) DEFAULT 'texasburgers',
  `zonapostal` varchar(6) DEFAULT NULL,
  `prefijodocequivalente` varchar(5) DEFAULT NULL,
  `responsabilidades` varchar(10) DEFAULT NULL,
  `tipo_persona` varchar(7) DEFAULT 'company',
  `resdianfe` varchar(25) DEFAULT NULL,
  `desdefe` int DEFAULT '0',
  `fechafe` date DEFAULT NULL,
  `usuarioTaxxa` varchar(150) DEFAULT NULL,
  `claveTaxxa` varchar(15) DEFAULT NULL,
  `cuenta_devolucion` int DEFAULT NULL,
  `comosemideeltiempo` int DEFAULT '0',
  `minutosdescanso` int DEFAULT '0',
  `tiendaonline` bit(1) DEFAULT b'1',
  `cuenta_cxp` int DEFAULT NULL,
  `vence_firmadigital` date DEFAULT NULL,
  `ultimocobro` datetime DEFAULT NULL,
  `fechaproximopago` date DEFAULT NULL,
  `telegram_vendedor` varchar(25) DEFAULT NULL,
  `calculodeservicio` varchar(5) DEFAULT 'total',
  `textowsp` varchar(100) DEFAULT NULL,
  `wsp` varchar(100) DEFAULT NULL,
  `visitastv` int DEFAULT '0',
  `calculodescuento` varchar(5) DEFAULT 'total',
  `mostrarcategorias` varchar(2) DEFAULT 'SI',
  `calculodelcosto` varchar(5) DEFAULT 'total',
  `mostrarpventv` varchar(2) DEFAULT 'SI',
  `urlinstagram` varchar(200) DEFAULT NULL,
  `urlfacebook` varchar(200) DEFAULT NULL,
  `urltiktok` varchar(200) DEFAULT NULL,
  `titulocabecera` varchar(100) DEFAULT '',
  `piedepaginafe` varchar(500) DEFAULT NULL,
  `lunes` bit(1) DEFAULT b'1',
  `martes` bit(1) DEFAULT b'1',
  `miercoles` bit(1) DEFAULT b'1',
  `jueves` bit(1) DEFAULT b'1',
  `viernes` bit(1) DEFAULT b'1',
  `sabado` bit(1) DEFAULT b'1',
  `domingo` bit(1) DEFAULT b'1',
  `inilunes` time DEFAULT '08:00:00',
  `inimartes` time DEFAULT '08:00:00',
  `inimiercoles` time DEFAULT '08:00:00',
  `inijueves` time DEFAULT '08:00:00',
  `iniviernes` time DEFAULT '08:00:00',
  `inisabado` time DEFAULT '08:00:00',
  `inidomingo` time DEFAULT '08:00:00',
  `finlunes` time DEFAULT '23:00:00',
  `finmartes` time DEFAULT '23:00:00',
  `finmiercoles` time DEFAULT '23:00:00',
  `finjueves` time DEFAULT '23:00:00',
  `finviernes` time DEFAULT '23:00:00',
  `finsabado` time DEFAULT '23:00:00',
  `findomingo` time DEFAULT '23:00:00',
  `inilunes2` time DEFAULT '08:00:00',
  `finlunes2` time DEFAULT '08:00:00',
  `inimartes2` time DEFAULT '08:00:00',
  `finmartes2` time DEFAULT '08:00:00',
  `inimiercoles2` time DEFAULT '08:00:00',
  `finmiercoles2` time DEFAULT '08:00:00',
  `inijueves2` time DEFAULT '08:00:00',
  `finjueves2` time DEFAULT '08:00:00',
  `iniviernes2` time DEFAULT '08:00:00',
  `finviernes2` time DEFAULT '08:00:00',
  `inisabado2` time DEFAULT '08:00:00',
  `finsabado2` time DEFAULT '08:00:00',
  `inidomingo2` time DEFAULT '08:00:00',
  `findomingo2` time DEFAULT '08:00:00',
  `porcentajeips` int DEFAULT '0',
  `activarporcentajeips` int DEFAULT '0',
  `fechafinfe` date DEFAULT NULL,
  `desdeposelectronico` int DEFAULT '0',
  `hastaposelectronico` int DEFAULT '0',
  `fechaposelectronico` date DEFAULT NULL,
  `fechafinposelectronico` date DEFAULT NULL,
  `prefijope` varchar(4) DEFAULT NULL,
  `fechahastape` date DEFAULT NULL,
  `registromercantil` varchar(25) DEFAULT NULL,
  `digitodeverificacion` int DEFAULT NULL,
  `tokenapidian` varchar(100) DEFAULT NULL,
  `idsoftware` varchar(100) DEFAULT '',
  `parking_moto` int DEFAULT '3000',
  `firmadigital` text,
  `clavefirmadigital` varchar(50) DEFAULT NULL,
  `parking_carro` int DEFAULT '3000',
  `modulo` int DEFAULT '4',
  `SoftwareID` varchar(80) DEFAULT NULL,
  `clavefirma` varchar(20) DEFAULT NULL,
  `nombrecomercialcc` varchar(50) DEFAULT '',
  `porcentaje_ganancia_en_venta` decimal(5,2) DEFAULT NULL,
  `snotetop` varchar(150) DEFAULT NULL,
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `centrosdecostos`
--

INSERT INTO `centrosdecostos` (`id`, `refrescarcache`, `debepagarel`, `direccion`, `titulotirilla`, `pagoefectivo`, `cuenta_costodeventa`, `type_regime_id`, `ultimomespagado`, `telefono`, `nit`, `centrodecostos`, `fechacreacion`, `representante`, `idusuario`, `idresolucion`, `email`, `regimen`, `comentariotirilla`, `convertirpedidoenfactura`, `numero`, `prefijo`, `razonsocialcomanda`, `mostrariva`, `contacto`, `telefonocontacto`, `cuenta_ingreso`, `modulocontable`, `impresionfichaderegistro`, `cuenta_inventario`, `alerta2`, `desde`, `hasta`, `porcentajeservicio`, `lineaimpuestos`, `fecharesolucion`, `fechainicioresolucion`, `fechafinresolucion`, `codigodepartamento`, `codigomunicipio`, `ciudad`, `departamento`, `id_tipo_persona`, `tipo_identificacion`, `endpoint_taxxa`, `prefijonc`, `token_taxxa`, `prefijofe`, `puedeusar`, `descuento`, `descuentodeldia`, `alerta`, `hastafe`, `fechahastafe`, `satelitecallcenter`, `tituloimpuestos`, `nombreimpuesto`, `pv`, `zonapostal`, `prefijodocequivalente`, `responsabilidades`, `tipo_persona`, `resdianfe`, `desdefe`, `fechafe`, `usuarioTaxxa`, `claveTaxxa`, `cuenta_devolucion`, `comosemideeltiempo`, `minutosdescanso`, `tiendaonline`, `cuenta_cxp`, `vence_firmadigital`, `ultimocobro`, `fechaproximopago`, `telegram_vendedor`, `calculodeservicio`, `textowsp`, `wsp`, `visitastv`, `calculodescuento`, `mostrarcategorias`, `calculodelcosto`, `mostrarpventv`, `urlinstagram`, `urlfacebook`, `urltiktok`, `titulocabecera`, `piedepaginafe`, `lunes`, `martes`, `miercoles`, `jueves`, `viernes`, `sabado`, `domingo`, `inilunes`, `inimartes`, `inimiercoles`, `inijueves`, `iniviernes`, `inisabado`, `inidomingo`, `finlunes`, `finmartes`, `finmiercoles`, `finjueves`, `finviernes`, `finsabado`, `findomingo`, `inilunes2`, `finlunes2`, `inimartes2`, `finmartes2`, `inimiercoles2`, `finmiercoles2`, `inijueves2`, `finjueves2`, `iniviernes2`, `finviernes2`, `inisabado2`, `finsabado2`, `inidomingo2`, `findomingo2`, `porcentajeips`, `activarporcentajeips`, `fechafinfe`, `desdeposelectronico`, `hastaposelectronico`, `fechaposelectronico`, `fechafinposelectronico`, `prefijope`, `fechahastape`, `registromercantil`, `digitodeverificacion`, `tokenapidian`, `idsoftware`, `parking_moto`, `firmadigital`, `clavefirmadigital`, `parking_carro`, `modulo`, `SoftwareID`, `clavefirma`, `nombrecomercialcc`, `porcentaje_ganancia_en_venta`, `snotetop`) VALUES (2,2,32,'CL. LEGANES 4p 1A PARLA','FACTURA NORMAL',0,0,0,2,'625350237','21738919','M350 CONSTRUCCIONES, Y LOGISTICA INTERNACIONAL SL.','2020-12-24 19:28:24','',1,1,'','','',0,'18764070336005',NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'Tienes 10 facturas pendientes por tramitar a la Dian',NULL,NULL,10,'12',NULL,NULL,NULL,'','','Madrid','',2,'NIT','https://demo1.taxxa.co/api2.djson',NULL,'vf_test_vnlS1HvoBuUJBGM8o5fNMz6cXEXK5dG/d6o8NNhjD7w=',NULL,0,0,0,NULL,NULL,NULL,'SELECCIONE','','IVA','texasburgers','28981','DSE','R-99-PN','person',NULL,NULL,NULL,NULL,NULL,NULL,0,0,_binary '',NULL,NULL,NULL,NULL,NULL,'total',NULL,NULL,10,'total','SI','total','1',NULL,NULL,NULL,'',NULL,_binary '',_binary '',_binary '',_binary '',_binary '',_binary '',_binary '','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','23:00:00','23:00:00','23:00:00','23:00:00','23:00:00','23:00:00','23:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00',0,1,NULL,1,500,'2024-05-29','2026-05-29','PT1','2026-05-29',NULL,NULL,NULL,'',2500,NULL,NULL,3000,1,NULL,NULL,'',NULL,NULL),(3,2,32,'Cra 14  9-07','FACTURA DE VENTA',0,0,0,2,'','901402281','FERRE COSTOS LA 14','2020-12-24 19:28:24','JUAN ALARCON',1,1,'raulotalvaro@gmail.com','PERSONA NATURAL','GRACIAS POR SU COMPRA la propina es voluntaria',0,'18764070336005',NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'Tienes 10 facturas pendientes por tramitar a la Dian',NULL,NULL,10,'12',NULL,NULL,NULL,'66','66001','PEREIRA','RISARALDA',2,'NIT','https://demo1.taxxa.co/api2.djson',NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,'SELECCIONE','','IMPOCONSUMO','texasburgers','660001','DSE','O-49','person',NULL,NULL,NULL,NULL,NULL,NULL,0,0,_binary '',NULL,NULL,NULL,NULL,NULL,'total',NULL,NULL,5,'total','SI','total','1',NULL,NULL,NULL,'',NULL,_binary '',_binary '',_binary '',_binary '',_binary '',_binary '',_binary '','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','23:00:00','23:00:00','23:00:00','23:00:00','23:00:00','23:00:00','23:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00','08:00:00',0,1,NULL,1,500,'2024-05-29','2026-05-29','PT1','2026-05-29',NULL,NULL,NULL,'',2500,NULL,NULL,3000,1,NULL,NULL,'',NULL,NULL);

--
-- Table structure for table `cierres`
--

CREATE TABLE `cierres` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(50) DEFAULT '',
  `observaciones` varchar(200) DEFAULT NULL,
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `idz_2` (`idz`,`mediodepago`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  CONSTRAINT `cierres_ibfk_1` FOREIGN KEY (`idz`) REFERENCES `z` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cierres`
--


--
-- Table structure for table `cierresdecaja`
--

CREATE TABLE `cierresdecaja` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `m1` int NOT NULL DEFAULT '0',
  `m2` int NOT NULL DEFAULT '0',
  `m5` int NOT NULL DEFAULT '0',
  `m10` int NOT NULL DEFAULT '0',
  `m20` int NOT NULL DEFAULT '0',
  `m50` int NOT NULL DEFAULT '0',
  `m100` int NOT NULL DEFAULT '0',
  `m200` int NOT NULL DEFAULT '0',
  `m500` int NOT NULL DEFAULT '0',
  `m1000` int NOT NULL DEFAULT '0',
  `b5` int NOT NULL DEFAULT '0',
  `b20` int NOT NULL DEFAULT '0',
  `b10` int NOT NULL DEFAULT '0',
  `b50` int NOT NULL DEFAULT '0',
  `b100` int NOT NULL DEFAULT '0',
  `b1000` int NOT NULL DEFAULT '0',
  `b2000` int NOT NULL DEFAULT '0',
  `b5000` int NOT NULL DEFAULT '0',
  `b10000` int NOT NULL DEFAULT '0',
  `b20000` int NOT NULL DEFAULT '0',
  `b50000` int NOT NULL DEFAULT '0',
  `b100000` int NOT NULL DEFAULT '0',
  `tarjeta` int NOT NULL DEFAULT '0',
  `rappi` int NOT NULL DEFAULT '0',
  `uber` int NOT NULL DEFAULT '0',
  `ifood` int NOT NULL DEFAULT '0',
  `domi` int NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcaja` bigint unsigned NOT NULL,
  `declarado` double NOT NULL DEFAULT '0',
  `efectivoenz` double NOT NULL DEFAULT '0',
  `diferencia` double NOT NULL DEFAULT '0',
  `observaciones` varchar(200) DEFAULT NULL,
  `cc` bigint unsigned NOT NULL,
  `venta` double DEFAULT '0',
  `domicilio` double DEFAULT '0',
  `base` double DEFAULT '0',
  `gasto` double DEFAULT '0',
  `esperado` double DEFAULT '0',
  `sobrante` double DEFAULT '0',
  `faltante` double DEFAULT '0',
  `servicio` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `cc` (`cc`),
  CONSTRAINT `cierresdecaja_ibfk_2` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cierresdecaja`
--


--
-- Table structure for table `ciudades`
--

CREATE TABLE `ciudades` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ciudad` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `cc` bigint unsigned NOT NULL,
  `codigodepartamento` varchar(7) DEFAULT NULL,
  `departamento` varchar(25) DEFAULT NULL,
  `codigociudad` varchar(7) DEFAULT NULL,
  `codigopostal` varchar(7) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `idx_ciudad` (`ciudad`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ciudades`
--

INSERT INTO `ciudades` (`id`, `ciudad`, `cc`, `codigodepartamento`, `departamento`, `codigociudad`, `codigopostal`, `pv`) VALUES (20,'Madrid',2,'76','MADRID','76020','762040','KALDI'),(33,'Vilarodis Arteixo',2,NULL,NULL,NULL,NULL,'KALDI');

--
-- Table structure for table `clasesdevehiculo`
--

CREATE TABLE `clasesdevehiculo` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `clasedevehiculo` varchar(25) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `clasedevehiculo` (`clasedevehiculo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `clasesdevehiculo`
--


--
-- Table structure for table `clasificacionclientes`
--

CREATE TABLE `clasificacionclientes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `clasificacion` varchar(25) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clasificacionclientes`
--


--
-- Table structure for table `clientes`
--

CREATE TABLE `clientes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `primernombre` varchar(100) DEFAULT NULL,
  `barrio` varchar(25) DEFAULT NULL,
  `grupo` varchar(50) DEFAULT NULL,
  `codabajo` int DEFAULT NULL,
  `primerapellido` varchar(25) DEFAULT '',
  `tipodepersona` int DEFAULT '2',
  `cedula` varchar(15) DEFAULT '',
  `direccion` varchar(100) DEFAULT '',
  `fechadenacimiento` date DEFAULT NULL,
  `celular` varchar(15) DEFAULT '',
  `fechadecreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `ciudad` varchar(25) DEFAULT 'PEREIRA',
  `departamento` varchar(25) DEFAULT 'RISARALDA',
  `clave` text,
  `rol` varchar(25) NOT NULL DEFAULT 'CLIENTE',
  `email` varchar(100) DEFAULT '',
  `telefono` varchar(10) DEFAULT '',
  `edad` int NOT NULL DEFAULT '0',
  `genero` varchar(12) NOT NULL DEFAULT 'MASCULINO',
  `tipodedocumento` varchar(5) NOT NULL DEFAULT 'CC',
  `saldo` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `esproveedor` varchar(2) DEFAULT 'NO',
  `cuantoledebo` int DEFAULT '0',
  `bolsillo` int DEFAULT '0',
  `contacto` varchar(200) DEFAULT '',
  `telefonocontacto` varchar(25) DEFAULT '',
  `espersonajuridica` int NOT NULL DEFAULT '0',
  `enviarcorreo` int NOT NULL DEFAULT '0',
  `observacion` text,
  `numerocalle` varchar(4) DEFAULT NULL,
  `puntos` int NOT NULL DEFAULT '0',
  `esempleado` int NOT NULL DEFAULT '0',
  `idgrupo` int DEFAULT '0',
  `descatalogado` int DEFAULT '0',
  `eps` varchar(150) DEFAULT NULL,
  `afp` varchar(150) DEFAULT NULL,
  `codigociudad` varchar(7) DEFAULT '66001',
  `codigodepartamento` varchar(7) DEFAULT '66',
  `codigopostal` varchar(7) DEFAULT '660001',
  `segundonombre` varchar(25) DEFAULT NULL,
  `segundoapellido` varchar(25) DEFAULT NULL,
  `legalidad` int DEFAULT '0',
  `tipo_identificacion` varchar(5) DEFAULT 'CC',
  `razonsocial` varchar(200) DEFAULT NULL,
  `nombrecomercial` varchar(200) DEFAULT NULL,
  `dv` int DEFAULT NULL,
  `sfiscalresponsibilities` varchar(7) DEFAULT 'R-99-PN',
  `regimenfiscal` int DEFAULT '49',
  `expedicioncedula` date DEFAULT NULL,
  `marcavehiculo` varchar(25) DEFAULT NULL,
  `placavehiculo` varchar(6) DEFAULT NULL,
  `nacionalidad` varchar(25) DEFAULT NULL,
  `municipioexpedido` varchar(25) DEFAULT NULL,
  `departamentoexpedido` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'texasburgers',
  `sessionid` varchar(32) DEFAULT NULL,
  `huella` blob,
  `idcargo` int DEFAULT '0',
  `codigonomina` varchar(1) DEFAULT NULL,
  `codigozona` varchar(5) DEFAULT NULL,
  `areanomina` varchar(5) DEFAULT NULL,
  `idturno` int DEFAULT '0',
  `idturno2` int DEFAULT '0',
  `fechainicioturnoactual` date DEFAULT NULL,
  `fechafinturnoactual` date DEFAULT NULL,
  `fechainicioprooximoturno` date DEFAULT NULL,
  `fechaprooximoturno` date DEFAULT NULL,
  `iddomiciliarioyoyo` int DEFAULT NULL,
  `ciudadexpedicioncedula` varchar(25) DEFAULT NULL,
  `intentosfallidos` int DEFAULT '0',
  `ipultimoacceso` varchar(16) DEFAULT NULL,
  `codigoarea` varchar(5) DEFAULT NULL,
  `pagarextras` bit(1) DEFAULT b'0',
  `vencimientolicencia` date DEFAULT NULL,
  `tokendispositivo` varchar(250) DEFAULT NULL,
  `diacontacto1` int DEFAULT '0',
  `diacontacto2` int DEFAULT '0',
  `urlfotocliente` varchar(170) DEFAULT NULL,
  `sueldomensual` int DEFAULT '0',
  `auxtransportemensual` int DEFAULT '0',
  `clasificacion` varchar(25) DEFAULT 'CLIENTE FINAL',
  `instagram` varchar(50) DEFAULT NULL,
  `licenciaconduccion` varchar(25) DEFAULT NULL,
  `nombrereferencia1` varchar(150) DEFAULT NULL,
  `nombrereferencia2` varchar(150) DEFAULT NULL,
  `telefonoreferencia1` varchar(150) DEFAULT NULL,
  `telefonoreferencia2` varchar(150) DEFAULT NULL,
  `parentescorefererencia2` varchar(150) DEFAULT NULL,
  `parentesco` varchar(150) DEFAULT NULL,
  `parentescorefererencia1` varchar(150) DEFAULT NULL,
  `EDS` varchar(1) DEFAULT NULL,
  `comensalescliente` int DEFAULT '0',
  `idtelegram` varchar(25) DEFAULT NULL,
  `membrecia_hasta` date DEFAULT NULL,
  `idpadre2` int DEFAULT '0',
  `banco` varchar(25) DEFAULT NULL,
  `tipodecuenta` varchar(12) DEFAULT NULL,
  `cuentabancaria` varchar(15) DEFAULT NULL,
  `urlcedulacliente` varchar(100) DEFAULT NULL,
  `urlrutcliente` varchar(100) DEFAULT NULL,
  `urlcamaracliente` varchar(100) DEFAULT NULL,
  `fecha_expedicion` date DEFAULT NULL,
  `datosvalidados` int DEFAULT '0',
  `ultimavalidacion` date DEFAULT NULL,
  `cuentainscrita` int DEFAULT '0',
  `fechaactualizacionrut` date DEFAULT NULL,
  `direccion2` varchar(100) DEFAULT NULL,
  `direccion3` varchar(100) DEFAULT NULL,
  `identificadortv` varchar(30) DEFAULT NULL,
  `origencliente` varchar(10) DEFAULT 'CLIENTES',
  `aceptacondiciones` int DEFAULT '0',
  `fechaaceptacondiciones` date DEFAULT NULL,
  `HTTP_HOST` bit(1) DEFAULT b'0',
  `porcentaje_comision_enventa` int DEFAULT '0',
  `codigomasser` bit(1) DEFAULT b'0',
  `rutacualizado` varchar(2) DEFAULT 'NO',
  `tokenfirebase` varchar(500) DEFAULT NULL,
  `ocupacion` varchar(50) DEFAULT NULL,
  `origen_cliente` varchar(3) DEFAULT 'CON',
  `proximallamada` date DEFAULT NULL,
  `idpadre` int DEFAULT '0',
  `responsable` varchar(50) DEFAULT NULL,
  `campovalor_cliente` varchar(25) DEFAULT 'valordeventa',
  `aplicaretencion` int DEFAULT '0',
  `clientes_bloqueados` varchar(150) DEFAULT NULL,
  `puedehacerpedido` int DEFAULT '1',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `clientes`
--

INSERT INTO `clientes` (`id`, `primernombre`, `barrio`, `grupo`, `codabajo`, `primerapellido`, `tipodepersona`, `cedula`, `direccion`, `fechadenacimiento`, `celular`, `fechadecreacion`, `ciudad`, `departamento`, `clave`, `rol`, `email`, `telefono`, `edad`, `genero`, `tipodedocumento`, `saldo`, `cc`, `idusuario`, `esproveedor`, `cuantoledebo`, `bolsillo`, `contacto`, `telefonocontacto`, `espersonajuridica`, `enviarcorreo`, `observacion`, `numerocalle`, `puntos`, `esempleado`, `idgrupo`, `descatalogado`, `eps`, `afp`, `codigociudad`, `codigodepartamento`, `codigopostal`, `segundonombre`, `segundoapellido`, `legalidad`, `tipo_identificacion`, `razonsocial`, `nombrecomercial`, `dv`, `sfiscalresponsibilities`, `regimenfiscal`, `expedicioncedula`, `marcavehiculo`, `placavehiculo`, `nacionalidad`, `municipioexpedido`, `departamentoexpedido`, `pv`, `sessionid`, `huella`, `idcargo`, `codigonomina`, `codigozona`, `areanomina`, `idturno`, `idturno2`, `fechainicioturnoactual`, `fechafinturnoactual`, `fechainicioprooximoturno`, `fechaprooximoturno`, `iddomiciliarioyoyo`, `ciudadexpedicioncedula`, `intentosfallidos`, `ipultimoacceso`, `codigoarea`, `pagarextras`, `vencimientolicencia`, `tokendispositivo`, `diacontacto1`, `diacontacto2`, `urlfotocliente`, `sueldomensual`, `auxtransportemensual`, `clasificacion`, `instagram`, `licenciaconduccion`, `nombrereferencia1`, `nombrereferencia2`, `telefonoreferencia1`, `telefonoreferencia2`, `parentescorefererencia2`, `parentesco`, `parentescorefererencia1`, `EDS`, `comensalescliente`, `idtelegram`, `membrecia_hasta`, `idpadre2`, `banco`, `tipodecuenta`, `cuentabancaria`, `urlcedulacliente`, `urlrutcliente`, `urlcamaracliente`, `fecha_expedicion`, `datosvalidados`, `ultimavalidacion`, `cuentainscrita`, `fechaactualizacionrut`, `direccion2`, `direccion3`, `identificadortv`, `origencliente`, `aceptacondiciones`, `fechaaceptacondiciones`, `HTTP_HOST`, `porcentaje_comision_enventa`, `codigomasser`, `rutacualizado`, `tokenfirebase`, `ocupacion`, `origen_cliente`, `proximallamada`, `idpadre`, `responsable`, `campovalor_cliente`, `aplicaretencion`, `clientes_bloqueados`, `puedehacerpedido`) VALUES (1,'SYSTEM',NULL,NULL,NULL,'',0,'','MZ 1 c 13 Perla del sur','2006-06-11','3117326824','2017-12-20 22:34:05','Madrid','QUINDIO','$1$xgEatvV1$Hkc2Q63sQZbuLulxyZLwq1','ADMINISTRADOR',NULL,NULL,0,'MASCULINO','CC',0,1,1,'NO',0,39000,NULL,NULL,1,1,'','2',8,0,0,0,NULL,NULL,'66001','66','0',NULL,NULL,0,'NIT','',NULL,NULL,'',0,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers','nmsjp738ullio5ijd9sl33mv6h',NULL,0,NULL,'hola',NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'45.225.224.36',NULL,_binary '',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO','{\"endpoint\":\"https://fcm.googleapis.com/fcm/send/eAsB6Y2DCYo:APA91bGwkmLh-7leTHeQ-qZKTsdoQXjU81AlM7UsIU4OUKMpo5N3DGL5WvDCfwYvqrtVMARhsYtb4OwUR_h8ir4FHd_5GE3huYb4OeZPveVYDU5zmsy-xmBOK-oDdqDy7TamuPiw0Dfg\",\"expirationTime\":null,\"keys\":{\"p256dh\":\"BDtQc86TzaVhInLdpD4e9FkGkD6yrxLnAHCRnJdTBr-k6ij0mOYwrZF5-w25nnycRyp4osiJagrn1ImrJBvRxJ0\",\"auth\":\"nSWCJfxkgsyT93L2RD9lbA\"}}',NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(2,'SOFTWARE','',NULL,NULL,'',2,'','Cra 14  9-07','2050-12-12','','2022-12-06 06:58:59','Madrid','Madrid','12cQDaeLVCpC6','ADMINISTRADOR','raulotalvaro@gmail.com','',0,'MASCULINO','CC',0,2,1,'NO',0,0,'CONSUMIDOR FINAL','',0,0,NULL,'2',0,0,0,0,NULL,NULL,'66001','66','660001','','',0,'FN','','',0,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers','je7uiada6f0cu73rpp40lon3ak',NULL,0,NULL,'hola',NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'46.6.213.132',NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO','{\"endpoint\":\"https://fcm.googleapis.com/fcm/send/eAsB6Y2DCYo:APA91bGwkmLh-7leTHeQ-qZKTsdoQXjU81AlM7UsIU4OUKMpo5N3DGL5WvDCfwYvqrtVMARhsYtb4OwUR_h8ir4FHd_5GE3huYb4OeZPveVYDU5zmsy-xmBOK-oDdqDy7TamuPiw0Dfg\",\"expirationTime\":null,\"keys\":{\"p256dh\":\"BJjQEKoEZrdf3KrRjHeCsdV0BVY5Fgfb8vYupujA9vU1pK7RmfLMOUJqhW22bbgialZBBq03QC65GxnZD0g6wkk\",\"auth\":\"TYxpew9HkjKhK3DvLXYkOg\"}}',NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(3,'CONSUMIDOR FINAL',NULL,NULL,NULL,'',2,'222222222222','',NULL,'','2025-09-29 00:37:13','Madrid','Madrid',NULL,'CLIENTE','','',0,'MASCULINO','CC',0,3,1,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','660001',NULL,NULL,0,'CC',NULL,NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(4,'VENTA DIRECTA',NULL,NULL,NULL,'',2,'VENTADIRECTA','',NULL,'','2025-09-29 00:37:13','Madrid','Madrid',NULL,'CLIENTE','','',0,'MASCULINO','CC',0,2,1,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','660001',NULL,NULL,0,'CC',NULL,NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(5,'Kelly',NULL,NULL,NULL,'',2,'604017513','',NULL,'','2025-09-29 13:58:24','Madrid','Madrid','67X68oXrUB8EE','ADMINISTRADOR','','',0,'MASCULINO','CC',0,2,2,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','660001',NULL,NULL,0,'CC',NULL,NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers','11ci67qi8bm8dp3470pvsrkgq4',NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(6,'Sanyu',NULL,NULL,NULL,'',2,'B87651535','Calle calamina 17 MADRID',NULL,'','2025-09-29 15:29:16','Madrid','Madrid','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'el chapas','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','28021',NULL,NULL,0,'DNI','Sanyu',NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,'',NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(7,'',NULL,NULL,NULL,'',1,'B12738919','Cl Leganes 4p',NULL,'','2025-09-29 15:49:20','Madrid','Madrid','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,'1A',0,0,0,0,NULL,NULL,'66001','66','928981',NULL,NULL,0,'CIF','M350 Construcciones y logistica internacional sl','',NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(8,'BORJA','Fuenlabrada Madrid',NULL,NULL,'',1,'B87705638','',NULL,'','2025-09-29 15:57:43','Madrid','Madrid','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','28946','ROMERO',NULL,0,'CC','BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L',NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,'C/AV:LAREDO P.L EL ALAMO 41',NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(9,'REHABICONS OBRAS S.L','CASTELLLON DE LA PLANA',NULL,NULL,'',1,'B12883062','',NULL,'','2025-09-29 16:07:44','Madrid','Madrid','','CLIENTE','info@rehabicons.com','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','12002',NULL,NULL,0,'NIF','REHABICONS OBRAS S.L',NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,'CALLE APARICI GUIJARRO 18',NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(10,'Luis','Getafe',NULL,NULL,'Barbero',2,'70813204E','',NULL,'','2025-09-29 16:11:27','Madrid','Madrid','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','28906','Miguel','Aguado',0,'DNI',NULL,NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,'CALLE INSULA MALINDRANIA 6',NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(11,'Juan','COLMENERO',NULL,NULL,'Morientes',2,'76121865F','',NULL,'','2025-09-29 16:18:52','Madrid','Madrid','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','28044','Manuel',NULL,0,'DNI',NULL,NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,'CALLE MASCARAQUE 23 3A',NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(12,'prueba nif correcto',NULL,NULL,NULL,'',2,'B75777847','',NULL,'','2025-09-29 18:44:05','AL PEDRETE','MADRID','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'76020','76','762040',NULL,NULL,0,'NIF',NULL,NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(13,'Consultoria global agroaliment',NULL,NULL,NULL,'',1,'B01989979','',NULL,'','2025-09-29 18:44:27','Madrid','Madrid','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,NULL,0,0,0,0,NULL,NULL,'66001','66','',NULL,NULL,0,'NIF','Consultoria global agroalimentaria','',NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,'calle sagasta # 15 planta 2 puerta izq',NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(14,'El Chapas Avila S.l',NULL,NULL,NULL,'',1,'B06955694','Calle puerta de abajo',NULL,'','2025-10-15 18:56:53','MADRID','MADRID','','CLIENTE','chapasdeavila@gmail.com','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,'43',0,0,0,0,NULL,NULL,'76020','76','762040',NULL,NULL,0,'DNI','EL CHAPAS AVILA S.L',NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1),(15,'AURORA ELISA AFONSO NEVES',NULL,NULL,NULL,'',2,'71504823PD','C/ALCDE MANUEL PLATAS VARELA # 119 P:1D',NULL,'','2025-11-17 21:22:12','MADRID','MADRID','','CLIENTE','','',0,'MASCULINO','CC',0,2,5,'NO',0,0,'','',0,0,NULL,'1D',0,0,0,0,NULL,NULL,'76020','76','',NULL,NULL,0,'NIF','AURORA ELISA AFONSO NEVES',NULL,NULL,'R-99-PN',49,NULL,NULL,NULL,NULL,NULL,NULL,'texasburgers',NULL,NULL,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,_binary '\0',NULL,NULL,0,0,NULL,0,0,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,'CLIENTES',0,NULL,_binary '\0',0,_binary '\0','NO',NULL,NULL,'CON',NULL,0,NULL,'valordeventa',0,NULL,1);

--
-- Table structure for table `cocina_pedidos`
--

CREATE TABLE `cocina_pedidos` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idmesa` int NOT NULL,
  `idcliente` int NOT NULL,
  `idarticulo` int NOT NULL,
  `cantidad` decimal(10,2) NOT NULL,
  `valorunitario` decimal(10,2) NOT NULL,
  `descuento` decimal(10,2) DEFAULT '0.00',
  `valortotal` decimal(10,2) NOT NULL,
  `observaciones` text COLLATE utf8mb4_unicode_ci,
  `fechacreacion` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `despachado` tinyint(1) DEFAULT '0',
  `PrecuentaCallcenter` int DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `idx_mesa_despachado` (`idmesa`,`despachado`),
  KEY `idx_fechacreacion` (`fechacreacion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cocina_pedidos`
--


--
-- Table structure for table `colores`
--

CREATE TABLE `colores` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `color` varchar(25) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `color` (`color`)
) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `colores`
--

INSERT INTO `colores` (`id`, `color`) VALUES (1,'BLANCO CLARO'),(2,'BLANCO VERDE'),(3,'BLANCO SAL'),(4,'BLANCO'),(5,'SUPER BLANCO '),(6,'BLANCO PERLADO'),(7,'BLANCO MAHLER'),(8,'BLANCO LECHE'),(9,'BLANCO  PERLADO'),(10,'BLANCO NEVADA BICAPA'),(11,'VERDE BLANCO'),(12,'SUPER BLANCO 2'),(13,'VERDE'),(14,'BLANCO NEVADO'),(15,'BLANCO BRILLANTE'),(16,'BLANCO PURO'),(17,'BLANCO CRISTAL'),(18,'BLANCO NEVADO BICAPA'),(19,'BLANCO CERAMICA'),(20,'BLANCO CANDY'),(21,'BLANCO PLATA'),(22,'BLANCO CHERY'),(23,'BLANCO  CERAMICA'),(24,'BLANCO LUNA'),(25,'BLANCO OLIMPICO'),(26,'BLANCO ARTICA'),(27,'BLANCO TITANIO'),(28,'BLANCO GLACIAL'),(29,'BLANCO  ARTICA'),(30,'BLANCO VAINILLA'),(31,'PENDIENTE'),(32,'BLANCO ARTICO'),(33,NULL);

--
-- Table structure for table `componentesarticulos`
--

CREATE TABLE `componentesarticulos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `idinsumo` bigint unsigned NOT NULL,
  `cantidad` double NOT NULL DEFAULT '1',
  `cc` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `tipo` varchar(12) DEFAULT NULL,
  `idpaparapi` int DEFAULT '0',
  `valor` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  `idpapaifood` varchar(50) DEFAULT NULL,
  `PRECIOIVA` int DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idinsumo` (`idinsumo`),
  KEY `idarticulo` (`idarticulo`),
  CONSTRAINT `componentesarticulos_ibfk_1` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `componentesarticulos_ibfk_3` FOREIGN KEY (`idinsumo`) REFERENCES `articulos` (`id`),
  CONSTRAINT `componentesarticulos_ibfk_4` FOREIGN KEY (`idarticulo`) REFERENCES `articulos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `componentesarticulos`
--


--
-- Table structure for table `compras`
--

CREATE TABLE `compras` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `valorunitario` double NOT NULL DEFAULT '0',
  `idproveedor` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idmayor` bigint unsigned NOT NULL,
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double DEFAULT '0',
  `afectacaja` int NOT NULL DEFAULT '1',
  `iva` double NOT NULL DEFAULT '0',
  `idunidaddemedida` bigint unsigned NOT NULL,
  `valorgramo` double NOT NULL DEFAULT '0',
  `factor` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL,
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `nd` int DEFAULT '0',
  `compras` int DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  `tipodeiva` varchar(12) DEFAULT NULL,
  `descuento` double DEFAULT '0',
  `porcentajedescuento` double DEFAULT '0',
  `nombreimpuesto` varchar(3) DEFAULT 'IVA',
  `imei` varchar(50) DEFAULT NULL,
  `fechavencecompra` date DEFAULT NULL,
  `descripcionencompra` varchar(100) DEFAULT NULL,
  `ibua` int DEFAULT '0',
  `advalorem` int DEFAULT '0',
  `fletecompra` double DEFAULT '0',
  `proximocostomedio` double DEFAULT '0',
  `p_descuentosinfacturar` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idproveedor` (`idproveedor`),
  KEY `idmayor` (`idmayor`),
  KEY `idunidaddemedida` (`idunidaddemedida`),
  KEY `cc` (`cc`),
  KEY `idz` (`idz`),
  KEY `idusuario` (`idusuario`),
  CONSTRAINT `compras_ibfk_4` FOREIGN KEY (`idmayor`) REFERENCES `mayorescompras` (`id`),
  CONSTRAINT `compras_ibfk_6` FOREIGN KEY (`idz`) REFERENCES `z` (`id`),
  CONSTRAINT `compras_ibfk_7` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `compras`
--


--
-- Table structure for table `comprasauxiliar`
--

CREATE TABLE `comprasauxiliar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `valorunitario` double NOT NULL DEFAULT '0',
  `idproveedor` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idmayor` bigint unsigned NOT NULL,
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `idunidaddemedida` bigint unsigned NOT NULL,
  `valorgramo` double NOT NULL DEFAULT '0',
  `factor` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL,
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  `descuento` double DEFAULT '0',
  `porcentajedescuento` double DEFAULT '0',
  `tipodeiva` varchar(12) DEFAULT NULL,
  `nombreimpuesto` varchar(3) DEFAULT 'IVA',
  `imei` varchar(50) DEFAULT NULL,
  `fechavencecompra` date DEFAULT NULL,
  `ibua` int DEFAULT '0',
  `advalorem` int DEFAULT '0',
  `costomedioaux` double DEFAULT '0',
  `fleteaux` double DEFAULT '0',
  `proximocostomedio` double DEFAULT '0',
  `p_descuentosinfacturar` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `comprasauxiliar`
--

INSERT INTO `comprasauxiliar` (`id`, `idarticulo`, `fecha`, `cantidad`, `valortotal`, `valorunitario`, `idproveedor`, `fechacreacion`, `idmayor`, `porcentajeiva`, `base`, `iva`, `idunidaddemedida`, `valorgramo`, `factor`, `cc`, `idz`, `idusuario`, `idcaja`, `pv`, `descuento`, `porcentajedescuento`, `tipodeiva`, `nombreimpuesto`, `imei`, `fechavencecompra`, `ibua`, `advalorem`, `costomedioaux`, `fleteaux`, `proximocostomedio`, `p_descuentosinfacturar`) VALUES (19,76,'2025-04-05 10:05:03',1,0,3,2300,'2025-04-05 10:05:03',15,19,0,0,1,0,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(20,76,'2025-04-05 10:08:01',1,0,3,2300,'2025-04-05 10:08:01',15,19,0,0,1,0,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(21,127,'2025-04-05 10:08:10',1,0,3,2300,'2025-04-05 10:08:10',15,19,0,0,1,0,1,0,1,2,1,'KALDI',0.09,3,'SIN INCLUIR','IVA','','0000-00-00',0,0,0,0,0,0),(22,76,'2025-04-05 10:09:06',1,0,2,2300,'2025-04-05 10:09:06',15,19,0,0,1,0,1,0,1,2,1,'KALDI',0.06,3,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(23,76,'2025-04-05 10:09:11',1,0,2,2300,'2025-04-05 10:09:11',15,19,0,0,1,0,1,0,1,2,1,'KALDI',0.06,3,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(24,76,'2025-04-05 10:10:18',1,0.97,1,2300,'2025-04-05 10:10:18',15,19,0.8151260504201681,0.15487394957983194,1,0.97,1,0,1,2,1,'KALDI',0.03,3,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,98.6229071804703,0),(25,1786,'2025-04-07 05:27:33',2,159224.793,79612.3965,325,'2025-04-07 05:27:33',3730,5,151642.66,7582.133000000001,1,79612.3965,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(26,2153,'2025-04-07 05:27:33',1,331094.1795,331094.1795,325,'2025-04-07 05:27:33',3730,5,315327.79000000004,15766.389500000001,1,331094.1795,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(27,1798,'2025-04-07 05:27:33',2,228688.572,114344.286,325,'2025-04-07 05:27:33',3730,5,217798.63999999998,10889.931999999999,1,114344.286,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(28,2859,'2025-04-07 05:27:33',3,339673.69800000003,113224.566,325,'2025-04-07 05:27:33',3730,5,323498.76,16174.938,1,113224.566,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(29,2716,'2025-04-07 05:27:33',6,160164,26694,325,'2025-04-07 05:27:33',3730,0,160164,0,1,26694,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(30,985,'2025-04-07 05:27:33',6,484123.19999999995,80687.2,325,'2025-04-07 05:27:33',3730,0,484123.19999999995,0,1,80687.2,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(31,2582,'2025-04-07 05:27:33',2,88823.53,44411.765,325,'2025-04-07 05:27:33',3730,0,88823.53,0,1,44411.765,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(32,2516,'2025-04-07 05:27:33',1,72166.5,72166.5,325,'2025-04-07 05:27:33',3730,5,68730,3436.5,1,72166.5,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(33,2334,'2025-04-07 05:27:33',6,349411.74,58235.29,325,'2025-04-07 05:27:33',3730,0,349411.74,0,1,58235.29,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(34,982,'2025-04-07 05:27:33',8,569384.64,71173.08,325,'2025-04-07 05:27:33',3730,0,569384.64,0,1,71173.08,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(35,2335,'2025-04-07 05:27:33',1,91344.54,91344.54,325,'2025-04-07 05:27:33',3730,0,91344.54,0,1,91344.54,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(36,2855,'2025-04-07 05:27:33',1,55543.22,55543.22,325,'2025-04-07 05:27:33',3730,0,55543.22,0,1,55543.22,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(37,1641,'2025-04-07 05:27:33',10,438582.39999999997,43858.24,325,'2025-04-07 05:27:33',3730,0,438582.39999999997,0,1,43858.24,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(38,2983,'2025-04-07 05:27:33',2,593533.332,296766.666,325,'2025-04-07 05:27:33',3730,5,565269.8400000001,28263.492000000002,1,296766.666,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(39,978,'2025-04-07 05:27:33',6,181821.54,30303.59,325,'2025-04-07 05:27:33',3730,0,181821.54,0,1,30303.59,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(40,2524,'2025-04-07 05:27:33',5,230630,46126,325,'2025-04-07 05:27:33',3730,0,230630,0,1,46126,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(41,1786,'2025-04-07 05:27:38',2,159224.793,79612.3965,325,'2025-04-07 05:27:38',3730,5,151642.66,7582.133000000001,1,79612.3965,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(42,2153,'2025-04-07 05:27:38',1,331094.1795,331094.1795,325,'2025-04-07 05:27:38',3730,5,315327.79000000004,15766.389500000001,1,331094.1795,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(43,1798,'2025-04-07 05:27:38',2,228688.572,114344.286,325,'2025-04-07 05:27:38',3730,5,217798.63999999998,10889.931999999999,1,114344.286,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(44,2859,'2025-04-07 05:27:38',3,339673.69800000003,113224.566,325,'2025-04-07 05:27:38',3730,5,323498.76,16174.938,1,113224.566,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(45,2716,'2025-04-07 05:27:38',6,160164,26694,325,'2025-04-07 05:27:38',3730,0,160164,0,1,26694,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(46,985,'2025-04-07 05:27:38',6,484123.19999999995,80687.2,325,'2025-04-07 05:27:38',3730,0,484123.19999999995,0,1,80687.2,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(47,2582,'2025-04-07 05:27:38',2,88823.53,44411.765,325,'2025-04-07 05:27:38',3730,0,88823.53,0,1,44411.765,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(48,2516,'2025-04-07 05:27:38',1,72166.5,72166.5,325,'2025-04-07 05:27:38',3730,5,68730,3436.5,1,72166.5,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(49,2334,'2025-04-07 05:27:38',6,349411.74,58235.29,325,'2025-04-07 05:27:38',3730,0,349411.74,0,1,58235.29,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(50,982,'2025-04-07 05:27:38',8,569384.64,71173.08,325,'2025-04-07 05:27:38',3730,0,569384.64,0,1,71173.08,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(51,2335,'2025-04-07 05:27:38',1,91344.54,91344.54,325,'2025-04-07 05:27:38',3730,0,91344.54,0,1,91344.54,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(52,2855,'2025-04-07 05:27:38',1,55543.22,55543.22,325,'2025-04-07 05:27:38',3730,0,55543.22,0,1,55543.22,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(53,1641,'2025-04-07 05:27:38',10,438582.39999999997,43858.24,325,'2025-04-07 05:27:38',3730,0,438582.39999999997,0,1,43858.24,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(54,2983,'2025-04-07 05:27:38',2,593533.332,296766.666,325,'2025-04-07 05:27:38',3730,5,565269.8400000001,28263.492000000002,1,296766.666,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(55,978,'2025-04-07 05:27:38',6,181821.54,30303.59,325,'2025-04-07 05:27:38',3730,0,181821.54,0,1,30303.59,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(56,2524,'2025-04-07 05:27:38',5,230630,46126,325,'2025-04-07 05:27:38',3730,0,230630,0,1,46126,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(57,1786,'2025-04-07 05:27:50',2,159224.793,79612.3965,325,'2025-04-07 05:27:50',3730,5,151642.66,7582.133000000001,1,79612.3965,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(58,2153,'2025-04-07 05:27:50',1,331094.1795,331094.1795,325,'2025-04-07 05:27:50',3730,5,315327.79000000004,15766.389500000001,1,331094.1795,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(59,1798,'2025-04-07 05:27:50',2,228688.572,114344.286,325,'2025-04-07 05:27:50',3730,5,217798.63999999998,10889.931999999999,1,114344.286,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(60,2859,'2025-04-07 05:27:50',3,339673.69800000003,113224.566,325,'2025-04-07 05:27:50',3730,5,323498.76,16174.938,1,113224.566,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(61,2716,'2025-04-07 05:27:50',6,160164,26694,325,'2025-04-07 05:27:50',3730,0,160164,0,1,26694,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(62,985,'2025-04-07 05:27:50',6,484123.19999999995,80687.2,325,'2025-04-07 05:27:50',3730,0,484123.19999999995,0,1,80687.2,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(63,2582,'2025-04-07 05:27:50',2,88823.53,44411.765,325,'2025-04-07 05:27:50',3730,0,88823.53,0,1,44411.765,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(64,2516,'2025-04-07 05:27:50',1,72166.5,72166.5,325,'2025-04-07 05:27:50',3730,5,68730,3436.5,1,72166.5,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(65,2334,'2025-04-07 05:27:50',6,349411.74,58235.29,325,'2025-04-07 05:27:50',3730,0,349411.74,0,1,58235.29,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(66,982,'2025-04-07 05:27:50',8,569384.64,71173.08,325,'2025-04-07 05:27:50',3730,0,569384.64,0,1,71173.08,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(67,2335,'2025-04-07 05:27:50',1,91344.54,91344.54,325,'2025-04-07 05:27:50',3730,0,91344.54,0,1,91344.54,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(68,2855,'2025-04-07 05:27:50',1,55543.22,55543.22,325,'2025-04-07 05:27:50',3730,0,55543.22,0,1,55543.22,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(69,1641,'2025-04-07 05:27:50',10,438582.39999999997,43858.24,325,'2025-04-07 05:27:50',3730,0,438582.39999999997,0,1,43858.24,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(70,2983,'2025-04-07 05:27:50',2,593533.332,296766.666,325,'2025-04-07 05:27:50',3730,5,565269.8400000001,28263.492000000002,1,296766.666,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(71,978,'2025-04-07 05:27:50',6,181821.54,30303.59,325,'2025-04-07 05:27:50',3730,0,181821.54,0,1,30303.59,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(72,2524,'2025-04-07 05:27:50',5,230630,46126,325,'2025-04-07 05:27:50',3730,0,230630,0,1,46126,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(73,1786,'2025-04-07 05:28:17',2,159224.793,79612.3965,325,'2025-04-07 05:28:17',3730,5,151642.66,7582.133000000001,1,79612.3965,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(74,2153,'2025-04-07 05:28:17',1,331094.1795,331094.1795,325,'2025-04-07 05:28:17',3730,5,315327.79000000004,15766.389500000001,1,331094.1795,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(75,1798,'2025-04-07 05:28:17',2,228688.572,114344.286,325,'2025-04-07 05:28:17',3730,5,217798.63999999998,10889.931999999999,1,114344.286,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(76,2859,'2025-04-07 05:28:17',3,339673.69800000003,113224.566,325,'2025-04-07 05:28:17',3730,5,323498.76,16174.938,1,113224.566,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(77,2716,'2025-04-07 05:28:17',6,160164,26694,325,'2025-04-07 05:28:17',3730,0,160164,0,1,26694,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(78,985,'2025-04-07 05:28:17',6,484123.19999999995,80687.2,325,'2025-04-07 05:28:17',3730,0,484123.19999999995,0,1,80687.2,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(79,2582,'2025-04-07 05:28:17',2,88823.53,44411.765,325,'2025-04-07 05:28:17',3730,0,88823.53,0,1,44411.765,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(80,2516,'2025-04-07 05:28:17',1,72166.5,72166.5,325,'2025-04-07 05:28:17',3730,5,68730,3436.5,1,72166.5,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(81,2334,'2025-04-07 05:28:17',6,349411.74,58235.29,325,'2025-04-07 05:28:17',3730,0,349411.74,0,1,58235.29,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(82,982,'2025-04-07 05:28:17',8,569384.64,71173.08,325,'2025-04-07 05:28:17',3730,0,569384.64,0,1,71173.08,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(83,2335,'2025-04-07 05:28:17',1,91344.54,91344.54,325,'2025-04-07 05:28:17',3730,0,91344.54,0,1,91344.54,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(84,2855,'2025-04-07 05:28:17',1,55543.22,55543.22,325,'2025-04-07 05:28:17',3730,0,55543.22,0,1,55543.22,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(85,1641,'2025-04-07 05:28:17',10,438582.39999999997,43858.24,325,'2025-04-07 05:28:17',3730,0,438582.39999999997,0,1,43858.24,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(86,2983,'2025-04-07 05:28:17',2,593533.332,296766.666,325,'2025-04-07 05:28:17',3730,5,565269.8400000001,28263.492000000002,1,296766.666,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(87,978,'2025-04-07 05:28:17',6,181821.54,30303.59,325,'2025-04-07 05:28:17',3730,0,181821.54,0,1,30303.59,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(88,2524,'2025-04-07 05:28:17',5,230630,46126,325,'2025-04-07 05:28:17',3730,0,230630,0,1,46126,1,0,1,2,1,'KALDI',0,0,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,0,0),(89,76,'2025-05-05 01:43:32',74,81066.852,1231,2300,'2025-05-04 23:59:59',17,22,66448.2393442623,14618.612655737705,1,1098.498,1,0,1,2,1,'KALDI',135.502,11.007473598700244,'INCLUIDO','IVA','','0000-00-00',1,2,0,0,74.92060092165899,0),(90,154,'2025-05-05 01:43:40',1,2296.14,2343,2300,'2025-05-04 23:59:59',17,19,1929.5294117647059,366.61058823529413,1,2296.14,1,0,1,2,1,'KALDI',46.86,2,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,55689.80699999999,0),(91,127,'2025-05-05 01:43:48',4,16018.923200000001,3434,2300,'2025-05-04 23:59:59',17,19,13461.28,2557.6432,1,4004.7308000000003,1,0,1,2,1,'KALDI',68.68,2,'SIN INCLUIR','IVA','','0000-00-00',0,0,0,0,8246.554358271236,0),(92,143,'2025-05-05 02:32:08',2,842625.42,434343,2300,'2025-05-04 23:59:59',17,0,842625.42,0,1,421312.71,1,0,1,2,1,'KALDI',13030.29,3,'INCLUIDO','IVA','','0000-00-00',0,0,0,0,10117.390638722554,0);

--
-- Table structure for table `comprobantesdenomina`
--

CREATE TABLE `comprobantesdenomina` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint unsigned NOT NULL,
  `idcliente` bigint unsigned NOT NULL,
  `consecutivo` int DEFAULT '0',
  `calculadodesde` date DEFAULT NULL,
  `calculadohasta` date DEFAULT NULL,
  `diaslaborados` int DEFAULT '0',
  `ingreso` int DEFAULT '0',
  `deducciones` int DEFAULT '0',
  `valorapgar` int DEFAULT '0',
  `idz` int DEFAULT '0',
  `salario` int DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT NULL,
  `afectacaja` int DEFAULT '0',
  `desde` date DEFAULT NULL,
  `hasta` date DEFAULT NULL,
  `cedula` varchar(15) DEFAULT NULL,
  `nombre` varchar(150) DEFAULT NULL,
  `comisiones` int DEFAULT '0',
  `transporte` int DEFAULT '0',
  `pension` int DEFAULT '0',
  `salud` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `idcliente` (`idcliente`),
  CONSTRAINT `comprobantesdenomina_ibfk_2` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`),
  CONSTRAINT `comprobantesdenomina_ibfk_3` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comprobantesdenomina`
--


--
-- Table structure for table `conceptosgastos`
--

CREATE TABLE `conceptosgastos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `concepto` varchar(200) DEFAULT NULL,
  `cc` bigint unsigned NOT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `conceptosgastos`
--

INSERT INTO `conceptosgastos` (`id`, `concepto`, `cc`, `pv`) VALUES (13,'ARRENDAMIENTO',1,'KALDI'),(14,'IMPREVISTOS',1,'KALDI');

--
-- Table structure for table `configuracion`
--

CREATE TABLE `configuracion` (
  `id` int NOT NULL AUTO_INCREMENT,
  `clave` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `valor` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `descripcion` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `clave` (`clave`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `configuracion`
--

INSERT INTO `configuracion` (`id`, `clave`, `valor`, `descripcion`) VALUES (9,'Ajustes de inventario','Hay mas unidades en el inventario físico',NULL),(11,'Proveedor de facturación electrónica','verifacti',NULL),(12,'¿Como se calcula el impuesto en ventas a terceros?','Valor mas iva',NULL),(13,'Formato de impresión','carta_completo_html',NULL),(14,'qr_login','','Permite poner un código QR en la pantalla de login'),(15,'Tipo de impresion abonos cartera','Carta','Carta, Media carta, Tirilla'),(16,'Imprimir comentario tirilla abonos cartera','Si','Si, No'),(17,'Fecha para guardar ventas a la madrugada','Fecha real','<ul><li>Fecha real</li><li>Fecha del turno actual</li></ul>'),(18,'Puede repetir celular en el callcenter','Si','<ul><li>Si</li><li>No</li></ul>'),(19,'Tipo de impresion para stickers de articulos v1','QR','<ul><li>BARCODE</li><li>QR</li></ul>');

--
-- Table structure for table `configuracion_incrementos`
--

CREATE TABLE `configuracion_incrementos` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idseccion` int NOT NULL,
  `base_calculo` enum('ultimocoste','valordeventatiendas') NOT NULL DEFAULT 'ultimocoste',
  `incremento_valordeventa` decimal(10,2) NOT NULL DEFAULT '15.00',
  `incremento_valordistribuidor` decimal(10,2) NOT NULL DEFAULT '12.00',
  `incremento_valordeventatiendas` decimal(10,2) NOT NULL DEFAULT '10.00',
  `incremento_vrventapublico` decimal(10,2) NOT NULL DEFAULT '40.00',
  `incremento_valortiendavirtual` decimal(10,2) NOT NULL DEFAULT '15.00',
  `redondeo` int NOT NULL DEFAULT '50',
  `activo` tinyint(1) NOT NULL DEFAULT '1',
  `fechacreacion` datetime NOT NULL,
  `idusuario` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idseccion` (`idseccion`),
  KEY `activo` (`activo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `configuracion_incrementos`
--


--
-- Table structure for table `configuracionshopify`
--

CREATE TABLE `configuracionshopify` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `endpoint1` varchar(200) DEFAULT NULL,
  `endpoint2` varchar(200) DEFAULT NULL,
  `audience` varchar(100) DEFAULT NULL,
  `token1` varchar(200) DEFAULT NULL,
  `token2` varchar(200) DEFAULT NULL,
  `urltoken` varchar(100) DEFAULT NULL,
  `urlmenu` varchar(200) DEFAULT NULL,
  `storeId` varchar(50) NOT NULL,
  `urlactivaciones` varchar(200) DEFAULT NULL,
  `taken` varchar(150) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `configuracionshopify`
--


--
-- Table structure for table `configuraciontirilla`
--

CREATE TABLE `configuraciontirilla` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fuentemodificadorescomanda` int DEFAULT '12',
  `fuentelineascomanda` int DEFAULT '12',
  `COD_SATELITE` varchar(50) DEFAULT NULL,
  `user` varchar(200) DEFAULT NULL,
  `fuentedatosempresa` int DEFAULT '0',
  `fuentetitulo` int DEFAULT '0',
  `bdcontroldelcliente` varchar(300) DEFAULT NULL,
  `userbdcontroldelcliente` varchar(50) DEFAULT NULL,
  `quienrecibeelpedido` varchar(50) DEFAULT NULL,
  `dominiodelcliente` varchar(500) DEFAULT NULL COMMENT 'En este campo se buscan los archivos para devolver la configuración de la tirilla y los datos que se eimprimen',
  `rutaquehayparaimprimir` varchar(50) DEFAULT NULL,
  `master` varchar(200) DEFAULT NULL,
  `rutaborrarfactura` varchar(200) DEFAULT NULL,
  `masterparasubirdatosdeinformes` varchar(200) DEFAULT NULL,
  `bdparasubirdatosdeinformes` varchar(50) DEFAULT NULL,
  `tabladondeseeejecutaelprocedimiento` varchar(50) DEFAULT 'tabladondeseeejecutaelprocedimiento',
  `tamanopapel` int NOT NULL DEFAULT '1',
  `fuenteunocomanda` int NOT NULL DEFAULT '12',
  `cantidadletrasunocomanda` int NOT NULL DEFAULT '20',
  `fuentedoscomanda` int NOT NULL DEFAULT '12',
  `cantidadletrasdoscomanda` int NOT NULL DEFAULT '20',
  `fuentetrescomanda` int NOT NULL DEFAULT '10',
  `cantidadletrastrescomanda` int NOT NULL DEFAULT '10',
  `fuenteunofactura` int NOT NULL DEFAULT '12',
  `cantidadletrasunofactura` int NOT NULL DEFAULT '20',
  `fuentedosfactura` int NOT NULL DEFAULT '12',
  `cantidadletrasdosfactura` int NOT NULL DEFAULT '20',
  `fuentetresfactura` int NOT NULL DEFAULT '10',
  `cantidadletrastresfactura` int NOT NULL DEFAULT '10',
  `alergenos` int NOT NULL DEFAULT '0',
  `imprimir` int NOT NULL DEFAULT '1',
  `facturadeconfirmacion` int NOT NULL DEFAULT '0',
  `campoparaelconsecutivo` varchar(15) NOT NULL DEFAULT 'pendiente',
  `tipotirillafactura` varchar(4) DEFAULT 'pdf',
  `formatofechasistema` varchar(10) NOT NULL DEFAULT 'YYYY-MM-dd' COMMENT 'Para integracion, se refiere al idioma del sistema operativo donde corre el programa, sirve para arreglar los insert que tienen fechas que no ingresan en sql server',
  `lineaimpuestos` varchar(20) NOT NULL DEFAULT 'pendiente',
  `TIPOIVAPORDEFECTO` double NOT NULL DEFAULT '0' COMMENT 'Cuando lineaimpuestos es cero se utiliza este codigo para calcular el porcentaje del iva en la columna tipoiva de tiquetslin',
  `codigoenlace` varchar(1) NOT NULL DEFAULT '5',
  `titulotirilla` varchar(100) DEFAULT NULL,
  `nombreimpresora` varchar(100) DEFAULT NULL,
  `codalmacen` varchar(5) DEFAULT NULL,
  `codalmacenfapster` varchar(5) NOT NULL DEFAULT '7' COMMENT '(Integracion) Es el cod que se envía a fapster en la tabla pendientes de dbotaxml en la columna codalmacen ',
  `pagoepayco` int NOT NULL DEFAULT '0',
  `pagodatafono` int DEFAULT '0',
  `pagoqr` int NOT NULL DEFAULT '0',
  `pagoefectivo` int NOT NULL DEFAULT '0',
  `sizetextomediana` int NOT NULL DEFAULT '12',
  `sizetextomediano` int NOT NULL DEFAULT '12',
  `sizelineascomanda` int NOT NULL DEFAULT '12',
  `sizetitulo` int DEFAULT '12',
  `sizetextopequeno` int NOT NULL DEFAULT '12',
  `maxletrasencomanda` int NOT NULL DEFAULT '12',
  `maxletrasenfactura` int NOT NULL DEFAULT '30',
  `bd` varchar(50) DEFAULT NULL,
  `serie` varchar(5) DEFAULT NULL,
  `caja` int NOT NULL DEFAULT '1' COMMENT 'Valor fijo para tiquetscab y remtrasacciones',
  `serieresolucion` varchar(50) DEFAULT NULL,
  `fo` int NOT NULL DEFAULT '0',
  `n` varchar(1) NOT NULL DEFAULT 'B',
  `terminal` varchar(50) DEFAULT NULL,
  `seriedelequipo` varchar(50) DEFAULT NULL,
  `host` varchar(120) NOT NULL DEFAULT 'host',
  `regimen` varchar(50) DEFAULT NULL,
  `comentariotirilla` varchar(1200) DEFAULT NULL,
  `observacionalpie` varchar(500) DEFAULT '.' COMMENT 'Se utiliza para poner el texto sobre el destino de la propina, solo se usa en impresión automática',
  `email` varchar(120) DEFAULT NULL,
  `hasta` int DEFAULT NULL,
  `desde` int DEFAULT NULL,
  `fechainicioresolucion` varchar(20) DEFAULT NULL,
  `resolucioncontrol` varchar(20) DEFAULT NULL,
  `nit` varchar(20) DEFAULT NULL,
  `telefono` varchar(100) DEFAULT NULL,
  `subtitulo` varchar(100) DEFAULT NULL,
  `direccion` varchar(100) DEFAULT NULL,
  `razonsocial` varchar(100) DEFAULT NULL,
  `razonsocialcomanda` varchar(100) DEFAULT NULL,
  `numfacturaescero` int NOT NULL DEFAULT '0',
  `seimprimrecomandaconlafactura` int NOT NULL DEFAULT '1',
  `direccionparapush` text COMMENT 'Esta dirección se utiliza para enviar notificaciones al computador del cliente cuando el java se desconecta',
  `direccionservidorqueescucha` varchar(50) DEFAULT NULL,
  `tabla` varchar(25) DEFAULT NULL COMMENT 'Este es el nombre de la tabla donde se guardan las facturas de pendientes por imprimir',
  `imprimirfacturadoble` int NOT NULL DEFAULT '0',
  `fuentelineasfactura` int DEFAULT '14',
  `imprimirprecuentaconservicio` int NOT NULL DEFAULT '1' COMMENT '1 para que la precuenta imprima con la propina, 0 para que no lo haga',
  `pv` varchar(25) DEFAULT NULL,
  `fuentetitulop` int DEFAULT '12',
  `fuentedatosempresap` int DEFAULT '12',
  `fuentelineascomandap` int DEFAULT '12',
  `fuentemodificadorescomandap` int DEFAULT '12',
  `fuentetotalesp` int DEFAULT '16',
  `fuentehoracomanda` int DEFAULT '12',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `COD_SATELITE` (`COD_SATELITE`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `configuraciontirilla`
--

INSERT INTO `configuraciontirilla` (`id`, `fuentemodificadorescomanda`, `fuentelineascomanda`, `COD_SATELITE`, `user`, `fuentedatosempresa`, `fuentetitulo`, `bdcontroldelcliente`, `userbdcontroldelcliente`, `quienrecibeelpedido`, `dominiodelcliente`, `rutaquehayparaimprimir`, `master`, `rutaborrarfactura`, `masterparasubirdatosdeinformes`, `bdparasubirdatosdeinformes`, `tabladondeseeejecutaelprocedimiento`, `tamanopapel`, `fuenteunocomanda`, `cantidadletrasunocomanda`, `fuentedoscomanda`, `cantidadletrasdoscomanda`, `fuentetrescomanda`, `cantidadletrastrescomanda`, `fuenteunofactura`, `cantidadletrasunofactura`, `fuentedosfactura`, `cantidadletrasdosfactura`, `fuentetresfactura`, `cantidadletrastresfactura`, `alergenos`, `imprimir`, `facturadeconfirmacion`, `campoparaelconsecutivo`, `tipotirillafactura`, `formatofechasistema`, `lineaimpuestos`, `TIPOIVAPORDEFECTO`, `codigoenlace`, `titulotirilla`, `nombreimpresora`, `codalmacen`, `codalmacenfapster`, `pagoepayco`, `pagodatafono`, `pagoqr`, `pagoefectivo`, `sizetextomediana`, `sizetextomediano`, `sizelineascomanda`, `sizetitulo`, `sizetextopequeno`, `maxletrasencomanda`, `maxletrasenfactura`, `bd`, `serie`, `caja`, `serieresolucion`, `fo`, `n`, `terminal`, `seriedelequipo`, `host`, `regimen`, `comentariotirilla`, `observacionalpie`, `email`, `hasta`, `desde`, `fechainicioresolucion`, `resolucioncontrol`, `nit`, `telefono`, `subtitulo`, `direccion`, `razonsocial`, `razonsocialcomanda`, `numfacturaescero`, `seimprimrecomandaconlafactura`, `direccionparapush`, `direccionservidorqueescucha`, `tabla`, `imprimirfacturadoble`, `fuentelineasfactura`, `imprimirprecuentaconservicio`, `pv`, `fuentetitulop`, `fuentedatosempresap`, `fuentelineascomandap`, `fuentemodificadorescomandap`, `fuentetotalesp`, `fuentehoracomanda`) VALUES (2,12,12,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'tabladondeseeejecutaelprocedimiento',80,12,20,12,20,10,10,12,20,12,20,10,10,0,1,0,'pendiente','html','YYYY-MM-dd','pendiente',0,'5',NULL,NULL,NULL,'7',0,0,0,0,12,12,12,12,12,12,30,NULL,NULL,1,NULL,0,'B',NULL,NULL,'host',NULL,NULL,'.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,NULL,NULL,NULL,0,14,1,NULL,12,12,12,12,16,12);

--
-- Table structure for table `consecutivos`
--

CREATE TABLE `consecutivos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `consecutivo` bigint NOT NULL DEFAULT '1',
  `cc` bigint unsigned NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `tipo` varchar(50) NOT NULL DEFAULT 'VENTAS',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `consecutivos`
--

INSERT INTO `consecutivos` (`id`, `consecutivo`, `cc`, `fechacreacion`, `tipo`, `idusuario`, `pv`) VALUES (2,233,2,'2020-12-24 19:28:24','VENTAS',1,'KALDI'),(3,980,1,'2020-12-24 19:28:24','Z',1,'KALDI'),(4,1,2,'2020-12-24 19:28:24','Z',1,'KALDI'),(5,181,1,'2020-12-24 19:28:24','ABONOS',1,'KALDI'),(6,1,2,'2020-12-24 19:28:24','ABONOS',1,'KALDI'),(7,1,1,'2020-12-24 19:28:24','NOTASCREDITO',1,'KALDI'),(8,1,2,'2020-12-24 19:28:24','NOTASCREDITO',1,'KALDI'),(9,1,1,'2020-12-24 19:28:24','NOTASDEBITO',1,'KALDI'),(10,1,2,'2020-12-24 19:28:24','NOTASDEBITO',1,'KALDI'),(11,1,1,'2020-12-24 19:28:24','CORTESIAS',1,'KALDI'),(12,1,2,'2020-12-24 19:28:24','CORTESIAS',1,'KALDI'),(13,2,1,'2020-12-24 19:28:24','COMPROBANTE DE EGRESOS',1,'KALDI'),(14,1,2,'2020-12-24 19:28:24','COMPROBANTE DE EGRESOS',1,'KALDI'),(15,1,1,'2020-12-24 19:28:24','SEPARADOS',1,'KALDI'),(16,1,2,'2020-12-24 19:28:24','SEPARADOS',1,'KALDI'),(17,1,1,'2020-12-24 19:28:24','PRODUCCION',1,'KALDI'),(18,2,2,'2020-12-24 19:28:24','PRODUCCION',1,'KALDI'),(19,1,2,'2020-12-24 19:28:24','SOLICITUDES',1,'KALDI'),(20,1,2,'2020-12-24 19:28:24','SOLICITUDES',1,'KALDI'),(21,16,1,'2021-04-04 18:41:42','BAJAS',1,'KALDI'),(22,1,2,'2021-04-04 18:41:52','BAJAS',1,'KALDI'),(23,1,2,'2021-08-31 05:13:46','ABONOS PRESTAMOS',1,'KALDI'),(24,1,2,'2021-09-02 21:51:07','ABONOS SEPARADOS',1,'KALDI'),(25,1,2,'2021-10-09 01:38:11','RecepcionEquipo',1,'KALDI'),(26,1,2,'2022-01-16 08:30:58','TRASLADOS',1,'KALDI'),(27,1,2,'2022-01-24 12:25:47','PrecuentaCallcenter',1,'KALDI'),(28,1,2,'2022-02-04 19:54:59','FICHA DE REGISTRO',1,'KALDI'),(29,1,2,'2022-08-12 19:58:36','DOCUMENTO SOPORTE',1,'KALDI'),(30,1,2,'2023-01-26 09:53:10','DEVOLUCIONES POR PAGAR',1,'KALDI'),(31,1,2,'2023-02-26 05:14:06','FE',1,'KALDI'),(32,1,2,'2024-01-16 18:29:10','NOTACREDITOFE',1,'KALDI'),(33,1,2,'2024-06-01 17:53:45','POS ELECTRONICO',1,'KALDI'),(34,1,2,'2024-08-13 10:13:50','ANTICIPOS',1,'KALDI'),(35,34,0,'2025-03-13 16:29:02','RECIBO GENERAL',1,'KALDI'),(36,44,0,'2025-03-30 00:31:37','RUTAS',1,'KALDI'),(37,2,0,'2025-05-03 19:57:10','ABONOS COMPRAS',1,'KALDI'),(41,8,0,'2025-05-16 03:33:14','PEDIDOS',1,'KALDI'),(42,1,2,'2025-05-26 13:43:49','FEN',1,'KALDI'),(43,1,0,'2025-06-18 04:23:09','NOMINA',1,'KALDI');

--
-- Table structure for table `consultas`
--

CREATE TABLE `consultas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `consulta` text,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `consultas`
--


--
-- Table structure for table `contable`
--

CREATE TABLE `contable` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `idusuario` bigint unsigned NOT NULL,
  `idcliente` bigint unsigned NOT NULL,
  `cuenta` varchar(8) DEFAULT NULL,
  `debito` decimal(11,2) DEFAULT '0.00',
  `credito` decimal(11,2) DEFAULT '0.00',
  `descripcioncuenta` varchar(25) DEFAULT NULL,
  `tipo` varchar(25) DEFAULT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `idfactura` (`idfactura`),
  KEY `contable_ibfk_3` (`idcliente`),
  CONSTRAINT `contable_ibfk_1` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `contable_ibfk_2` FOREIGN KEY (`idfactura`) REFERENCES `facturas` (`id`),
  CONSTRAINT `contable_ibfk_3` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `contable`
--


--
-- Table structure for table `conteodiario`
--

CREATE TABLE `conteodiario` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(100) NOT NULL DEFAULT '',
  `cantidad` double NOT NULL DEFAULT '0',
  `mes` int NOT NULL,
  `ano` int NOT NULL,
  `costomedio` double NOT NULL,
  `idusuario` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL,
  `fechacracion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fisico` double NOT NULL DEFAULT '0',
  `idmayor` bigint unsigned NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `idmayor` (`idusuario`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idmayor_2` (`idmayor`),
  CONSTRAINT `conteodiario_ibfk_1` FOREIGN KEY (`idmayor`) REFERENCES `mayoresconteodiario` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `conteodiario`
--


--
-- Table structure for table `cotizaciondereceta`
--

CREATE TABLE `cotizaciondereceta` (
  `idarticulo` int NOT NULL,
  `cantidad` double NOT NULL,
  `idusuario` int NOT NULL,
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `revisado` int NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cotizaciondereceta`
--

INSERT INTO `cotizaciondereceta` (`idarticulo`, `cantidad`, `idusuario`, `id`, `revisado`, `pv`) VALUES (20,1,1,13,1,'KALDI');

--
-- Table structure for table `cotizaciones`
--

CREATE TABLE `cotizaciones` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idmayor` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `idarticulo` bigint unsigned NOT NULL,
  `cantidad` int NOT NULL DEFAULT '0',
  `valorunitario` double NOT NULL DEFAULT '0',
  `bruto` double NOT NULL DEFAULT '0',
  `descuento` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `escortesiadeconvenio` int NOT NULL DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `descripcion` varchar(25) DEFAULT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `porcentajeiva` decimal(5,2) DEFAULT '0.00',
  `base` double DEFAULT '0',
  `impuesto` double DEFAULT '0',
  `numlinea` text,
  `unidaddemedida` text,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idmayor` (`idmayor`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cotizaciones`
--

INSERT INTO `cotizaciones` (`id`, `idmayor`, `consecutivo`, `idarticulo`, `cantidad`, `valorunitario`, `bruto`, `descuento`, `valortotal`, `fechacreacion`, `idcliente`, `idusuario`, `escortesiadeconvenio`, `fechaabonado`, `descripcion`, `porcentajedescuento`, `porcentajeiva`, `base`, `impuesto`, `numlinea`, `unidaddemedida`) VALUES (1,5,0,0,0,7532000,0,0,0,'2025-04-14 17:59:25',0,1,0,NULL,'DISEÑO Y FABRICACIÓN DE M',0,0.00,0,0,'1','gl'),(2,5,0,0,0,5000000,0,0,0,'2025-04-14 17:59:25',0,1,0,NULL,'FABRICACIÓN DE RODILLO SE',0,0.00,0,0,'2','gl'),(3,6,0,0,0,7532000,0,0,0,'2025-04-14 18:37:15',0,1,0,NULL,'DISEÑO Y FABRICACIÓN DE M',0,0.00,0,0,'1','gl'),(4,6,0,0,0,5000000,0,0,0,'2025-04-14 18:37:15',0,1,0,NULL,'FABRICACIÓN DE RODILLO SE',0,0.00,0,0,'2','gl'),(5,6,0,0,0,10000,0,0,0,'2025-04-14 18:37:15',0,1,0,NULL,'as fñalds fañsfljkañsflk',0,0.00,0,0,'3','gl');

--
-- Table structure for table `cuentadecobro`
--

CREATE TABLE `cuentadecobro` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `consecutivo` int NOT NULL DEFAULT '0',
  `idusuario` bigint NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` float NOT NULL DEFAULT '0',
  `concepto` text,
  `idcliente` bigint NOT NULL,
  `tipodeventa` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cuentadecobro`
--


--
-- Table structure for table `cuentas`
--

CREATE TABLE `cuentas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tipo` varchar(25) DEFAULT NULL,
  `cuenta` int DEFAULT NULL,
  `Nombre` varchar(25) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `porcentaje` decimal(5,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `tipo` (`tipo`,`porcentaje`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cuentas`
--


--
-- Table structure for table `cupones`
--

CREATE TABLE `cupones` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `nombre` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `cupones`
--


--
-- Table structure for table `departments`
--

CREATE TABLE `departments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `country_id` bigint unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `departments_country_id_foreign` (`country_id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `departments`
--

INSERT INTO `departments` (`id`, `country_id`, `name`, `code`, `created_at`, `updated_at`) VALUES (1,46,'Amazonas','91','2024-06-21 01:05:20','2024-06-21 01:05:20'),(2,46,'Antioquia','05','2024-06-21 01:05:20','2024-06-21 01:05:20'),(3,46,'Arauca','81','2024-06-21 01:05:20','2024-06-21 01:05:20'),(4,46,'Atlántico','08','2024-06-21 01:05:20','2024-06-21 01:05:20'),(5,46,'Bogotá','11','2024-06-21 01:05:20','2024-06-21 01:05:20'),(6,46,'Bolívar','13','2024-06-21 01:05:20','2024-06-21 01:05:20'),(7,46,'Boyacá','15','2024-06-21 01:05:20','2024-06-21 01:05:20'),(8,46,'Caldas','17','2024-06-21 01:05:20','2024-06-21 01:05:20'),(9,46,'Caquetá','18','2024-06-21 01:05:20','2024-06-21 01:05:20'),(10,46,'Casanare','85','2024-06-21 01:05:20','2024-06-21 01:05:20'),(11,46,'Cauca','19','2024-06-21 01:05:20','2024-06-21 01:05:20'),(12,46,'Cesar','20','2024-06-21 01:05:20','2024-06-21 01:05:20'),(13,46,'Chocó','27','2024-06-21 01:05:20','2024-06-21 01:05:20'),(14,46,'Córdoba','23','2024-06-21 01:05:20','2024-06-21 01:05:20'),(15,46,'Cundinamarca','25','2024-06-21 01:05:20','2024-06-21 01:05:20'),(16,46,'Guainía','94','2024-06-21 01:05:20','2024-06-21 01:05:20'),(17,46,'Guaviare','95','2024-06-21 01:05:20','2024-06-21 01:05:20'),(18,46,'Huila','41','2024-06-21 01:05:20','2024-06-21 01:05:20'),(19,46,'La Guajira','44','2024-06-21 01:05:20','2024-06-21 01:05:20'),(20,46,'Magdalena','47','2024-06-21 01:05:20','2024-06-21 01:05:20'),(21,46,'Meta','50','2024-06-21 01:05:20','2024-06-21 01:05:20'),(22,46,'Nariño','52','2024-06-21 01:05:20','2024-06-21 01:05:20'),(23,46,'Norte de Santander','54','2024-06-21 01:05:20','2024-06-21 01:05:20'),(24,46,'Putumayo','86','2024-06-21 01:05:20','2024-06-21 01:05:20'),(25,46,'Quindío','63','2024-06-21 01:05:20','2024-06-21 01:05:20'),(26,46,'Risaralda','66','2024-06-21 01:05:20','2024-06-21 01:05:20'),(27,46,'San Andrés y Providencia','88','2024-06-21 01:05:20','2024-06-21 01:05:20'),(28,46,'Santander','68','2024-06-21 01:05:20','2024-06-21 01:05:20'),(29,46,'Sucre','70','2024-06-21 01:05:20','2024-06-21 01:05:20'),(30,46,'Tolima','73','2024-06-21 01:05:20','2024-06-21 01:05:20'),(31,46,'Valle del Cauca','76','2024-06-21 01:05:20','2024-06-21 01:05:20'),(32,46,'Vaupés','97','2024-06-21 01:05:20','2024-06-21 01:05:20'),(33,46,'Vichada','99','2024-06-21 01:05:20','2024-06-21 01:05:20');

--
-- Table structure for table `descuentosporgrupo`
--

CREATE TABLE `descuentosporgrupo` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idgrupo` bigint unsigned NOT NULL DEFAULT '1',
  `cc` bigint unsigned NOT NULL DEFAULT '1',
  `porcentaje` int NOT NULL DEFAULT '0',
  `linea` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idgrupo` (`idgrupo`),
  KEY `cc` (`cc`),
  CONSTRAINT `descuentosporgrupo_ibfk_1` FOREIGN KEY (`idgrupo`) REFERENCES `gruposdepersonas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `descuentosporgrupo`
--


--
-- Table structure for table `descuentosprogramados`
--

CREATE TABLE `descuentosprogramados` (
  `id` int NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` bigint unsigned NOT NULL,
  `idcliente` bigint unsigned NOT NULL,
  `valor` int DEFAULT NULL,
  `mes` tinyint unsigned DEFAULT NULL,
  `ano` year DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idcliente_2` (`idcliente`,`mes`,`ano`),
  KEY `idusuario` (`idusuario`),
  KEY `idcliente` (`idcliente`)
) ENGINE=InnoDB AUTO_INCREMENT=505 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `descuentosprogramados`
--


--
-- Table structure for table `devolucionesporpagar`
--

CREATE TABLE `devolucionesporpagar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `pagado` bit(1) DEFAULT b'0',
  `fechapagado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuariopaga` bigint unsigned NOT NULL DEFAULT '1',
  `idcliente` bigint unsigned DEFAULT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `idfactura` (`idfactura`),
  CONSTRAINT `cons_devporpgagar_1` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `cons_devporpgagar_2` FOREIGN KEY (`idfactura`) REFERENCES `facturas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `devolucionesporpagar`
--


--
-- Table structure for table `direcciones`
--

CREATE TABLE `direcciones` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `direccion` varchar(300) DEFAULT NULL,
  `telefono` varchar(15) DEFAULT NULL,
  `idcliente` bigint unsigned NOT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `direccion` (`direccion`,`idcliente`),
  KEY `idcliente` (`idcliente`),
  CONSTRAINT `direcciones_ibfk_1` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `direcciones`
--


--
-- Table structure for table `ediciones`
--

CREATE TABLE `ediciones` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tabla` varchar(300) DEFAULT NULL,
  `tarea` varchar(600) DEFAULT NULL,
  `usuario` varchar(300) DEFAULT NULL,
  `fechacreacion` varchar(300) DEFAULT NULL,
  `antes` varchar(300) DEFAULT NULL,
  `despues` varchar(300) DEFAULT NULL,
  `campo` varchar(150) DEFAULT NULL,
  `idtabla` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=370 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ediciones`
--

INSERT INTO `ediciones` (`id`, `tabla`, `tarea`, `usuario`, `fechacreacion`, `antes`, `despues`, `campo`, `idtabla`) VALUES (1,'configuracion','editar id 11 ',' ','2025-09-29 09:57:26','','verifaci','valor',11),(2,'configuracion','editar id 11 ',' ','2025-09-29 09:57:30','verifaci','verifacti','valor',11),(3,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:21','66001','','codigomunicipio',NULL),(4,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:22','PEREIRA','','ciudad',NULL),(5,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:23','66','','codigodepartamento',NULL),(6,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:27','660001','','zonapostal',NULL),(7,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:29','RISARALDA','','departamento',NULL),(8,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:31','FACTURA DE VENTA','FACTURA NORMAL','titulotirilla',NULL),(9,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:35','PERSONA NATURAL','','regimen',NULL),(10,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:37','IMPOCONSUMO','IVA','nombreimpuesto',NULL),(11,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:41','O-49','R-99-PN','responsabilidades',NULL),(12,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:43','raulotalvaro@gmail.com','','email',NULL),(13,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:43','Cra 14  9-07','','direccion',NULL),(14,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:45','901402281','','nit',NULL),(15,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:46','JUAN ALARCON','','representante',NULL),(16,'centrosdecostos','editar id 2 ',' ','2025-09-29 10:12:47','FERRE COSTOS LA 14','','centrodecostos',NULL),(17,'centrosdecostos','editar id 2 ',' ','2025-09-29 13:24:26',NULL,'s','token_taxxa',2),(18,'centrosdecostos','editar id 2 ',' ','2025-09-29 13:24:39','s','vf_test_vnlS1HvoBuUJBGM8o5fNMz6cXEXK5dG/d6o8NNhjD7w=','token_taxxa',2),(19,'clientes','editar id 5    ','SOFTWARE   ','2025-09-29 13:58:30','','Kelly','primernombre',NULL),(20,'clientes','editar id 5 Kelly   ','SOFTWARE   ','2025-09-29 13:58:36','','604017513','cedula',NULL),(21,'clientes','editar id 5 Kelly   ','SOFTWARE   ','2025-09-29 13:58:39','','604017513','clave',NULL),(22,'clientes','editar id 5 Kelly   ','SOFTWARE   ','2025-09-29 13:58:46','CLIENTE','ADMINISTRADOR','rol',NULL),(23,'ventasauxiliar','editar id 1 ','Kelly   ','2025-09-29 13:59:33','EN ESPERA','a dsfas dfasdfasdfasdasdfasdf asdfasd fasdf asd fasd fasdf asdf','descripcion',NULL),(24,'clientes','editar id 6    ','Kelly   ','2025-09-29 15:29:51','','sanyu','primernombre',NULL),(25,'clientes','editar id 6 sanyu   ','Kelly   ','2025-09-29 15:30:13','','B87651535','cedula',NULL),(26,'clientes','editar id 6 sanyu   ','Kelly   ','2025-09-29 15:32:27',NULL,'calle calamina 17MADRID 28021','direccion2',NULL),(27,'clientes','editar id 6 sanyu   ','Kelly   ','2025-09-29 15:32:38','660001','28021','codigopostal',NULL),(28,'clientes','editar id 6 sanyu   ','Kelly   ','2025-09-29 15:32:45','calle calamina 17MADRID 28021','calle calamina 17MADRID','direccion2',NULL),(29,'clientes','editar id 6 sanyu   ','Kelly   ','2025-09-29 15:33:32','sanyu','Sanyu','primernombre',NULL),(30,'clientes','editar id 6 ','Kelly   ','2025-09-29 15:35:45','PEREIRA','Madrid','ciudad',6),(31,'ventasauxiliar','editar id 2 ','Kelly   ','2025-09-29 15:38:00','EN ESPERA','laminado manual en hormigón','descripcion',NULL),(32,'articulos','Editar id 1 EN ESPERA',' ','2025-09-29 15:38:25','0.00','21','porcentajeiva',NULL),(33,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:42:35','GRACIAS POR SU COMPRA la propina es voluntaria','','comentariotirilla',NULL),(34,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:42:52','','M350 CONSTRUCCIONES, Y LOGISTICA','centrodecostos',NULL),(35,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:43:10','M350 CONSTRUCCIONES, Y LOGISTICA','M350 CONSTRUCCIONES, Y LOGISTICA INTERNACIONAL SL.','centrodecostos',NULL),(36,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:43:42','','CL. LEGANES 4p 1A PARLA  MADRID 28981','direccion',NULL),(37,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:44:05','','625350237','telefono',NULL),(38,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:44:14','','28981','zonapostal',NULL),(39,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:44:27','CL. LEGANES 4p 1A PARLA  MADRID 28981','CL. LEGANES 4p 1A PARLA','direccion',NULL),(40,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:44:31','','Madrid','ciudad',NULL),(41,'centrosdecostos','editar id 2 ','Kelly   ','2025-09-29 15:44:58','','21738919','nit',NULL),(42,'clientes','editar id 7    ','Kelly   ','2025-09-29 15:51:41','','BORJA','primernombre',NULL),(43,'clientes','editar id 7 BORJA   ','Kelly   ','2025-09-29 15:51:46','','romero','primerapellido',NULL),(44,'clientes','editar id 7 BORJA  romero ','Kelly   ','2025-09-29 15:55:29','romero','','primerapellido',NULL),(45,'clientes','editar id 7 BORJA   ','Kelly   ','2025-09-29 15:55:32','BORJA','','primernombre',NULL),(46,'modulos','editar id 249 ',' ','2025-09-29 15:56:00','','Cambiar_tipodepersona','modulo',NULL),(47,'modulos','editar id 249 ',' ','2025-09-29 15:56:15',NULL,'Clientes','grupo',NULL),(48,'clientes','editar id 8    ','Kelly   ','2025-09-29 15:57:55','2','1','tipodepersona',NULL),(49,'clientes','editar id 8  ','Kelly   ','2025-09-29 15:58:13',NULL,'BORJA ROMERO EXCAVACIONES Y','razonsocial',NULL),(50,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y ','Kelly   ','2025-09-29 15:58:26','BORJA ROMERO EXCAVACIONES Y','BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L','razonsocial',NULL),(51,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 15:59:14','','B87705638','cedula',NULL),(52,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 16:00:04',NULL,'C/AV:LAREDO P.L EL ALAMO 41 CP:28946','direccion2',NULL),(53,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 16:00:11','660001','28946','codigopostal',NULL),(54,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 16:00:25','C/AV:LAREDO P.L EL ALAMO 41 CP:28946','C/AV:LAREDO P.L EL ALAMO 41','direccion2',NULL),(55,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 16:00:32',NULL,'fuenlabrada','barrio',NULL),(56,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 16:01:45','fuenlabrada','enlabrada Madrid','barrio',NULL),(57,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-09-29 16:01:57','enlabrada Madrid','Fuenlabrada Madrid','barrio',NULL),(58,'clientes','editar id 9    ','Kelly   ','2025-09-29 16:09:14','2','1','tipodepersona',NULL),(59,'clientes','editar id 9  ','Kelly   ','2025-09-29 16:09:23',NULL,'REHABICONS OBRAS S.L','razonsocial',NULL),(60,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-09-29 16:09:37','','B12883062','cedula',NULL),(61,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-09-29 16:09:39','CC','NIF','tipo_identificacion',NULL),(62,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-09-29 16:09:58',NULL,'CALLE APARICI GUIJARRO 18','direccion2',NULL),(63,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-09-29 16:10:22',NULL,'CASTELLLON DE LA PLANA','barrio',NULL),(64,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-09-29 16:10:47','660001','12002','codigopostal',NULL),(65,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-09-29 16:11:09','','info@rehabicons.com','email',NULL),(66,'clientes','editar id 10    ','Kelly   ','2025-09-29 16:14:21','','luis','primernombre',NULL),(67,'clientes','editar id 10 luis   ','Kelly   ','2025-09-29 16:14:39',NULL,'miguel','segundonombre',NULL),(68,'clientes','editar id 10 luis miguel  ','Kelly   ','2025-09-29 16:14:40','CC','NIF','tipo_identificacion',NULL),(69,'clientes','editar id 10 luis miguel  ','Kelly   ','2025-09-29 16:14:47','NIF','NIE','tipo_identificacion',NULL),(70,'clientes','editar id 10 luis miguel  ','Kelly   ','2025-09-29 16:14:59','NIE','DNI','tipo_identificacion',NULL),(71,'clientes','editar id 10 luis miguel  ','Kelly   ','2025-09-29 16:15:25','','Aguado','primerapellido',NULL),(72,'clientes','editar id 10 luis miguel Aguado ','Kelly   ','2025-09-29 16:15:32','luis','Luis','primernombre',NULL),(73,'clientes','editar id 10 Luis miguel Aguado ','Kelly   ','2025-09-29 16:15:36','miguel','Miguel','segundonombre',NULL),(74,'clientes','editar id 10 Luis Miguel Aguado ','Kelly   ','2025-09-29 16:15:59',NULL,'CALLE INSULA MALINDRANIA 6','direccion2',NULL),(75,'clientes','editar id 10 Luis Miguel Aguado ','Kelly   ','2025-09-29 16:16:19',NULL,'Getafe','barrio',NULL),(76,'clientes','editar id 10 Luis Miguel Aguado ','Kelly   ','2025-09-29 16:16:27','660001','28906','codigopostal',NULL),(77,'clientes','editar id 10 Luis Miguel Aguado ','Kelly   ','2025-09-29 16:16:44','','70813204E','cedula',NULL),(78,'clientes','editar id 11    ','Kelly   ','2025-09-29 16:18:58','','JUAN MANUEL MORIENTES','primernombre',NULL),(79,'clientes','editar id 11 JUAN MANUEL MORIENTES   ','Kelly   ','2025-09-29 16:19:14',NULL,'Manuel','segundonombre',NULL),(80,'clientes','editar id 11 JUAN MANUEL MORIENTES Manuel  ','Kelly   ','2025-09-29 16:19:30','','Morientes','primerapellido',NULL),(81,'clientes','editar id 11 JUAN MANUEL MORIENTES Manuel Morientes ','Kelly   ','2025-09-29 16:19:35','JUAN MANUEL MORIENTES','Juan','primernombre',NULL),(82,'clientes','editar id 11 Juan Manuel Morientes ','Kelly   ','2025-09-29 16:20:03',NULL,'CALLE MASCARAQUE 23 3A','direccion2',NULL),(83,'clientes','editar id 11 Juan Manuel Morientes ','Kelly   ','2025-09-29 16:20:17',NULL,'COLMENERO','barrio',NULL),(84,'clientes','editar id 11 Juan Manuel Morientes ','Kelly   ','2025-09-29 16:20:29','660001','28044','codigopostal',NULL),(85,'clientes','editar id 11 Juan Manuel Morientes ','Kelly   ','2025-09-29 16:21:05','CC','DNI','tipo_identificacion',NULL),(86,'clientes','editar id 11 Juan Manuel Morientes ','Kelly   ','2025-09-29 16:21:12','','76121865F','cedula',NULL),(87,'permisos','editar id 3468',' ','2025-09-29 17:06:46','2','1','valor',NULL),(88,'permisos','editar id 3554',' ','2025-09-29 17:06:50','2','1','valor',NULL),(89,'permisos','editar id 3582',' ','2025-09-29 17:06:53','2','1','valor',NULL),(90,'permisos','editar id 3600',' ','2025-09-29 17:06:59','2','1','valor',NULL),(91,'permisos','editar id 3600',' ','2025-09-29 17:07:01','1','2','valor',NULL),(92,'permisos','editar id 3743',' ','2025-09-29 17:07:13','2','1','valor',NULL),(93,'permisos','editar id 3760',' ','2025-09-29 17:07:16','2','1','valor',NULL),(94,'permisos','editar id 3431',' ','2025-09-29 17:07:28','2','1','valor',NULL),(95,'permisos','editar id 2051',' ','2025-09-29 17:07:54','2','1','valor',NULL),(96,'permisos','editar id 3806',' ','2025-09-29 17:08:10','2','1','valor',NULL),(97,'permisos','editar id 976',' ','2025-09-29 17:08:16','2','1','valor',NULL),(98,'permisos','editar id 1036',' ','2025-09-29 17:08:22','2','1','valor',NULL),(99,'permisos','editar id 37',' ','2025-09-29 17:08:34','2','1','valor',NULL),(100,'permisos','editar id 41',' ','2025-09-29 17:08:37','2','1','valor',NULL),(101,'permisos','editar id 39',' ','2025-09-29 17:08:42','2','1','valor',NULL),(102,'permisos','editar id 599',' ','2025-09-29 17:08:49','2','1','valor',NULL),(103,'permisos','editar id 915',' ','2025-09-29 17:09:03','2','1','valor',NULL),(104,'permisos','editar id 1074',' ','2025-09-29 17:09:07','2','1','valor',NULL),(105,'permisos','editar id 29',' ','2025-09-29 17:09:10','2','1','valor',NULL),(106,'permisos','editar id 1185',' ','2025-09-29 17:09:17','2','1','valor',NULL),(107,'permisos','editar id 671',' ','2025-09-29 17:09:28','2','1','valor',NULL),(108,'permisos','editar id 1399',' ','2025-09-29 17:10:03','2','1','valor',NULL),(109,'permisos','editar id 1358',' ','2025-09-29 17:10:05','2','1','valor',NULL),(110,'permisos','editar id 1358',' ','2025-09-29 17:10:09','1','2','valor',NULL),(111,'permisos','editar id 814',' ','2025-09-29 17:10:15','2','1','valor',NULL),(112,'permisos','editar id 59',' ','2025-09-29 17:11:17','2','1','valor',NULL),(113,'permisos','editar id 1463',' ','2025-09-29 17:11:26','2','1','valor',NULL),(114,'permisos','editar id 1991',' ','2025-09-29 17:21:07','2','1','valor',NULL),(115,'permisos','editar id 2348',' ','2025-09-29 17:21:08','2','1','valor',NULL),(116,'permisos','editar id 1448',' ','2025-09-29 17:21:14','2','1','valor',NULL),(117,'permisos','editar id 2724',' ','2025-09-29 17:21:29','2','1','valor',NULL),(118,'permisos','editar id 1644',' ','2025-09-29 17:21:31','2','1','valor',NULL),(119,'permisos','editar id 715',' ','2025-09-29 17:21:38','2','1','valor',NULL),(120,'permisos','editar id 900',' ','2025-09-29 17:21:45','2','1','valor',NULL),(121,'permisos','editar id 3133',' ','2025-09-29 17:21:57','2','1','valor',NULL),(122,'permisos','editar id 2684',' ','2025-09-29 17:22:19','2','1','valor',NULL),(123,'permisos','editar id 2484',' ','2025-09-29 17:22:57','2','1','valor',NULL),(124,'permisos','editar id 2066',' ','2025-09-29 17:22:58','2','1','valor',NULL),(125,'permisos','editar id 3286',' ','2025-09-29 17:23:49','2','1','valor',NULL),(126,'permisos','editar id 3296',' ','2025-09-29 17:23:52','2','1','valor',NULL),(127,'permisos','editar id 2378',' ','2025-09-29 17:24:02','2','1','valor',NULL),(128,'permisos','editar id 3688',' ','2025-09-29 17:24:06','2','1','valor',NULL),(129,'permisos','editar id 3081',' ','2025-09-29 17:24:16','2','1','valor',NULL),(130,'permisos','editar id 2714',' ','2025-09-29 17:24:21','2','1','valor',NULL),(131,'permisos','editar id 2744',' ','2025-09-29 17:25:04','2','1','valor',NULL),(132,'permisos','editar id 5',' ','2025-09-29 17:25:36','2','1','valor',NULL),(133,'permisos','editar id 3554',' ','2025-09-29 17:25:54','1','2','valor',NULL),(134,'permisos','editar id 3554',' ','2025-09-29 17:26:11','2','1','valor',NULL),(135,'permisos','editar id 3506',' ','2025-09-29 17:26:20','2','1','valor',NULL),(136,'permisos','editar id 4018',' ','2025-09-29 17:26:37','1','2','valor',NULL),(137,'permisos','editar id 4018',' ','2025-09-29 17:26:38','2','1','valor',NULL),(138,'permisos','editar id 732',' ','2025-09-29 17:30:01','2','1','valor',NULL),(139,'permisos','editar id 2200',' ','2025-09-29 17:31:18','2','1','valor',NULL),(140,'clientes','editar id 13    ','Kelly   ','2025-09-29 18:44:41','2','1','tipodepersona',NULL),(141,'clientes','editar id 13  ','Kelly   ','2025-09-29 18:45:26',NULL,'Consultoria global agropecuaria','razonsocial',NULL),(142,'clientes','editar id 13 Consultoria global agropecuaria ','Kelly   ','2025-09-29 18:45:38','CC','NIE','tipo_identificacion',NULL),(143,'clientes','editar id 13 Consultoria global agropecuaria ','Kelly   ','2025-09-29 18:46:03','','B01989979','cedula',NULL),(144,'clientes','editar id 13 Consultoria global agropecuaria ','Kelly   ','2025-09-29 18:46:57',NULL,'calle sagasta # 15 planta 2 puerta izq','direccion2',NULL),(145,'clientes','editar id 13 Consultoria global agropecuaria ','Kelly   ','2025-09-29 18:47:03','660001','','codigopostal',NULL),(146,'clientes','editar id 13 Consultoria global agropecuaria ','Kelly   ','2025-09-29 18:47:12','Consultoria global agropecuaria','Consultoria global agropecuaria','razonsocial',NULL),(147,'clientes','editar id 13 Consultoria global agropecuaria ','Kelly   ','2025-09-29 18:47:30',NULL,'Consultoria global agropecuaria','nombrecomercial',NULL),(148,'clientes','editar id 13 Consultoria global agropecuaria Consultoria global agropecuaria','Kelly   ','2025-09-29 18:47:35','Consultoria global agropecuaria','','razonsocial',NULL),(149,'clientes','editar id 13  Consultoria global agropecuaria','Kelly   ','2025-09-29 18:48:02','NIE','NIF','tipo_identificacion',NULL),(150,'clientes','editar id 13  Consultoria global agropecuaria','Kelly   ','2025-09-29 18:48:18','NIF','DNI','tipo_identificacion',NULL),(151,'clientes','editar id 13  Consultoria global agropecuaria','Kelly   ','2025-09-29 18:48:34','DNI','CIF','tipo_identificacion',NULL),(152,'clientes','editar id 13  Consultoria global agropecuaria','Kelly   ','2025-09-29 18:48:43','CIF','NIF','tipo_identificacion',NULL),(153,'clientes','editar id 13  Consultoria global agropecuaria','Kelly   ','2025-09-29 18:50:17','Consultoria global agropecuaria','Consultoria global agroalimentaria','nombrecomercial',NULL),(154,'articulos','Editar id 2 ',' ','2025-09-29 23:32:19','0.00','21','porcentajeiva',NULL),(155,'configuracion','editar id 12 ',' ','2025-09-29 23:34:11','','Valor mas iva','valor',12),(156,'articulos','editar id 2 ',' ','2025-09-29 23:43:08','','1','referencia',2),(157,'articulos','Editar id 2 ',' ','2025-09-29 23:44:57','0','1','valordeventa',NULL),(158,'articulos','Editar id 2 ',' ','2025-09-29 23:57:56','1','10000','valordeventa',NULL),(159,'articulos','editar id 2',' ','2025-09-29 23:59:59','0','','costomedio',NULL),(160,'articulos','Editar id 2 ',' ','2025-09-30 00:00:57','10000','100000','valordeventa',NULL),(161,'articulos','Editar id 2 ',' ','2025-09-30 00:01:01','100000','1','valordeventa',NULL),(162,'articulos','Editar id 1 EN ESPERA',' ','2025-09-30 00:13:14','0','200','valordeventa',NULL),(163,'clientes','editar id 13  Consultoria global agroalimentaria',' ','2025-09-30 19:09:10','1','2','tipodepersona',NULL),(164,'clientes','editar id 13    ',' ','2025-09-30 19:09:12','','Consultoria global agroaliment','primernombre',NULL),(165,'clientes','editar id 13 Consultoria global agroaliment   ',' ','2025-09-30 19:09:14','2','1','tipodepersona',NULL),(166,'ventasauxiliar','editar id 28 ',' ','2025-09-30 19:10:08','','Laminación de cosas etcetera','descripcion',NULL),(167,'clientes','editar id 13  Consultoria global agroalimentaria','SOFTWARE   ','2025-09-30 19:12:48','Consultoria global agroalimentaria','','nombrecomercial',NULL),(168,'clientes','editar id 13  ','SOFTWARE   ','2025-09-30 19:12:50','','Consultoria global agroalimentaria','razonsocial',NULL),(169,'clientes','editar id 13 Consultoria global agroalimentaria ','SOFTWARE   ','2025-09-30 19:13:03','1','2','tipodepersona',NULL),(170,'clientes','editar id 13 Consultoria global agroaliment   ','SOFTWARE   ','2025-09-30 19:13:14','2','1','tipodepersona',NULL),(171,'ventasauxiliar','editar id 29 ','SOFTWARE   ','2025-09-30 19:14:11','','Laminaciól de cosas que ustedes hacen','descripcion',NULL),(172,'ventasauxiliar','editar id 30 ','SOFTWARE   ','2025-09-30 19:14:54','','la otera que le voy a cobrar','descripcion',NULL),(173,'clientes','editar id 13 Consultoria global agroalimentaria ','Kelly   ','2025-10-01 15:55:56','1','2','tipodepersona',NULL),(174,'clientes','editar id 13 Consultoria global agroaliment   ','Kelly   ','2025-10-01 15:55:59','2','1','tipodepersona',NULL),(175,'clientes','editar id 9 REHABICONS OBRAS S.L ','Kelly   ','2025-10-01 16:01:02','1','2','tipodepersona',NULL),(176,'clientes','editar id 9    ','Kelly   ','2025-10-01 16:01:42','','REHABICONS OBRAS S.L','primernombre',NULL),(177,'clientes','editar id 9 REHABICONS OBRAS S.L   ','Kelly   ','2025-10-01 16:01:50','2','1','tipodepersona',NULL),(178,'ventasauxiliar','editar id 31 ','Kelly   ','2025-10-01 16:11:44','','Brigada de mantenimiento de obra civil y maquinaria industrial para obra en Valencia, incluye dieta, alojamiento y transporte','descripcion',NULL),(179,'ventasauxiliar','editar id 32 ','Kelly   ','2025-10-01 16:13:06','','Jornada fines de semana y festivos','descripcion',NULL),(180,'configuracion','editar id 13 ',' ','2025-10-02 01:40:14','','carta_completo_html','valor',13),(181,'ventasauxiliar','editar id 33 ','SOFTWARE   ','2025-10-02 14:09:10',NULL,'tyqwt','observaciones',NULL),(182,'ventasauxiliar','editar id 34 ','SOFTWARE   ','2025-10-02 14:18:19','','.,mnbvcxcvbnm,.','descripcion',NULL),(183,'mediosdepago','editar id 9 ',' ','2025-10-07 01:24:16','','Pagarè','mediodepago',NULL),(184,'mediosdepago','editar id 9 ',' ','2025-10-07 01:24:20','0','3','orden',NULL),(185,'ventasauxiliar','editar id 35 ',' ','2025-10-07 02:06:38','','preuba uno','descripcion',NULL),(186,'clientes','editar id 12    ',' ','2025-10-09 02:16:08','','prueba nif correcto','primernombre',NULL),(187,'clientes','editar id 12 prueba nif correcto   ',' ','2025-10-09 02:16:10','','B75777847','cedula',NULL),(188,'clientes','editar id 12 prueba nif correcto   ',' ','2025-10-09 02:16:16','CC','NIF','tipo_identificacion',NULL),(189,'ventasauxiliar','editar id 71 ','Kelly   ','2025-10-15 18:22:59','','cohe bmw 350','descripcion',NULL),(190,'ventasauxiliar','editar id 72 ','Kelly   ','2025-10-15 18:24:57','','empanadas','descripcion',NULL),(191,'clientes','editar id 7    ','Kelly   ','2025-10-15 18:43:52','2','1','tipodepersona',NULL),(192,'clientes','editar id 7  ','Kelly   ','2025-10-15 18:44:26',NULL,'M350 Construcciones y logistica internacional sl','razonsocial',NULL),(193,'clientes','editar id 7 M350 Construcciones y logistica internacional sl ','Kelly   ','2025-10-15 18:44:35','CC','CIF','tipo_identificacion',NULL),(194,'clientes','editar id 7 M350 Construcciones y logistica internacional sl ','Kelly   ','2025-10-15 18:45:02',NULL,'B12738919','nombrecomercial',NULL),(195,'clientes','editar id 7 M350 Construcciones y logistica internacional sl B12738919','Kelly   ','2025-10-15 18:45:03','','B12738919','cedula',NULL),(196,'clientes','editar id 7 M350 Construcciones y logistica internacional sl B12738919','Kelly   ','2025-10-15 18:45:12','B12738919','','nombrecomercial',NULL),(197,'modulos','editar id 251 ',' ','2025-10-15 18:46:19','','Cambiar_direccion','modulo',NULL),(198,'modulos','editar id 251 ',' ','2025-10-15 18:46:29',NULL,'General','grupo',NULL),(199,'clientes','editar id 7 M350 Construcciones y logistica internacional sl ','Kelly   ','2025-10-15 18:48:09','','Cl Leganes 4p','direccion',NULL),(200,'clientes','editar id 7 M350 Construcciones y logistica internacional sl ','Kelly   ','2025-10-15 18:48:18',NULL,'1A','numerocalle',NULL),(201,'clientes','editar id 7 M350 Construcciones y logistica internacional sl ','Kelly   ','2025-10-15 18:48:45','660001','928981','codigopostal',NULL),(202,'ventasauxiliar','editar id 73 ','Kelly   ','2025-10-15 18:49:39','','empanada','descripcion',NULL),(203,'ventasauxiliar','editar id 73 ','Kelly   ','2025-10-15 18:49:51','empanada','Empanada','descripcion',NULL),(204,'consecutivos','editar id 2',' ','2025-10-15 18:56:09','73640','73639','consecutivo',NULL),(205,'consecutivos','editar id 2',' ','2025-10-15 18:56:13','73639','203','consecutivo',NULL),(206,'ventasauxiliar','editar id 74 ','Kelly   ','2025-10-20 10:20:09','','Descripción brigada de obra civil para trabajos a pie de máquina , albañilería y mantenimiento.','descripcion',NULL),(207,'ventasauxiliar','editar id 74 ','Kelly   ','2025-10-20 10:25:28',NULL,'Mantenimiento','observaciones',NULL),(208,'consecutivos','editar id 2',' ','2025-10-20 10:26:44','204','203','consecutivo',NULL),(209,'facturas','editar id 47',' ','2025-10-20 10:26:56','203','202','consecutivo',NULL),(210,'ventasauxiliar','editar id 75 ','Kelly   ','2025-10-20 10:34:11',NULL,'Mantenimiento','observaciones',NULL),(211,'ventasauxiliar','editar id 75 ','Kelly   ','2025-10-20 10:35:41','','Jornal de brigada de mantenimiento de maquinaria e instalaciones, incluido desplazamiento fuera de Madrid y dieta.','descripcion',NULL),(212,'ventasauxiliar','editar id 76 ','Kelly   ','2025-10-20 10:36:44',NULL,'Mantenimiento','observaciones',NULL),(213,'ventasauxiliar','editar id 76 ','Kelly   ','2025-10-20 10:37:29','','Trabajos adicionales festivos y fines de semana.','descripcion',NULL),(214,'ventasauxiliar','editar id 77 ','Kelly   ','2025-10-20 10:40:30','','Desbronce de depósito valgallego, destroncado de terreno y vertido de tierras','descripcion',NULL),(215,'ventasauxiliar','editar id 77 ','Kelly   ','2025-10-20 10:40:53',NULL,'Obra','observaciones',NULL),(216,'modulos','editar id 40 ',' ','2025-10-21 02:18:21','OcultarInformesGastos','Clasificar_facturas','modulo',NULL),(217,'modulos','editar id 40 ',' ','2025-10-21 02:18:24','Se usa si a un usuario que puede ver otros informes se le quieren ocultar los relacionados con gastos','','descripcion',NULL),(218,'consecutivos','editar id 2',' ','2025-11-17 20:09:51','205','159','consecutivo',NULL),(219,'consecutivos','editar id 2',' ','2025-11-17 20:09:58','159','199','consecutivo',NULL),(220,'ventas','En el modulo borrarbasededatos.php se eliminaron todos los registros de la tabla ventas, el usuario estaba en la ip 139.47.70.132',' ','2025-11-17 20:11:16',NULL,NULL,NULL,0),(221,'consecutivos','editar id 6',' ','2025-11-17 20:11:33','181','1','consecutivo',NULL),(222,'consecutivos','editar id 34',' ','2025-11-17 20:11:34','6','1','consecutivo',NULL),(223,'consecutivos','editar id 22',' ','2025-11-17 20:11:35','16','1','consecutivo',NULL),(224,'consecutivos','editar id 14',' ','2025-11-17 20:11:36','4','1','consecutivo',NULL),(225,'consecutivos','editar id 29',' ','2025-11-17 20:11:38','10','1','consecutivo',NULL),(226,'consecutivos','editar id 31',' ','2025-11-17 20:11:38','1002','1','consecutivo',NULL),(227,'consecutivos','editar id 42',' ','2025-11-17 20:11:39','3','1','consecutivo',NULL),(228,'consecutivos','editar id 32',' ','2025-11-17 20:11:40','9','1','consecutivo',NULL),(229,'consecutivos','editar id 4',' ','2025-11-17 20:11:43','4','1','consecutivo',NULL),(230,'ventasauxiliar','editar id 78 ','Kelly   ','2025-11-17 20:12:11','','Mantenimiento y desbrose en deposito Montejo de la Sierra','descripcion',NULL),(231,'ventasauxiliar','editar id 79 ','Kelly   ','2025-11-17 20:12:41','','Mantenimiento y desbrose en deposito Montejo de la Sierra','descripcion',NULL),(232,'ventasauxiliar','editar id 80 ','Kelly   ','2025-11-17 20:13:26','','Limpieza y adecuación de cubierta transitable incluido carga y retirada de tierras.','descripcion',NULL),(233,'ventasauxiliar','editar id 81 ','Kelly   ','2025-11-17 20:13:52','','grava de canto rodado 20/60 para recubrir cubierta de deposito.','descripcion',NULL),(234,'facturas','editar id 1',' ','2025-11-17 20:18:57','2025-11-17 20:15:55','2025-10-06 20:15:55','fechacreacion',NULL),(235,'ventasauxiliar','editar id 82 ','Kelly   ','2025-11-17 20:32:15','','Brigada de obra civil para trabajos a pie de maquinaria (jornal)','descripcion',NULL),(236,'ventasauxiliar','editar id 83 ','Kelly   ','2025-11-17 20:32:49','','Trabajos de brigada de obra civil fines de semana y festivos.','descripcion',NULL),(237,'ventasauxiliar','editar id 84 ','Kelly   ','2025-11-17 20:35:12','','certificación 01apertura de zanja para paso canadience incluido obra civil en Madarcos (estructura metalica: instalación de rejilla, instalación de ?uerta vehicular, instalación de puerta peatonal, ejecución de mochetas de mamposteria y construcción de ODT)','descripcion',NULL),(238,'ventasauxiliar','editar id 85 ','Kelly   ','2025-11-17 20:36:36','','Descripcion brigada de obra civil para trabajos a pie de máquina, albañileria y mantenimiento','descripcion',NULL),(239,'ventasauxiliar','editar id 86 ','Kelly   ','2025-11-17 20:38:25','','Mantenimiento de maquinaria e instalaciones, incluido desplazamiento fuera de madrid y dieta.','descripcion',NULL),(240,'ventasauxiliar','editar id 87 ','Kelly   ','2025-11-17 20:38:55','','Descripción trabajos adicionales festivos y fines de semana.','descripcion',NULL),(241,'ventasauxiliar','editar id 88 ','Kelly   ','2025-11-17 20:40:14','','Desbronce de despósito valgallego, destroncado de terreno y vertido de tierras.','descripcion',NULL),(242,'ventasauxiliar','editar id 90 ','Kelly   ','2025-11-17 20:41:27','','Brigada de mantenimiento de maquinaria e instalaciones de obra fuera de Madrid.','descripcion',NULL),(243,'ventasauxiliar','editar id 91 ','Kelly   ','2025-11-17 20:41:58','','Brigada de mantenimiento trabajos fines de semana y festivos.','descripcion',NULL),(244,'ventasauxiliar','editar id 92 ','Kelly   ','2025-11-17 20:44:44','','Certificación de servicios de mantenimiento predictiv, preventivoy correctivo de red de alta velociad (Vía, catenaria, señalización y telecomunicaciones.) Incluye la actualización tecnológica del sistema de control de tráfico centralizado (CTC).','descripcion',NULL),(245,'ventasauxiliar','editar id 93 ','Kelly   ','2025-11-17 20:46:16','','Certificación Construcción completa de plataforma logística intermodal incluyendo la cimentación profunda, la pavimentación de plataforma de almacenamiento de contenedores y la instalación de sistemas automatizados de gestión de stock y flujo de mercancías.','descripcion',NULL),(246,'clientes','Editar id: 6','Kelly   ','2025-11-17 20:49:44','Sanyu','el chapas','primernombre',NULL),(247,'clientes','editar id 6 el chapas   ','Kelly   ','2025-11-17 20:55:18','el chapas','Sanyu','primernombre',NULL),(248,'clientes','editar id 6 Sanyu   ','Kelly   ','2025-11-17 20:55:33','el chapas','Sanyu','razonsocial',NULL),(249,'clientes','editar id 6 Sanyu   ','Kelly   ','2025-11-17 20:55:53','calle calamina 17MADRID','Calle calamina 17MADRID','direccion2',NULL),(250,'clientes','editar id 6 Sanyu   ','Kelly   ','2025-11-17 20:56:12','','Calle calamina 17MADRID','direccion',NULL),(251,'clientes','editar id 6 Sanyu   ','Kelly   ','2025-11-17 20:56:14','Calle calamina 17MADRID','','direccion2',NULL),(252,'clientes','editar id 6 Sanyu   ','Kelly   ','2025-11-17 20:56:17','Calle calamina 17MADRID','Calle calamina 17 MADRID','direccion',NULL),(253,'clientes','editar id 6 Sanyu   ','Kelly   ','2025-11-17 20:56:54','CC','DNI','tipo_identificacion',NULL),(254,'clientes','editar id 14    ','Kelly   ','2025-11-17 20:58:46','','El Chapas Avila','primernombre',NULL),(255,'clientes','editar id 14 El Chapas Avila   ','Kelly   ','2025-11-17 20:59:00','El Chapas Avila','El Chapas Avila S.l','primernombre',NULL),(256,'clientes','editar id 14 El Chapas Avila S.l   ','Kelly   ','2025-11-17 20:59:03','2','1','tipodepersona',NULL),(257,'clientes','editar id 14  ','Kelly   ','2025-11-17 20:59:33',NULL,'EL CHAPAS AVILA S.L','razonsocial',NULL),(258,'clientes','editar id 14 EL CHAPAS AVILA S.L ','Kelly   ','2025-11-17 20:59:42','CC','DNI','tipo_identificacion',NULL),(259,'clientes','editar id 14 EL CHAPAS AVILA S.L ','Kelly   ','2025-11-17 20:59:59','','B06955694','cedula',NULL),(260,'clientes','editar id 14 EL CHAPAS AVILA S.L ','Kelly   ','2025-11-17 21:00:18','','Calle puerta de abajo','direccion',NULL),(261,'clientes','editar id 14 EL CHAPAS AVILA S.L ','Kelly   ','2025-11-17 21:00:25',NULL,'43','numerocalle',NULL),(262,'clientes','editar id 14 EL CHAPAS AVILA S.L ','Kelly   ','2025-11-17 21:00:46','','chapasdeavila@gmail.com','email',NULL),(263,'clientes','editar id 14 EL CHAPAS AVILA S.L ','Kelly   ','2025-11-17 21:00:56','660001','28430','codigopostal',NULL),(264,'permisos','editar id 4399 (modulo: MostrarCiudad, rol: ADMINISTRADOR)','SOFTWARE   ','2025-11-17 21:03:53','2','1','valor',NULL),(265,'permisos','editar id 4399 (modulo: MostrarCiudad, rol: ADMINISTRADOR)','SOFTWARE   ','2025-11-17 21:03:54','1','2','valor',NULL),(266,'clientes','1. editar ciudad del cliente con id=: 12, ciudad=AL PEDRETE,codigociudad=76020,departamento=MADRID, codigodepartamento=76,codigopostal=762040','SOFTWARE   ','2025-11-17 21:18:01',NULL,NULL,NULL,12),(267,'clientes','1. editar ciudad del cliente con id=: 14, ciudad=MADRID,codigociudad=76020,departamento=MADRID, codigodepartamento=76,codigopostal=762040','SOFTWARE   ','2025-11-17 21:19:33',NULL,NULL,NULL,14),(268,'ventasauxiliar','editar id 96 ','Kelly   ','2025-11-17 21:20:21','','Certificacion 2 : Albañileria inicial.    Resto de pladur ( tabiquería de lana de roca), tabiquería de ladrillo (30M2).','descripcion',NULL),(269,'clientes','editar id 15    ','Kelly   ','2025-11-17 21:22:22','','AURORA ELISA AFONSO NEVES','primernombre',NULL),(270,'clientes','editar id 15 AURORA ELISA AFONSO NEVES   ','Kelly   ','2025-11-17 21:22:55','','71504823PD','cedula',NULL),(271,'clientes','editar id 15 AURORA ELISA AFONSO NEVES   ','Kelly   ','2025-11-17 21:22:57','CC','NIF','tipo_identificacion',NULL),(272,'clientes','editar id 15 AURORA ELISA AFONSO NEVES   ','Kelly   ','2025-11-17 21:23:19','','C/ALCDE MANUEL PLATAS VARELA # 119 P:1D','direccion',NULL),(273,'clientes','editar id 15 AURORA ELISA AFONSO NEVES   ','Kelly   ','2025-11-17 21:23:34',NULL,'1D','numerocalle',NULL),(274,'clientes','editar id 15 AURORA ELISA AFONSO NEVES   ','Kelly   ','2025-11-17 21:24:37',NULL,'AURORA ELISA AFONSO NEVES','razonsocial',NULL),(275,'clientes','1. editar ciudad del cliente con id=: 15, ciudad=MADRID,codigociudad=76020,departamento=MADRID, codigodepartamento=76,codigopostal=762040','Kelly   ','2025-11-17 21:24:56',NULL,NULL,NULL,15),(276,'clientes','editar id 15 AURORA ELISA AFONSO NEVES   ','Kelly   ','2025-11-17 21:25:04','762040','','codigopostal',NULL),(277,'ventasauxiliar','editar id 97 ','Kelly   ','2025-11-17 21:26:19','','Abono para pedido de ventanas especificadas en el contrato.','descripcion',NULL),(278,'clientes','editar id 10 Luis Miguel Aguado ','Kelly   ','2025-11-21 15:28:37','Aguado','Barbero','primerapellido',NULL),(279,'clientes','editar id 10 Luis Miguel Barbero ','Kelly   ','2025-11-21 15:28:49',NULL,'Aguado','segundoapellido',NULL),(280,'ventasauxiliar','editar id 99 ','Kelly   ','2025-11-21 15:30:20','','PROTECTOR LITHIUM COMPLEX MOLYB R2 V320.         Matricula: E8420BGR.','descripcion',NULL),(281,'ventasauxiliar','editar id 100 ','Kelly   ','2025-11-21 15:31:55','','Mantenimiento maquina:  Caterpillar M320.    - Bastidor: 6WL00250.       -Matrícula: E1129BDL.','descripcion',NULL),(282,'ventasauxiliar','editar id 101 ','Kelly   ','2025-11-21 15:33:31','','Válvula reguladora.','descripcion',NULL),(283,'ventasauxiliar','editar id 102 ','Kelly   ','2025-11-21 15:34:07','','6 Dientes autoafilables T30','descripcion',NULL),(284,'ventasauxiliar','editar id 103 ','Kelly   ','2025-11-21 15:34:45','','Bulón 0,50cm','descripcion',NULL),(285,'ventasauxiliar','editar id 104 ','Kelly   ','2025-11-21 15:35:14','','Sensor rpm.','descripcion',NULL),(286,'ventasauxiliar','editar id 105 ','Kelly   ','2025-11-21 15:37:37','','Pago jornal de brigada de obra civil y mantenimiento de máquinas en zona de Teruel, incluidos dieta y transporte.','descripcion',NULL),(287,'ventasauxiliar','editar id 106 ','Kelly   ','2025-11-21 15:38:04','','Trabajos de obra civil fines de semana y festivos.','descripcion',NULL),(288,'ventasauxiliar','editar id 107 ','Kelly   ','2025-11-21 15:42:57','','Repercisión por M2 de superficie rehabilitada de obra, de ayudas de cualquier trabajo de albañilería, necesarias para reposición de la infraestructura común de telecomunicaciones (ICT) formada por: acometida, canalizaciones y registro de enlace, recintos,canalizaciones y registros principales y secu','descripcion',NULL),(289,'ventasauxiliar','editar id 108 ','Kelly   ','2025-11-21 16:20:29','','Pavimento continuo de microcemento, de 3 mm de espesor, realizado sobre superficie absorbente. IMPRIMACiÓN: a base de resinas sintéticas en dispersión acuosa, diluida en dos partes de agua. CAPABASE: microcemento monocomponente, color blanco, en dos capas,(1kg/m2 cada capa) y malla de fibra de vidri','descripcion',NULL),(290,'ventasauxiliar','editar id 109 ','Kelly   ','2025-11-21 16:25:00','','Repercusión por M2 de superficie rehabilitada de obra, de ayudas de cualquier trabajo de labañilería, necesarias para reposición de la infraestructura común de telecomunicaciones (ICT) formada por: acometida, canalizaciones y registro de enlace, recinto, canalizaciones y registros principales y secu','descripcion',NULL),(291,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-11-21 16:28:39','','BORJA','primernombre',NULL),(292,'clientes','editar id 8 BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ','Kelly   ','2025-11-21 16:29:00',NULL,'ROMERO','segundonombre',NULL),(293,'ventasauxiliar','editar id 110 ','Kelly   ','2025-11-21 16:31:59','','Repercusión por M2 de superficie rehabilitada de obra, de ayudas de cualquier trabajo de labañilería, necesarias para reposición de la infraestructura común de telecomunicaciones (ICT) formada por: acometida, canalizaciones y registro de enlace, recinto, canalizaciones y registros principales y secu','descripcion',NULL),(294,'ventasauxiliar','editar id 111 ','Kelly   ','2025-11-21 16:36:58','','Demolición de forjadode viguetas metálicas y entrevidado de tableto cerámico machihembrado con capa de compresión, realizado con martillo neumático y equipo de oxicorte, previo levantado del pavimento y su base, y carga manual sobre camión o contenedor. (NAVE INTERIOR Y CASETA EXTERIOR)','descripcion',NULL),(295,'ventasauxiliar','editar id 113 ','Kelly   ','2025-11-21 16:44:33','','Desmontaje de covertura de teja de hormigón perfil doble romana, colocada con mortero a menos de 20m de altura, en cubierta inclinada a dos aguas con una pendiente media de 30% con medios manuales y recuperación del 10% del material para su posterior ubicación en otro emplazamiento, siendo el orden ','descripcion',NULL),(296,'ventasauxiliar','editar id 114 ','Kelly   ','2025-11-21 16:45:20','','Demolición de falso techo de placas de yeso o de escayola, situado a una altura menor de 4m, con medios manuales, sin deteriorar los elementos constructivos contiguos, y cargar manual sobre camión o contenedor.','descripcion',NULL),(297,'ventasauxiliar','editar id 115 ','Kelly   ','2025-11-21 16:45:56','','Cobretura de paneles sándwich acústicos de acero galvanizado, modelo P5G 100 LAC ACH de 100mm de espesor, formados por cada exterior de chapa grecada con cinco grecas acabado prelacado, Granite Standard, RC3 y RUV2, según UNE-EN 10169, de 0,5mm de espesor, alma aislante de lana de roca de densidad m','descripcion',NULL),(298,'ventasauxiliar','editar id 116 ','Kelly   ','2025-11-21 16:46:57','','GESTIÓN DE PROYECTO 10%','descripcion',NULL),(299,'ventasauxiliar','editar id 117 ','Kelly   ','2025-11-21 16:51:30','','Trabajos de obra y mantenimiento de maquinaria con brigada especializada, incluido gastos de desplazamientos.','descripcion',NULL),(300,'ventasauxiliar','editar id 118 ','Kelly   ','2025-11-21 16:52:00','','trabajos de mantenimientos fines de semana','descripcion',NULL),(301,'ventasauxiliar','editar id 119 ','Kelly   ','2025-11-21 16:55:46','','Mano de obra especializada para fase 1 de cimentación y estructura. Cubre los costes directos asiciados al personal (oficiales, peones y encargados) dedicado a la preparación del terreno, excavación, colocación de armaduras y el vertido de vibrado de hormigón para los elementos portantes ( zapatas, ','descripcion',NULL),(302,'ventasauxiliar','editar id 120 ','Kelly   ','2025-11-21 16:57:03','','Mano de obra especializada para fase 1 de cimentación y estructura. Cubre los costes directos asiciados al personal (oficiales, peones y encargados) dedicado a la preparación del terreno, excavación, colocación de armaduras y el vertido de vibrado de hormigón para los elementos portantes ( zapatas, ','descripcion',NULL),(303,'ventasauxiliar','editar id 121 ','Kelly   ','2025-11-21 16:58:20','','Red interior de evacuación insonorizada, para cuarto de baño con dotación para: inodoro, lavabo sencillo, ducha , bañera, bidé, realizada con tubo de polipropileno con nivel de insonoración medio para la red de desagues.','descripcion',NULL),(304,'ventasauxiliar','editar id 122 ','Kelly   ','2025-11-21 16:59:16','','Falso techo continuo suspendido, liso, situado a una altura mayor o igual a 4m, con nivel de calidad del acabado Q2, sistema T-45/600 /1x15 N PLADUR ( 15+18,3), constiruido por: ESTRUCTURA: estructura metálica de acero galvanizado de perfiles primarios T-45, de 45mm de anchura y 0,6 mm de espesor co','descripcion',NULL),(305,'ventasauxiliar','editar id 123 ','Kelly   ','2025-11-21 16:59:55','','Tabique sencillo (15+48+15)/400(48) (2hidrofugado), con placas de yeso laminado, de 78 mm de espesor total, con nivel de calidad del acabado estándar (Q2), formado por una estructura simple de perfiles de chapa de acero galvanizado de 48mm de anchura, a base de montantes (elementos verticales) separ','descripcion',NULL),(306,'ventasauxiliar','editar id 124 ','Kelly   ','2025-11-21 17:00:49','','Gestion de proyecto','descripcion',NULL),(307,'ventasauxiliar','editar id 125 ','Kelly   ','2025-11-21 17:02:56','','Red electrica de distribución interior para NAVE INDUSTRIAL de 269 m2, compuesta de : cuadro general de mando y protección; circuito interiores de cableado bajo tubo protector de PVC flexible: 2circuitos para alumbrado, 2 circuitos para tomas de corriente, 1 circuito para calefacción eléctrica, 1 ci','descripcion',NULL),(308,'ventasauxiliar','editar id 126 ','Kelly   ','2025-11-21 17:03:20','','Red electrica de distribucion para oficina de 61 m2 compuesta de : cuadro general de mando y protección; circuitos interiores con cableado bajo tubo protector de PVC flexible: 1 circuito para alumbrado, 1 circuito para tomas de corriente, 1 circuito para calefacción eléctrica,1 circuito para aire ac','descripcion',NULL),(309,'ventasauxiliar','editar id 127 ','Kelly   ','2025-11-21 17:03:42','','Red electrica de distribucion para oficina de 31 m2 compuesta de : cuadro general de mando y protección; circuitos interiores con cableado bajo tubo protector de PVC flexible: 1 circuito para alumbrado, 1 circuito para tomas de corriente, 1 circuito para calefacción eléctrica,1 circuito para aire ac','descripcion',NULL),(310,'ventasauxiliar','editar id 128 ','Kelly   ','2025-11-21 17:04:02','','Mano de obra estrucctura metálica','descripcion',NULL),(311,'ventasauxiliar','editar id 129 ','Kelly   ','2025-11-21 17:04:27','','Gestión de proyectos','descripcion',NULL),(312,'ventasauxiliar','editar id 130 ','Kelly   ','2025-11-21 17:08:27','','Mano de obra especializada de mantenimiento y obra civil fuera de Madrid incluido transporte','descripcion',NULL),(313,'ventasauxiliar','editar id 131 ','Kelly   ','2025-11-21 17:08:56','','Trabajos festivos y fines de semana de obra civil y mantenimiento.','descripcion',NULL),(314,'ventasauxiliar','editar id 132 ','Kelly   ','2025-11-21 17:10:28','','Descripción certificación 1 M2 Estructura metálica realizada con pórticos y correas de acero UNE-EN 10025 S275JR, en perfiles laminados en caliente, de la serie IPN, IPE, HEA,HEB o HEM, acabado imprimación antioxidante, con uniones soldadas en obra, con una cuantía de acero de 32,8 kg/m2, para dista','descripcion',NULL),(315,'ventasauxiliar','editar id 133 ','Kelly   ','2025-11-21 17:11:45','','UD carpintería exterior de madera de pino, para ventana abisagrada, formada por una hoja oscilobatiente, de apertura hacia el interior de 600x600 mm, hoja de 68x78 mm de sección y marco de 68x78 mm, moldura clásica, junquillos, tapajuntas de madera maciza de 70x15 mm y vierteaguas en el perfil inter','descripcion',NULL),(316,'ventasauxiliar','editar id 134 ','Kelly   ','2025-11-21 17:12:19','','Instalación de mano de obra carpintería','descripcion',NULL),(317,'ventasauxiliar','editar id 135 ','Kelly   ','2025-11-21 17:14:16','','Instalación interior de fontaneria para cuarto de baño con dotacion para: inodoro, lavabo sencillo, ducha con columna, bañera,  bidé realizada con tubo de polietileno reticulado (PE-X), para red de agua fría y caliente que conecta la derivación particular o una de sus ramificaciones con cada uno de ','descripcion',NULL),(318,'ventasauxiliar','editar id 136 ','Kelly   ','2025-11-21 17:14:43','','Instalación interior de fontaneria para cuarto de baño con dotacion para: inodoro, lavabo sencillo, ducha con columna, bañera,  bidé realizada con tubo de polietileno reticulado (PE-X), para red de agua fría y caliente que conecta la derivación particular o una de sus ramificaciones con cada uno de ','descripcion',NULL),(319,'ventasauxiliar','editar id 137 ','Kelly   ','2025-11-21 17:15:10','','Pavimento interior de pieza de gres porcelánico esmaltado, de 200 x 200x 10 mm, gama media, capacidad de absorción de agua E<0,5%, grupo Bla, según UNE-EN 14411, con resistencia al deslizamiento 15<Rd<=35 según UNE-EN 16165 y resbaladicidad clase 1 según CTE, SOPORTE: de mortero de cemento.COLOCACIÓ','descripcion',NULL),(320,'ventasauxiliar','editar id 138 ','Kelly   ','2025-11-21 17:15:48','','Rodamié de gres porcelánico, de 80 mm, gama básica. COLOCACIÓN: en capa fina, con adhesivo cementoso de fraguado normal, C1 sin ninguna característica adicional , gris. REJUNTADO: con mortero de juntas cementoso mejorado, con absorción de agua reducida y resistencia elevada a la abrasión tipo CG 2 W','descripcion',NULL),(321,'ventasauxiliar','editar id 139 ','Kelly   ','2025-11-21 17:16:22','','Puerta interior corredera para deble tabique con hueco, ciega de una hoha de 203x82,5x3,5 cm, de tablero de fibras acabado en melamina color blanco, con alma alveolar de papel kraft; precerco de pino país de 90x35 mm; galces de MDF, con revistamiento de melamina,color blanco de 90x20 mm; tapajuntas ','descripcion',NULL),(322,'ventasauxiliar','editar id 140 ','Kelly   ','2025-11-21 17:16:45','','Puerta interior abatible,ciega, de una hoja de 203x82,5x3,5 cm, de tablero aglomerado chapado con pino país, barnizada en taller, con plafones de forma recta; precerco de pino país 90x30 mm; galces de MDF, con rechapado de madera, de pino país de 90x20mm; con tapajuntas de MDF, con rechapado de made','descripcion',NULL),(323,'ventasauxiliar','editar id 141 ','Kelly   ','2025-11-21 17:17:16','','Aplicación manual de dos manos de pintura plástica, color blanco, acabado mate, textura lisa, la primera mano diluida con un 15 a 20 % de agua y la sihuiente diluida con un 5 a 10% de agua sin diluir ( rendimiento: 0, 1 l/m2 cada mano); previa aplicación de mano de imprimación acrilica, reguladora d','descripcion',NULL),(324,'ventasauxiliar','editar id 142 ','Kelly   ','2025-11-21 17:17:45','','Gestión de proyectos.','descripcion',NULL),(325,'ventasauxiliar','editar id 143 ','Kelly   ','2025-11-21 17:19:57','','M3 excavación de zanjas en terreno de ytánsito duro, de hasta 1,25m de profundidad máxima, con medios manuales y carga manual a camión.','descripcion',NULL),(326,'ventasauxiliar','editar id 144 ','Kelly   ','2025-11-21 17:20:29','','Relleno envolvente y principal de zanjas para instalaciones , con arena de 0 a 5 mm de diámetro y compactación en tongadas sucesivas de 20 cm de espesor máximo con bandas vibrante de guiado manual, hasta alcanzar una desindad seca no inferior al 95% de la máxima obtenida en ensayo proctor modificado','descripcion',NULL),(327,'ventasauxiliar','editar id 145 ','Kelly   ','2025-11-21 17:28:42','','Certificación 3: Enyesados y fontanería  base, enyesado de tabiques, 50% de fontaneria (puntos y saneamiento)','descripcion',NULL),(328,'facturas','editar id 2',' ','2025-11-25 13:10:25','2025-11-17 20:34:09','2025-10-06 20:34:09','fechacreacion',NULL),(329,'facturas','editar id 3',' ','2025-11-25 13:10:38','2025-11-17 20:35:53','2025-10-06 20:35:53','fechacreacion',NULL),(330,'facturas','editar id 4',' ','2025-11-25 13:10:50','2025-11-17 20:37:45','2025-10-20 20:37:45','fechacreacion',NULL),(331,'facturas','editar id 5',' ','2025-11-25 13:10:59','2025-11-17 20:39:24','2025-10-20 20:39:24','fechacreacion',NULL),(332,'facturas','editar id 6',' ','2025-11-25 13:11:03','2025-11-17 20:40:40','2025-10-20 20:40:40','fechacreacion',NULL),(333,'facturas','editar id 7',' ','2025-11-25 13:11:13','2025-11-17 20:44:13','2025-10-27 20:44:13','fechacreacion',NULL),(334,'facturas','editar id 8',' ','2025-11-25 13:11:34','2025-11-17 20:45:37','2025-10-27 20:45:37','fechacreacion',NULL),(335,'facturas','editar id 9',' ','2025-11-25 13:11:40','2025-11-17 20:47:14','2025-10-27 20:47:14','fechacreacion',NULL),(336,'facturas','editar id 10',' ','2025-11-25 13:11:46','2025-11-17 21:21:10','2025-10-28 21:21:10','fechacreacion',NULL),(337,'facturas','editar id 11',' ','2025-11-25 13:11:53','2025-11-21 15:25:54','2025-10-29 15:25:54','fechacreacion',NULL),(338,'facturas','editar id 12',' ','2025-11-25 13:12:04','2025-11-21 15:31:21','2025-10-30 15:31:21','fechacreacion',NULL),(339,'facturas','editar id 13',' ','2025-11-25 13:12:12','2025-11-21 15:36:18','2025-10-30 15:36:18','fechacreacion',NULL),(340,'facturas','editar id 14',' ','2025-11-25 13:12:27','2025-11-21 15:40:53','2025-10-30 15:40:53','fechacreacion',NULL),(341,'facturas','editar id 15',' ','2025-11-25 13:12:33','2025-11-21 15:44:14','2025-10-30 15:44:14','fechacreacion',NULL),(342,'facturas','editar id 16',' ','2025-11-25 13:12:39','2025-11-21 16:21:32','2025-10-30 16:21:32','fechacreacion',NULL),(343,'facturas','editar id 17',' ','2025-11-25 13:12:56','2025-11-21 16:26:17','2025-10-30 16:26:17','fechacreacion',NULL),(344,'facturas','editar id 18',' ','2025-11-25 13:13:01','2025-11-21 16:34:46','2025-10-30 16:34:46','fechacreacion',NULL),(345,'facturas','editar id 19',' ','2025-11-25 13:13:10','2025-11-21 16:47:41','2025-11-05 16:47:41','fechacreacion',NULL),(346,'facturas','editar id 20',' ','2025-11-25 13:13:18','2025-11-21 16:53:28','2025-11-10 16:53:28','fechacreacion',NULL),(347,'facturas','editar id 21',' ','2025-11-25 13:13:24','2025-11-21 16:56:15','2025-11-10 16:56:15','fechacreacion',NULL),(348,'facturas','editar id 22',' ','2025-11-25 13:13:29','2025-11-21 16:57:28','2025-11-10 16:57:28','fechacreacion',NULL),(349,'facturas','editar id 23',' ','2025-11-25 13:13:33','2025-11-21 17:01:40','2025-11-10 17:01:40','fechacreacion',NULL),(350,'facturas','editar id 24',' ','2025-11-25 13:13:45','2025-11-21 17:06:55','2025-11-11 17:06:55','fechacreacion',NULL),(351,'facturas','editar id 25',' ','2025-11-25 13:13:49','2025-11-21 17:09:52','2025-11-17 17:09:52','fechacreacion',NULL),(352,'facturas','editar id 26',' ','2025-11-25 13:13:54','2025-11-21 17:11:11','2025-11-17 17:11:11','fechacreacion',NULL),(353,'facturas','editar id 27',' ','2025-11-25 13:13:59','2025-11-21 17:13:02','2025-11-17 17:13:02','fechacreacion',NULL),(354,'facturas','editar id 28',' ','2025-11-25 13:14:06','2025-11-21 17:18:39','2025-11-17 17:18:39','fechacreacion',NULL),(355,'facturas','editar id 29',' ','2025-11-25 13:14:15','2025-11-21 17:22:38','2025-11-20 17:22:38','fechacreacion',NULL),(356,'facturas','editar id 30',' ','2025-11-25 13:14:22','2025-11-21 17:29:44','2025-11-20 17:29:44','fechacreacion',NULL),(357,'facturas','editar id 30',' ','2025-11-25 13:14:27','2025-11-20 17:29:44','2025-11-21 17:29:44','fechacreacion',NULL),(358,'ventasauxiliar','editar id 146 ','Kelly   ','2025-11-25 13:15:57','','Semana de trabajos de mantenimiento, maquinaria y obras auxiliares fuera de Madrid incluido transporte y comida e incluido los trabajos de fines de semana','descripcion',NULL),(359,'ventasauxiliar','editar id 147 ','Kelly   ','2025-11-25 13:20:41','','Certificación 1 demolición completa, elemento a elemento, con medios manuales y mécanicos de edificio de 421 m2 de superficie total, y carga mecánica sobre camión o contenedor, aislado, compuesto por 3 plantas sobre rasante con una altura adificada de 9,5 m. El edificio presenta una estructura de ho','descripcion',NULL),(360,'facturas','editar id 31',' ','2025-11-25 13:21:49','2025-11-25 13:17:02','2025-11-24 13:17:02','fechacreacion',NULL),(361,'facturas','editar id 32',' ','2025-11-25 13:24:06','2025-11-25 13:23:38','2025-11-24 13:23:38','fechacreacion',NULL),(362,'ventasauxiliar','editar id 148 ','Kelly   ','2025-11-25 13:26:02','','Viga de atado de hormigón armado, realizada con hormigón HA-25/F/20/XC2 fabricado em central, y vertido desde camión, y acero UNE-EN 10080 B 500 S, con una cuantía aproximada de 60 kg/m3. Incluido alambre de atar, y separadores.','descripcion',NULL),(363,'facturas','editar id 33',' ','2025-11-25 13:27:54','2025-11-25 13:26:48','2025-11-24 13:26:48','fechacreacion',NULL),(364,'ventasauxiliar','editar id 149 ','Kelly   ','2025-11-25 13:28:36','','Acometida general de saneamiento, para la evacuación de aguas resiaduales y/o pluviales a la red general del municipio, con una pendiente mínima del 2%, para la evacuación de aguas residuales y/o pluviales, formada por tubo de PVC liso, serie SN-2, rigidez anular nominal 2KN/m2, de 200 mm de diámetr','descripcion',NULL),(365,'facturas','editar id 34',' ','2025-11-25 13:30:33','2025-11-25 13:28:59','2025-11-24 13:28:59','fechacreacion',NULL),(366,'facturas','editar id 31 ',' ','2025-11-25 13:30:49','2025-11-25 13:17:02','2025-11-24','fecha_registrofactura',NULL),(367,'facturas','editar id 32 ',' ','2025-11-25 13:30:51','2025-11-25 13:23:38','2025-11-24','fecha_registrofactura',NULL),(368,'facturas','editar id 33 ',' ','2025-11-25 13:30:54','2025-11-25 13:26:48','2025-11-24','fecha_registrofactura',NULL),(369,'facturas','editar id 34 ',' ','2025-11-25 13:30:56','2025-11-25 13:28:59','2025-11-24','fecha_registrofactura',NULL);

--
-- Table structure for table `emailenviados`
--

CREATE TABLE `emailenviados` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT NULL,
  `texto` text,
  `destinatarios` text,
  `cantidad` int DEFAULT '1',
  `valorunitario` int DEFAULT '0',
  `valortotal` int DEFAULT '0',
  `response` text,
  PRIMARY KEY (`id`),
  KEY `cc` (`texto`(1024))
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `emailenviados`
--

INSERT INTO `emailenviados` (`id`, `fechacreacion`, `texto`, `destinatarios`, `cantidad`, `valorunitario`, `valortotal`, `response`) VALUES (9,'2025-06-10 01:48:10','{\"destinatarios\":[{\"email\":\"raulotalvaro@gmail.com\",\"name\":\"CONSUMIDOR FINAL   \"}],\"titulo\":\"Notificaciu00f3n de clave provisional\",\"from\":\"Control\",\"contenido\":\"    <!DOCTYPE html>\r\n    <html lang=\"es\" translate=\"no\">\r\n    <head>\r\n    <title>Notificaciu00f3n de clave provisional</title>\r\n    </head>\r\n    <body>            \r\n    <h1>Notificaciu00f3n de clave provisional</h1>\r\n    <p>Estimado/a <b>CONSUMIDOR FINAL   </b>,</p>\r\n    <p>Se le ha generado una clave provisional para acceder a nuestro sistema.</p>\r\n    <p>Su clave provisional es: <b>98674215</b></p>\r\n    <p>Le recomendamos cambiar esta clave temporal tan pronto como sea posible.</p>\r\n    <p>Si tiene alguna pregunta o necesita ayuda, no dude en contactarnos.</p>\r\n    <p>u00a1Gracias!</p>\r\n    </body>\r\n    </html>\"}',NULL,1,0,0,'Array\n(\n    [status_code] => 202\n    [headers] => Array\n        (\n            [Date] => Array\n                (\n                    [0] => Tue, 10 Jun 2025 06:48:11 GMT\n                )\n\n            [Content-Type] => Array\n                (\n                    [0] => text/html; charset=UTF-8\n                )\n\n            [Transfer-Encoding] => Array\n                (\n                    [0] => chunked\n                )\n\n            [Connection] => Array\n                (\n                    [0] => keep-alive\n                )\n\n            [Cf-Ray] => Array\n                (\n                    [0] => 94d6ebec4de8b73f-SLC\n                )\n\n            [X-Message-Id] => Array\n                (\n                    [0] => 6847d52b8e233b5f682f841c\n                )\n\n            [Cache-Control] => Array\n                (\n                    [0] => no-cache, private\n                )\n\n            [X-Apiquota-Remaining] => Array\n                (\n                    [0] => 99999\n                )\n\n            [X-Apiquota-Reset] => Array\n                (\n                    [0] => 2025-06-11T00:00:00Z\n                )\n\n            [X-Ratelimit-Limit] => Array\n                (\n                    [0] => 10\n                )\n\n            [X-Ratelimit-Remaining] => Array\n                (\n                    [0] => 9\n                )\n\n            [Strict-Transport-Security] => Array\n                (\n                    [0] => max-age=31536000; includeSubDomains\n                )\n\n            [Cf-Cache-Status] => Array\n                (\n                    [0] => DYNAMIC\n                )\n\n            [Server] => Array\n                (\n                    [0] => cloudflare\n                )\n\n        )\n\n    [body] => \n    [response] => GuzzleHttpPsr7Response Object\n        (\n            [reasonPhrase:GuzzleHttpPsr7Response:private] => Accepted\n            [statusCode:GuzzleHttpPsr7Response:private] => 202\n            [headers:GuzzleHttpPsr7Response:private] => Array\n                (\n                    [Date] => Array\n                        (\n                            [0] => Tue, 10 Jun 2025 06:48:11 GMT\n                        )\n\n                    [Content-Type] => Array\n                        (\n                            [0] => text/html; charset=UTF-8\n                        )\n\n                    [Transfer-Encoding] => Array\n                        (\n                            [0] => chunked\n                        )\n\n                    [Connection] => Array\n                        (\n                            [0] => keep-alive\n                        )\n\n                    [Cf-Ray] => Array\n                        (\n                            [0] => 94d6ebec4de8b73f-SLC\n                        )\n\n                    [X-Message-Id] => Array\n                        (\n                            [0] => 6847d52b8e233b5f682f841c\n                        )\n\n                    [Cache-Control] => Array\n                        (\n                            [0] => no-cache, private\n                        )\n\n                    [X-Apiquota-Remaining] => Array\n                        (\n                            [0] => 99999\n                        )\n\n                    [X-Apiquota-Reset] => Array\n                        (\n                            [0] => 2025-06-11T00:00:00Z\n                        )\n\n                    [X-Ratelimit-Limit] => Array\n                        (\n                            [0] => 10\n                        )\n\n                    [X-Ratelimit-Remaining] => Array\n                        (\n                            [0] => 9\n                        )\n\n                    [Strict-Transport-Security] => Array\n                        (\n                            [0] => max-age=31536000; includeSubDomains\n                        )\n\n                    [Cf-Cache-Status] => Array\n                        (\n                            [0] => DYNAMIC\n                        )\n\n                    [Server] => Array\n                        (\n                            [0] => cloudflare\n                        )\n\n                )\n\n            [headerNames:GuzzleHttpPsr7Response:private] => Array\n                (\n                    [date] => Date\n                    [content-type] => Content-Type\n                    [transfer-encoding] => Transfer-Encoding\n                    [connection] => Connection\n                    [cf-ray] => Cf-Ray\n                    [x-message-id] => X-Message-Id\n                    [cache-control] => Cache-Control\n                    [x-apiquota-remaining] => X-Apiquota-Remaining\n                    [x-apiquota-reset] => X-Apiquota-Reset\n                    [x-ratelimit-limit] => X-Ratelimit-Limit\n                    [x-ratelimit-remaining] => X-Ratelimit-Remaining\n                    [strict-transport-security] => Strict-Transport-Security\n                    [cf-cache-status] => Cf-Cache-Status\n                    [server] => Server\n                )\n\n            [protocol:GuzzleHttpPsr7Response:private] => 1.1\n            [stream:GuzzleHttpPsr7Response:private] => GuzzleHttpPsr7Stream Object\n                (\n                    [stream:GuzzleHttpPsr7Stream:private] => Resource id #135\n                    [size:GuzzleHttpPsr7Stream:private] => \n                    [seekable:GuzzleHttpPsr7Stream:private] => 1\n                    [readable:GuzzleHttpPsr7Stream:private] => 1\n                    [writable:GuzzleHttpPsr7Stream:private] => 1\n                    [uri:GuzzleHttpPsr7Stream:private] => php://temp\n                    [customMetadata:GuzzleHttpPsr7Stream:private] => Array\n                        (\n                        )\n\n                )\n\n        )\n\n)\n httpCode 200');

--
-- Table structure for table `enseres`
--

CREATE TABLE `enseres` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fechacreacion` datetime DEFAULT CURRENT_TIMESTAMP,
  `idusuario` int DEFAULT NULL,
  `enser` varchar(150) DEFAULT NULL,
  `clase` varchar(25) DEFAULT NULL,
  `estado` varchar(25) DEFAULT NULL,
  `valor` double DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `enseres`
--


--
-- Table structure for table `epss`
--

CREATE TABLE `epss` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `eps` varchar(120) NOT NULL DEFAULT '',
  `cc` bigint unsigned NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'KALDI',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `epss`
--


--
-- Table structure for table `estilos`
--

CREATE TABLE `estilos` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nombre` varchar(25) DEFAULT NULL,
  `estilo` text,
  `js` text,
  `html` text,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `estilos`
--

INSERT INTO `estilos` (`id`, `nombre`, `estilo`, `js`, `html`) VALUES (1,'general','',NULL,NULL),(3,'Política','','',''),(2,'Tienda virtual','.ficha-articulo-img{display:none !important;}\n.ficha-articulo-btn{position:absolute !important;top:76px !important;max-width:104px !important;}\n.ficha-articulo {\n    height: 130px !important;   \nmin-height: 100px !important;  \n} \n.ficha-articulo-titulo{\ncolor:#ff7514;\nfont-size:14px !important;\nfont-weight:bold !important;\n}\n.ficha-articulo-desc{\ncolor:red;\nfont-size:14px !important;\nfont-weight:bold !important;\n}\n.hero-tienda-logo{\nbackground:none !important','','');

--
-- Table structure for table `facturas`
--

CREATE TABLE `facturas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `observaciondelcleinte` varchar(200) DEFAULT NULL,
  `diasemana` varchar(200) DEFAULT NULL,
  `ordendia` int DEFAULT '0',
  `abonoinicial` int DEFAULT '0',
  `aliado` varchar(25) DEFAULT NULL,
  `IDMINUTA` int DEFAULT '0',
  `direccion` varchar(200) DEFAULT NULL,
  `barrio` varchar(50) DEFAULT NULL,
  `celular` varchar(50) DEFAULT NULL,
  `cliente` varchar(100) DEFAULT NULL,
  `horaentregadoaldomiciliario` datetime DEFAULT NULL,
  `horaentregadoalcliente` datetime DEFAULT NULL,
  `fecharesolucion` date DEFAULT NULL,
  `resolucion` varchar(20) DEFAULT NULL,
  `desde` int DEFAULT '1',
  `hasta` int DEFAULT '1',
  `iddomiciliario` int DEFAULT '0',
  `comandaf` varchar(11) DEFAULT NULL,
  `entregado` int DEFAULT '0',
  `despachado` int DEFAULT '0',
  `ese` int DEFAULT '0',
  `tienenc` int DEFAULT '0',
  `consecutivo` int NOT NULL DEFAULT '0',
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `horatotal` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `documento` varchar(2) NOT NULL DEFAULT 'V',
  `saldo` double NOT NULL DEFAULT '0',
  `observacion` text,
  `origen` varchar(25) DEFAULT NULL,
  `entrega` varchar(100) NOT NULL DEFAULT ' ',
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cc` int DEFAULT '2',
  `idmesa` int DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `descuento` double NOT NULL DEFAULT '0',
  `total` int DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `cerrado` int NOT NULL DEFAULT '0',
  `recibido` double NOT NULL DEFAULT '0',
  `devuelta` double NOT NULL DEFAULT '0',
  `iva` double DEFAULT '0',
  `vigenciadelcredito` int NOT NULL DEFAULT '0',
  `condicion` int NOT NULL DEFAULT '0',
  `fechavencimiento` date DEFAULT NULL,
  `ultimaedicion` datetime DEFAULT CURRENT_TIMESTAMP,
  `pedidonumero` varchar(50) DEFAULT NULL,
  `base` double NOT NULL DEFAULT '0',
  `inquiry` varchar(23) NOT NULL DEFAULT ' ',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1' COMMENT 'este vendedor no hizo toda la venta, solo abriÃƒÂ² la mesa',
  `emailenviado` int NOT NULL DEFAULT '0',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `fechaabonado` datetime DEFAULT NULL,
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODFORMAPAGO` varchar(5) DEFAULT '1',
  `codalmacen` varchar(25) DEFAULT '1',
  `TIPODELIVERY` varchar(1) NOT NULL DEFAULT '1',
  `n` varchar(1) NOT NULL DEFAULT 'B',
  `aliasespera` int NOT NULL DEFAULT '0',
  `codvendedor` int NOT NULL DEFAULT '0',
  `impresiones` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `consecutivoenviado` int DEFAULT '0',
  `esbarra` varchar(1) NOT NULL DEFAULT 'F',
  `CODTARIFA` varchar(1) NOT NULL DEFAULT '1',
  `ivainc` varchar(1) NOT NULL DEFAULT 'T',
  `codzona` int NOT NULL DEFAULT '1',
  `domicilio` double NOT NULL DEFAULT '0',
  `cedula` varchar(15) NOT NULL DEFAULT '999999',
  `codigociudad` varchar(7) DEFAULT '66001',
  `email` varchar(100) DEFAULT NULL,
  `codigopostal` varchar(7) DEFAULT '660001',
  `codigodepartamento` varchar(7) DEFAULT '66',
  `departamento` varchar(25) DEFAULT 'RISARALDA',
  `ciudad` varchar(25) DEFAULT 'PEREIRA',
  `cufe` varchar(250) DEFAULT NULL,
  `resoluciondesde` date DEFAULT NULL,
  `resolucionhasta` date DEFAULT NULL,
  `id_tipo_persona` int DEFAULT '0',
  `prefijofe` varchar(5) DEFAULT NULL,
  `consecutivofe` int DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `valornc` double DEFAULT '0',
  `notacreditofe` int DEFAULT '0',
  `cufenc` varchar(250) DEFAULT NULL,
  `numlineas` int DEFAULT '0',
  `razonsocial` varchar(200) DEFAULT NULL,
  `nombrecomercial` varchar(200) DEFAULT NULL,
  `tipodepersona` int DEFAULT '0',
  `tipo_identificacion` varchar(5) DEFAULT NULL,
  `dv` int DEFAULT NULL,
  `sfiscalresponsibilities` varchar(10) DEFAULT NULL,
  `regimenfiscal` int DEFAULT NULL,
  `contacto` varchar(100) DEFAULT NULL,
  `prefijo` varchar(5) DEFAULT 'FV',
  `conceptoanulado` varchar(150) DEFAULT NULL,
  `garantiahasta` date DEFAULT NULL,
  `cantidadmediosdepago` int DEFAULT '0',
  `snumsop` varchar(25) DEFAULT NULL,
  `inumoper` varchar(25) DEFAULT NULL,
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'texasburgers',
  `numeroabajo` int DEFAULT '0',
  `alergenos` varchar(50) DEFAULT '0',
  `facturatienemodificadores` int DEFAULT '0',
  `conseuctivorappi` varchar(11) DEFAULT NULL,
  `delivery_method` varchar(25) DEFAULT NULL,
  `payment_method` varchar(25) DEFAULT NULL,
  `COD_CLIENTE_FRONT` int DEFAULT '0',
  `tipofactura` varchar(1) DEFAULT 'V' COMMENT 'Tipo de Factura: P=Parking, V=Ventas',
  `ssignature` text,
  `sqr` text,
  `observacionesnovedad` varchar(150) DEFAULT NULL,
  `horapreparado` datetime DEFAULT NULL,
  `resdianfe` varchar(25) DEFAULT NULL,
  `desdefe` int DEFAULT '0',
  `hastafe` int DEFAULT '0',
  `fecharesfe` date DEFAULT NULL,
  `fechafe` date DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `mediodoepagointegracion` varchar(25) DEFAULT NULL,
  `CONFIRMED` datetime DEFAULT NULL,
  `pancaliente` int DEFAULT '0',
  `DISPATCHED` datetime DEFAULT NULL,
  `CONCLUDED` datetime DEFAULT NULL,
  `CANCELLED` datetime DEFAULT NULL,
  `prefijoenviado` varchar(4) DEFAULT NULL,
  `aceptado` bit(1) DEFAULT b'0',
  `horaaceptado` datetime DEFAULT NULL,
  `fecha_registrofactura` datetime DEFAULT CURRENT_TIMESTAMP,
  `enviadoataxxa` bit(1) DEFAULT b'0',
  `horanovedad` datetime DEFAULT NULL,
  `novedad` bit(1) DEFAULT b'0',
  `costofactura` double DEFAULT '0',
  `aceptado_domiciliario` bit(1) DEFAULT b'0',
  `hora_aceptado_domiciliario` datetime DEFAULT NULL,
  `prooduco_recibido_domiciliario` bit(1) DEFAULT b'0',
  `hora_prooduco_recibido_domiciliario` datetime DEFAULT NULL,
  `impreso` bit(1) DEFAULT b'0',
  `pedidorechazado` bit(1) DEFAULT b'0',
  `horapedidorechazado` datetime DEFAULT NULL,
  `domicilioconciliado` bit(1) DEFAULT b'0',
  `fechancdian` datetime DEFAULT NULL,
  `tipodevolucion` varchar(25) DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `nombrecomercialfactura` varchar(50) DEFAULT NULL,
  `clasificacioncliente` varchar(20) DEFAULT 'CLIENTE FINAL',
  `codeudor` varchar(50) DEFAULT NULL,
  `telefonoocodeudor` varchar(30) DEFAULT NULL,
  `parentescocodeudor` varchar(25) DEFAULT NULL,
  `plazo` int DEFAULT NULL,
  `valorcuota` int DEFAULT NULL,
  `valorcuotainicial` int DEFAULT NULL,
  `fechacuotainicial` date DEFAULT NULL,
  `cuotasapartirde` date DEFAULT NULL,
  `modalidad` int DEFAULT NULL,
  `comensales_factura` int DEFAULT '0',
  `identificador` varchar(25) DEFAULT NULL,
  `impazucaradas` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `descuentoporflete` int DEFAULT '0',
  `otrosdescuentos` int DEFAULT '0',
  `sobrecargoeventosf` double DEFAULT '0',
  `forzar2222` varchar(2) DEFAULT 'no',
  `fechafinfe` date DEFAULT NULL,
  `fechahastape` date DEFAULT NULL,
  `prefijope` varchar(4) DEFAULT NULL,
  `fechafinposelectronico` date DEFAULT NULL,
  `fechaposelectronico` date DEFAULT NULL,
  `hastaposelectronico` int DEFAULT '0',
  `desdeposelectronico` int DEFAULT '0',
  `resposelectronico` varchar(25) DEFAULT NULL,
  `cufepos` varchar(250) DEFAULT NULL,
  `idmandante` int DEFAULT '0',
  `ZipKey` varchar(50) DEFAULT '',
  `error_taxxa` int DEFAULT '0',
  `revisiones` int DEFAULT '0',
  `repeticionesfe` int DEFAULT '0',
  `wdocumentstatus` varchar(1) DEFAULT NULL,
  `servicio_comedor` varchar(2) DEFAULT 'no',
  `retencion` double DEFAULT '0',
  `idruta` int DEFAULT '0',
  `centrodecostos` varchar(5) DEFAULT NULL,
  `periodicidad` varchar(5) DEFAULT NULL,
  `fechaprimercuota` date DEFAULT NULL,
  `cantidaddecuotas` int DEFAULT '0',
  `idusuarioenviadian` int DEFAULT '0',
  `moduloenvia` varchar(25) DEFAULT NULL,
  `estadofe` varchar(25) DEFAULT 'PENDIENTE',
  `urlfacturaelectronica` varchar(250) DEFAULT 'PENDIENTE',
  `uuid` varchar(50) DEFAULT NULL,
  `idusuarioanula` int DEFAULT '0',
  `grupofactura` varchar(25) DEFAULT NULL,
  `clasificacionfactura` varchar(20) DEFAULT NULL,
  `fecha_operacion` date DEFAULT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`),
  KEY `facturas_ibfk_3` (`idcliente`),
  CONSTRAINT `facturas_ibfk_1` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `facturas_ibfk_2` FOREIGN KEY (`idz`) REFERENCES `z` (`id`),
  CONSTRAINT `facturas_ibfk_3` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`),
  CONSTRAINT `facturas_ibfk_4` FOREIGN KEY (`idvendedor`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `facturas`
--

INSERT INTO `facturas` (`id`, `observaciondelcleinte`, `diasemana`, `ordendia`, `abonoinicial`, `aliado`, `IDMINUTA`, `direccion`, `barrio`, `celular`, `cliente`, `horaentregadoaldomiciliario`, `horaentregadoalcliente`, `fecharesolucion`, `resolucion`, `desde`, `hasta`, `iddomiciliario`, `comandaf`, `entregado`, `despachado`, `ese`, `tienenc`, `consecutivo`, `idcliente`, `fechacreacion`, `horatotal`, `documento`, `saldo`, `observacion`, `origen`, `entrega`, `cobra`, `fecha`, `cc`, `idmesa`, `bruto`, `descuento`, `total`, `idusuario`, `idz`, `abonado`, `idfacturaqueabona`, `cerrado`, `recibido`, `devuelta`, `iva`, `vigenciadelcredito`, `condicion`, `fechavencimiento`, `ultimaedicion`, `pedidonumero`, `base`, `inquiry`, `esbolsillo`, `idvendedor`, `emailenviado`, `escortesia`, `idcaja`, `mediodepago`, `nota`, `fechaabonado`, `servicio`, `subido`, `CODFORMAPAGO`, `codalmacen`, `TIPODELIVERY`, `n`, `aliasespera`, `codvendedor`, `impresiones`, `numservicio`, `NUMLINEA`, `consecutivoenviado`, `esbarra`, `CODTARIFA`, `ivainc`, `codzona`, `domicilio`, `cedula`, `codigociudad`, `email`, `codigopostal`, `codigodepartamento`, `departamento`, `ciudad`, `cufe`, `resoluciondesde`, `resolucionhasta`, `id_tipo_persona`, `prefijofe`, `consecutivofe`, `COD_SATELITE`, `valornc`, `notacreditofe`, `cufenc`, `numlineas`, `razonsocial`, `nombrecomercial`, `tipodepersona`, `tipo_identificacion`, `dv`, `sfiscalresponsibilities`, `regimenfiscal`, `contacto`, `prefijo`, `conceptoanulado`, `garantiahasta`, `cantidadmediosdepago`, `snumsop`, `inumoper`, `domicilioexterno`, `pv`, `numeroabajo`, `alergenos`, `facturatienemodificadores`, `conseuctivorappi`, `delivery_method`, `payment_method`, `COD_CLIENTE_FRONT`, `tipofactura`, `ssignature`, `sqr`, `observacionesnovedad`, `horapreparado`, `resdianfe`, `desdefe`, `hastafe`, `fecharesfe`, `fechafe`, `placa`, `mediodoepagointegracion`, `CONFIRMED`, `pancaliente`, `DISPATCHED`, `CONCLUDED`, `CANCELLED`, `prefijoenviado`, `aceptado`, `horaaceptado`, `fecha_registrofactura`, `enviadoataxxa`, `horanovedad`, `novedad`, `costofactura`, `aceptado_domiciliario`, `hora_aceptado_domiciliario`, `prooduco_recibido_domiciliario`, `hora_prooduco_recibido_domiciliario`, `impreso`, `pedidorechazado`, `horapedidorechazado`, `domicilioconciliado`, `fechancdian`, `tipodevolucion`, `deberecoger`, `nombrecomercialfactura`, `clasificacioncliente`, `codeudor`, `telefonoocodeudor`, `parentescocodeudor`, `plazo`, `valorcuota`, `valorcuotainicial`, `fechacuotainicial`, `cuotasapartirde`, `modalidad`, `comensales_factura`, `identificador`, `impazucaradas`, `impultraprocesados`, `descuentoporflete`, `otrosdescuentos`, `sobrecargoeventosf`, `forzar2222`, `fechafinfe`, `fechahastape`, `prefijope`, `fechafinposelectronico`, `fechaposelectronico`, `hastaposelectronico`, `desdeposelectronico`, `resposelectronico`, `cufepos`, `idmandante`, `ZipKey`, `error_taxxa`, `revisiones`, `repeticionesfe`, `wdocumentstatus`, `servicio_comedor`, `retencion`, `idruta`, `centrodecostos`, `periodicidad`, `fechaprimercuota`, `cantidaddecuotas`, `idusuarioenviadian`, `moduloenvia`, `estadofe`, `urlfacturaelectronica`, `uuid`, `idusuarioanula`, `grupofactura`, `clasificacionfactura`, `fecha_operacion`) VALUES (1,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,199,6,'2025-10-06 20:15:55','2025-11-17 20:15:55','V',0,NULL,'CLIENTES',' ',' ','2025-10-06 20:15:55',2,1,12429.12,0,12429,5,1,0,0,0,0,-10272,2157.12,0,0,'2025-10-06','2025-11-17 20:15:55',NULL,10272,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:15:55',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(2,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,200,6,'2025-10-06 20:34:09','2025-11-17 20:34:09','V',0,NULL,'CLIENTES',' ',' ','2025-10-06 20:34:09',2,1,12063.7,0,12064,5,1,0,0,0,0,-9970,2093.7,0,0,'2025-10-06','2025-11-17 20:34:09',NULL,9970,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:34:09',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(3,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,201,6,'2025-10-06 20:35:53','2025-11-17 20:35:53','V',0,NULL,'CLIENTES',' ',' ','2025-10-06 20:35:53',2,1,13761.33,0,13761,5,1,0,0,0,0,-11373,2388.33,0,0,'2025-10-06','2025-11-17 20:35:53',NULL,11373,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:35:53',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(4,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,202,6,'2025-10-20 20:37:45','2025-11-17 20:37:45','V',0,NULL,'CLIENTES',' ',' ','2025-10-20 20:37:45',2,1,12870.77,0,12871,5,1,0,0,0,0,-10637,2233.77,0,0,'2025-10-20','2025-11-17 20:37:45',NULL,10637,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:37:45',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(5,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,203,6,'2025-10-20 20:39:24','2025-11-17 20:39:24','V',0,NULL,'CLIENTES',' ',' ','2025-10-20 20:39:24',2,1,12669.91,0,12670,5,1,0,0,0,0,-10471,2198.91,0,0,'2025-10-20','2025-11-17 20:39:24',NULL,10471,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:39:24',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(6,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,204,6,'2025-10-20 20:40:40','2025-11-17 20:40:40','V',0,NULL,'CLIENTES',' ',' ','2025-10-20 20:40:40',2,1,12266.98,0,12267,5,1,0,0,0,0,-10138,2128.98,0,0,'2025-10-20','2025-11-17 20:40:40',NULL,10138,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:40:40',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(7,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,205,6,'2025-10-27 20:44:13','2025-11-17 20:44:13','V',0,NULL,'CLIENTES',' ',' ','2025-10-27 20:44:13',2,1,11741.0414,0,11741,5,1,0,0,0,0,-9703,2037.7014,0,0,'2025-10-27','2025-11-17 20:44:13',NULL,9703.34,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:44:13',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(8,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,206,6,'2025-10-27 20:45:37','2025-11-17 20:45:37','V',0,NULL,'CLIENTES',' ',' ','2025-10-27 20:45:37',2,1,12383.9386,0,12384,5,1,0,0,0,0,-10235,2149.2786,0,0,'2025-10-27','2025-11-17 20:45:37',NULL,10234.66,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:45:37',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(9,NULL,NULL,0,0,NULL,0,'','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,207,6,'2025-10-27 20:47:14','2025-11-17 20:47:14','V',0,NULL,'CLIENTES',' ',' ','2025-10-27 20:47:14',2,1,13161.1579,0,13161,5,1,0,0,0,0,-10877,2284.1679,0,0,'2025-10-27','2025-11-17 20:47:14',NULL,10876.99,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 20:47:14',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(10,NULL,NULL,0,0,NULL,0,'Calle puerta de abajo','','','EL CHAPAS AVILA S.L ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,208,14,'2025-10-28 21:21:10','2025-11-17 21:21:10','V',0,NULL,'CLIENTES',' ',' ','2025-10-28 21:21:10',2,1,11858,0,11858,5,1,0,0,0,0,-9800,2058,0,0,'2025-10-28','2025-11-17 21:21:10',NULL,9800,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B06955694','76020','chapasdeavila@gmail.com','762040','76','MADRID','MADRID',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'EL CHAPAS AVILA S.L','',1,'DNI',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-17 21:21:10',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(11,NULL,NULL,0,0,NULL,0,'C/ALCDE MANUEL PLATAS VARELA # 119 P:1D','','','AURORA ELISA AFONSO NEVES   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,209,15,'2025-10-29 15:25:54','2025-11-21 15:25:54','V',0,NULL,'CLIENTES',' ',' ','2025-10-29 15:25:54',2,1,1974.72,0,1975,5,1,0,0,0,0,-1632,342.72,0,0,'2025-10-29','2025-11-21 15:25:54',NULL,1632,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'71504823PD','76020','','','76','MADRID','MADRID',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'AURORA ELISA AFONSO NEVES','',2,'NIF',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 15:25:54',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(12,NULL,NULL,0,0,NULL,0,'','Getafe','','Luis Miguel Barbero Aguado',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,210,10,'2025-10-30 15:31:21','2025-11-21 15:31:21','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 15:31:21',2,1,1633.5,0,1634,5,1,0,0,0,0,-1350,283.5,0,0,'2025-10-30','2025-11-21 15:31:21',NULL,1350,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'70813204E','66001','','28906','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'DNI',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 15:31:21',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(13,NULL,NULL,0,0,NULL,0,'','COLMENERO','','Juan Manuel Morientes ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,211,11,'2025-10-30 15:36:18','2025-11-21 15:36:18','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 15:36:18',2,1,1012.77,0,1013,5,1,0,0,0,0,-837,175.76999999999998,0,0,'2025-10-30','2025-11-21 15:36:18',NULL,837,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'76121865F','66001','','28044','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'','',2,'DNI',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 15:36:18',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(14,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,212,6,'2025-10-30 15:40:53','2025-11-21 15:40:53','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 15:40:53',2,1,12332.9855,0,12333,5,1,0,0,0,0,-10193,2140.4355,0,0,'2025-10-30','2025-11-21 15:40:53',NULL,10192.55,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 15:40:53',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(15,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,213,6,'2025-10-30 15:44:14','2025-11-21 15:44:14','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 15:44:14',2,1,13024.0407,0,13024,5,1,0,0,0,0,-10764,2260.3707,0,0,'2025-10-30','2025-11-21 15:44:14',NULL,10763.67,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 15:44:14',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(16,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,214,6,'2025-10-30 16:21:32','2025-11-21 16:21:32','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 16:21:32',2,1,13054.0971,0,13054,5,1,0,0,0,0,-10789,2265.5871,0,0,'2025-10-30','2025-11-21 16:21:32',NULL,10788.51,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:21:32',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(17,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,215,6,'2025-10-30 16:26:17','2025-11-21 16:26:17','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 16:26:17',2,1,2420,0,2420,5,1,0,0,0,0,-2000,420,0,0,'2025-10-30','2025-11-21 16:26:17',NULL,2000,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:26:17',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(18,NULL,NULL,0,0,NULL,0,'','Fuenlabrada Madrid','','BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,216,8,'2025-10-30 16:34:46','2025-11-21 16:34:46','V',0,NULL,'CLIENTES',' ',' ','2025-10-30 16:34:46',2,1,2854.0875,0,2854,5,1,0,0,0,0,-2359,495.3375,0,0,'2025-10-30','2025-11-21 16:34:46',NULL,2358.75,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87705638','66001','','28946','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L','',1,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:34:46',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(19,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,217,6,'2025-11-05 16:47:41','2025-11-21 16:47:41','V',0,NULL,'CLIENTES',' ',' ','2025-11-05 16:47:41',2,1,28872.367205,0,28872,5,1,0,0,0,0,-23861,5010.906705,0,0,'2025-11-05','2025-11-21 16:47:41',NULL,23861.4605,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:47:41',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(20,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,218,6,'2025-11-10 16:53:28','2025-11-21 16:53:28','V',0,NULL,'CLIENTES',' ',' ','2025-11-10 16:53:28',2,1,12922.8,0,12923,5,1,0,0,0,0,-10680,2242.8,0,0,'2025-11-10','2025-11-21 16:53:28',NULL,10680,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:53:28',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(21,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,219,6,'2025-11-10 16:56:15','2025-11-21 16:56:15','V',0,NULL,'CLIENTES',' ',' ','2025-11-10 16:56:15',2,1,12920.9971,0,12921,5,1,0,0,0,0,-10679,2242.4871,0,0,'2025-11-10','2025-11-21 16:56:15',NULL,10678.51,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:56:15',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(22,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,220,6,'2025-11-10 16:57:28','2025-11-21 16:57:28','V',0,NULL,'CLIENTES',' ',' ','2025-11-10 16:57:28',2,1,12629.8469,0,12630,5,1,0,0,0,0,-10438,2191.9569,0,0,'2025-11-10','2025-11-21 16:57:28',NULL,10437.89,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 16:57:28',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(23,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,221,6,'2025-11-10 17:01:40','2025-11-21 17:01:40','V',0,NULL,'CLIENTES',' ',' ','2025-11-10 17:01:40',2,1,21259.2523,0,21259,5,1,0,0,0,0,-17570,3689.6223,0,0,'2025-11-10','2025-11-21 17:01:40',NULL,17569.63,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:01:40',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(24,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,222,6,'2025-11-11 17:06:55','2025-11-21 17:06:55','V',0,NULL,'CLIENTES',' ',' ','2025-11-11 17:06:55',2,1,21083.04,0,21083,5,1,0,0,0,0,-17424,3659.04,0,0,'2025-11-11','2025-11-21 17:06:55',NULL,17424,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:06:55',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(25,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,223,6,'2025-11-17 17:09:52','2025-11-21 17:09:52','V',0,NULL,'CLIENTES',' ',' ','2025-11-17 17:09:52',2,1,12753.4,0,12753,5,1,0,0,0,0,-10540,2213.4,0,0,'2025-11-17','2025-11-21 17:09:52',NULL,10540,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:09:52',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(26,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,224,6,'2025-11-17 17:11:11','2025-11-21 17:11:11','V',0,NULL,'CLIENTES',' ',' ','2025-11-17 17:11:11',2,1,12378.3,0,12378,5,1,0,0,0,0,-10230,2148.3,0,0,'2025-11-17','2025-11-21 17:11:11',NULL,10230,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:11:11',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(27,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,225,6,'2025-11-17 17:13:02','2025-11-21 17:13:02','V',0,NULL,'CLIENTES',' ',' ','2025-11-17 17:13:02',2,1,13224.09,0,13224,5,1,0,0,0,0,-10929,2295.09,0,0,'2025-11-17','2025-11-21 17:13:02',NULL,10929,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:13:02',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(28,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,226,6,'2025-11-17 17:18:39','2025-11-21 17:18:39','V',0,NULL,'CLIENTES',' ',' ','2025-11-17 17:18:39',2,1,23829.57665,0,23830,5,1,0,0,0,0,-19694,4135.71165,0,0,'2025-11-17','2025-11-21 17:18:39',NULL,19693.864999999998,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:18:39',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(29,NULL,NULL,0,0,NULL,0,'','Fuenlabrada Madrid','','BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,227,8,'2025-11-20 17:22:38','2025-11-21 17:22:38','V',0,NULL,'CLIENTES',' ',' ','2025-11-20 17:22:38',2,1,16570.2845,0,16570,5,1,0,0,0,0,-13694,2875.8345,0,0,'2025-11-20','2025-11-21 17:22:38',NULL,13694.45,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87705638','66001','','28946','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'BORJA ROMERO EXCAVACIONES Y MOVIMIENTOS DE TIERRA S.L','',1,'CC',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:22:38',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(30,NULL,NULL,0,0,NULL,0,'Calle puerta de abajo','','','EL CHAPAS AVILA S.L ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,228,14,'2025-11-21 17:29:44','2025-11-21 17:29:44','V',0,NULL,'CLIENTES',' ',' ','2025-11-21 17:29:44',2,1,11277.2,0,11277,5,1,0,0,0,0,-9320,1957.2,0,0,'2025-11-21','2025-11-21 17:29:44',NULL,9320,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B06955694','76020','chapasdeavila@gmail.com','762040','76','MADRID','MADRID',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'EL CHAPAS AVILA S.L','',1,'DNI',0,'R-99-PN',49,'','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-21 17:29:44',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(31,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,229,6,'2025-11-24 13:17:02','2025-11-25 13:17:02','V',0,NULL,'CLIENTES',' ',' ','2025-11-24 13:17:02',2,1,12249.6407,0,10124,5,1,0,0,0,0,-10124,2125.9707,0,0,'2025-11-24','2025-11-25 13:17:02',NULL,10123.67,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-24 00:00:00',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Mantenimiento',NULL),(32,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,230,6,'2025-11-24 13:23:38','2025-11-25 13:23:38','V',0,NULL,'CLIENTES',' ',' ','2025-11-24 13:23:38',2,1,12403.9762,0,10251,5,1,0,0,0,0,-10251,2152.7562,0,0,'2025-11-24','2025-11-25 13:23:38',NULL,10251.22,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-24 00:00:00',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(33,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,231,6,'2025-11-24 13:26:48','2025-11-25 13:26:48','V',0,NULL,'CLIENTES',' ',' ','2025-11-24 13:26:48',2,1,12398.386,0,10247,5,1,0,0,0,0,-10247,2151.786,0,0,'2025-11-24','2025-11-25 13:26:48',NULL,10246.6,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-24 00:00:00',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL),(34,NULL,NULL,0,0,NULL,0,'Calle calamina 17 MADRID','','','Sanyu   ',NULL,NULL,'0000-00-00','18764070336005',0,0,0,NULL,0,0,0,0,232,6,'2025-11-24 13:28:59','2025-11-25 13:28:59','V',0,NULL,'CLIENTES',' ',' ','2025-11-24 13:28:59',2,1,12621.5705,0,10431,5,1,0,0,0,0,-10431,2190.5205,0,0,'2025-11-24','2025-11-25 13:28:59',NULL,10431.05,' ',0,5,0,0,1,'EFECTIVO','',NULL,0,0,'1','1','1','B',0,0,0,0,1,0,'F','1','T',1,0,'B87651535','66001','','28021','66','Madrid','Madrid',NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,0,'Sanyu','',2,'DNI',0,'R-99-PN',49,'el chapas','',NULL,'0000-00-00',1,NULL,NULL,0,'texasburgers',0,'0',0,NULL,NULL,NULL,0,'V',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,_binary '\0',NULL,'2025-11-24 00:00:00',_binary '\0',NULL,_binary '\0',0,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,_binary '\0',NULL,NULL,NULL,NULL,'CLIENTE FINAL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,0,0,0,0,'no',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,'',0,0,0,NULL,'no',0,0,NULL,NULL,NULL,0,0,NULL,'PENDIENTE','PENDIENTE',NULL,0,NULL,'Obra',NULL);

--
