uuid('id')->primary(); $table->uuid('patient_id'); $table->uuid('doctor_id'); $table->enum('diagnoses',['normal','mi']); $table->text('notes')->nullable(); $table->boolean('is_verified')->default(false); $table->string('file'); $table->foreign('patient_id')->references('id')->on('patients')->onDelete('cascade'); $table->foreign('doctor_id')->references('id')->on('doctors')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('diagnoses'); } };