id(); $table->bigInteger('user_id')->unsigned(); $table->bigInteger('user_sa_id')->unsigned(); $table->bigInteger('work_id')->unsigned(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('user_sa_id')->references('id')->on('users'); $table->string('spk'); $table->string('police_number'); $table->tinyInteger('warranty'); $table->dateTime('tanggal'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transactions'); } }