   INDEX `fk_tbl_artigo_has_tbl_fotos_tbl_artigo1_idx` (`tbl_artigo_id` ASC),
   CONSTRAINT `fk_tbl_artigo_has_tbl_fotos_tbl_artigo1`
     FOREIGN KEY (`tbl_artigo_id`)
-    REFERENCES `mydb`.`tbl_artigo` (`id`)
+    REFERENCES `sitap`.`tbl_artigo` (`id`)
     ON DELETE NO ACTION
     ON UPDATE NO ACTION,
   CONSTRAINT `fk_tbl_artigo_has_tbl_fotos_tbl_fotos1`
     FOREIGN KEY (`tbl_fotos_id`)
-    REFERENCES `mydb`.`tbl_fotos` (`id`)
+    REFERENCES `sitap`.`tbl_fotos` (`id`)
     ON DELETE NO ACTION
     ON UPDATE NO ACTION)
 ENGINE = InnoDB;
 
 
 -- -----------------------------------------------------
--- Table `mydb`.`tbl_categoria`
+-- Table `sitap`.`tbl_categoria`
 -- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `mydb`.`tbl_categoria` (
+CREATE TABLE IF NOT EXISTS `sitap`.`tbl_categoria` (
   `id` INT NOT NULL,
   `nome` VARCHAR(45) NULL,
   `descricao` VARCHAR(100) NULL,

SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';

CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;
USE `mydb` ;

-- -----------------------------------------------------
-- Table `mydb`.`tbl_usuario`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`tbl_usuario` (
  `idusuario` INT NOT NULL,
  `nome` VARCHAR(35) NULL,
  `senha` VARCHAR(30) NULL,
  `email` VARCHAR(40) NULL,



-- -----------------------------------------------------
-- Table `sitap`.`tbl_categoria_artigo`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sitap`.`tbl_categoria_artigo` (
  `tbl_categoria_id` INT NOT NULL,
  `tbl_artigo_id` INT NOT NULL,
  PRIMARY KEY (`tbl_categoria_id`, `tbl_artigo_id`),
