uuid('id')->primary(); $table->uuid('patient_id'); $table->string('heartwave')->nullable(); $table->timestamps(); $table->foreign('patient_id')->references('id')->on('patients')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('heartwaves'); } };