increments('id'); $table->uuid('client_id'); $table->string('name'); $table->string('last_backup_status')->nullable(); $table->timestamp('last_backup_time')->nullable(); $table->timestamps(); }); Schema::table('schedules', function (Blueprint $table) { $table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('schedules'); } }