...
DROP TABLE IF EXISTS `prestamosdet`;
CREATE TABLE `prestamosdet` (
`num_pres` mediumint(6) unsigned NOT NULL DEFAULT 0,
`cuota_no` smallint(4) unsigned NOT NULL DEFAULT 0,
`fecha_prog` date DEFAULT NULL,
`valor_prog` decimal(10,2) unsigned NOT NULL DEFAULT 0.00,
`fecha_real` date DEFAULT NULL,
`valor_real` decimal(10,2) unsigned NOT NULL DEFAULT 0.00,
`estado` char(1) COLLATE latin1_spanish_ci NOT NULL DEFAULT '',
`nota` text COLLATE latin1_spanish_ci DEFAULT NULL,
`my_recno` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`my_recno`),
KEY `prestamosdet_num_pres` (`num_pres`),
KEY `prestamosdet_fecha_prog` (`fecha_prog`),
KEY `prestamosdet_fecha_real` (`fecha_real`)
) ENGINE=InnoDB AUTO_INCREMENT=4611 DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;
INSERT INTO `prestamosdet` VALUES (1001,1,'2019-02-19',1792.00,'2019-03-03',1792.00,'C','',1);
INSERT INTO `prestamosdet` VALUES (1001,2,'2019-02-26',1792.00,'2019-03-03',1792.00,'C','ACTULIZACION DE SALDO',2);
INSERT INTO `prestamosdet` VALUES (1001,3,'2019-03-05',1792.00,DEFAULT,0.00,'A',DEFAULT,3);
INSERT INTO `prestamosdet` VALUES (1001,4,'2019-03-12',1792.00,DEFAULT,0.00,'A',DEFAULT,4);
INSERT INTO `prestamosdet` VALUES (1001,5,'2019-03-19',1792.00,DEFAULT,0.00,'A',DEFAULT,5);
INSERT INTO `prestamosdet` VALUES (1002,1,'2019-02-25',1792.00,'2019-03-11',1792.00,'C','',6);
...
al restaurar se muestra