CREATE TABLE `banksfinders`.`creditcardsdetails` ( `idcreditcardsdetails` INT NOT NULL, `creditcardsdetailscategory` VARCHAR(100) NULL, `creditcardsdetailsdescription` VARCHAR(4000) NULL, `idcreditcards` INT NULL, PRIMARY KEY (`idcreditcardsdetails`)); ALTER TABLE `banksfinders`.`creditcardsdetails` CHARACTER SET = DEFAULT , ADD INDEX `creditcardsdetails_FK_creditcard_idx` (`idcreditcards` ASC) VISIBLE; ; ALTER TABLE `banksfinders`.`creditcardsdetails` ADD CONSTRAINT `creditcardsdetails_FK_creditcard` FOREIGN KEY (`idcreditcards`) REFERENCES `banksfinders`.`creditcards` (`idcreditcards`) ON DELETE RESTRICT ON UPDATE NO ACTION;