   INDEX `fk_Caracterizacion_has_Equipos_Caracterizacion1_idx` (`Caracterizacion_id` ASC),
   CONSTRAINT `fk_Caracterizacion_has_Equipos_Caracterizacion1`
     FOREIGN KEY (`Caracterizacion_id`)
-    REFERENCES `mydb`.`Caracterizacion` (`id`)
+    REFERENCES `HL`.`Caracterizacion` (`id`)
     ON DELETE NO ACTION
     ON UPDATE NO ACTION,
   CONSTRAINT `fk_Caracterizacion_has_Equipos_Equipos1`
     FOREIGN KEY (`Equipos_id`)
-    REFERENCES `mydb`.`Equipos` (`id`)
-    ON DELETE NO ACTION
-    ON UPDATE NO ACTION)
-ENGINE = InnoDB;
-
-
--- -----------------------------------------------------
--- Table `mydb`.`costoPredeterminados_has_CostoParametro`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `mydb`.`costoPredeterminados_has_CostoParametro` (
+    REFERENCES `HL`.`Equipos` (`id`)
+    ON DELETE NO ACTION
+    ON UPDATE NO ACTION)
+ENGINE = InnoDB;
+
+
+-- -----------------------------------------------------
+-- Table `HL`.`costoPredeterminados_has_CostoParametro`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `HL`.`costoPredeterminados_has_CostoParametro` (
   `costoPredeterminados_id` INT UNSIGNED NOT NULL,
   `CostoParametro_id` SMALLINT UNSIGNED NOT NULL,
   `cantidad` FLOAT NULL,

  INDEX `fk_Decreto_has_Tipo_Decreto1_idx` (`Decreto_id` ASC),
  CONSTRAINT `fk_Decreto_has_Tipo_Decreto1`
    FOREIGN KEY (`Decreto_id`)
    REFERENCES `mydb`.`Decreto` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_Decreto_has_Tipo_Tipo1`
    FOREIGN KEY (`Tipo_id`)
    REFERENCES `mydb`.`Tipo` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;


-- -----------------------------------------------------
-- Table `mydb`.`Tipo_has_SubTipo`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`Tipo_has_SubTipo` (
  `Tipo_id` TINYINT UNSIGNED NOT NULL,
  `SubTipo_id` TINYINT NOT NULL,
  PRIMARY KEY (`Tipo_id`, `SubTipo_id`),

  INDEX `fk_General_Vendedor1_idx` (`Vendedor_id` ASC),
  CONSTRAINT `fk_General_Departamento1`
    FOREIGN KEY (`Departamento_id`)
    REFERENCES `HL`.`Departamento` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_General_Decreto1`
    FOREIGN KEY (`Decreto_id`)
    REFERENCES `HL`.`Decreto` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_General_Clientes1`
    FOREIGN KEY (`Clientes_id`)
    REFERENCES `HL`.`Clientes` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_General_Vendedor1`
    FOREIGN KEY (`Vendedor_id`)
    REFERENCES `HL`.`Vendedor` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;


-- -----------------------------------------------------
-- Table `HL`.`Tipo`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `HL`.`Tipo` (
  `id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT,
  `Nombre` VARCHAR(45) NULL,
  PRIMARY KEY (`id`))
