CREATE TABLE `222CUP` (
  `CUPCodigo` int(11) NOT NULL AUTO_INCREMENT COMMENT 'SRI',
  `CUPNombre` char(80) COLLATE utf8_spanish_ci NOT NULL DEFAULT '' COMMENT 'SRI',
  `CUPLink1_THA` int(11) NOT NULL COMMENT 'La referencia al \ntipo de habitación \nal cual está \nasociado el cupo',
  `CUPCodAgente` int(11) NOT NULL DEFAULT '0' COMMENT 'SRI',
  `CUPCant1` smallint(11) unsigned NOT NULL DEFAULT '0' COMMENT 'El número que\nidentifica el día en \nel sistema UNIX.\nEj:\nEstá almacenado \nel número 234123\nel cual al ser \nmultiplicado por \n86.400 nos devuelve \nel número compatible \ncon Unix para obtener\nla fecha asociada.',
  `CUPCant2` int(11) NOT NULL DEFAULT '0' COMMENT 'Capacidad máxima\ndel hotel para\nese tipo de habitación',
  `CUPCant3` int(11) NOT NULL DEFAULT '0' COMMENT 'Número de \nhabitaciones\nreservadas',
  `CUPCant4` int(11) NOT NULL DEFAULT '0' COMMENT 'Cupos disponibles\npara internet',
  `CUPCant5` int(11) NOT NULL DEFAULT '0' COMMENT 'habitaciones\nreservadas\npor internet',
  `CUPCant6` int(11) NOT NULL DEFAULT '0' COMMENT 'Cupos disponibles \npara IDS',
  `CUPCant7` int(11) NOT NULL DEFAULT '0' COMMENT 'Reservaciones \nhechas por IDS',
  `CUPTimeStamp1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Momento \nde creación del\nRegistro.',
  PRIMARY KEY (`CUPCodigo`),
  UNIQUE KEY `CUPLink1_THA-CUPCant1` (`CUPLink1_THA`,`CUPCant1`) USING BTREE,
  CONSTRAINT `222CUP-222THA` FOREIGN KEY (`CUPLink1_THA`) REFERENCES `222THA` (`THACodigo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;