*************************** 1. row *************************** Table: diagnosis Create Table: CREATE TABLE `diagnosis` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `diagnosis_types_id` int(10) unsigned NOT NULL, `date` date NOT NULL, `patient_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `specialty_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `diagnosis_specialty_id_foreign` (`specialty_id`) USING BTREE, CONSTRAINT `diagnosis_specialty_id_foreign` FOREIGN KEY (`specialty_id`) REFERENCES `specialties` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC *************************** 1. row *************************** Table: diagnoses Create Table: CREATE TABLE `diagnoses` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cie10` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `state` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC