CREATE TABLE `we_auth`.`isClient` (
  `idTeam` INT NOT NULL,
  `idTeamClient` INT NOT NULL,
  PRIMARY KEY (`idTeam`, `idTeamClient`),
  INDEX `idTeam_idx` (`idTeam` ASC),
  INDEX `idTeamClient_idx` (`idTeamClient` ASC),
  UNIQUE INDEX `teams_unique` (`idTeam` ASC, `idTeamClient` ASC),
  CONSTRAINT `idTeam_fk`
    FOREIGN KEY (`idTeam`)
    REFERENCES `we_auth`.`team` (`idTeam`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `idTeamClient_fk`
    FOREIGN KEY (`idTeamClient`)
    REFERENCES `we_auth`.`team` (`idTeam`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);