update payment migration

This commit is contained in:
faiqahzaman
2022-02-24 12:29:49 +08:00
parent 92fc4d58cd
commit e19a934372
7 changed files with 130 additions and 4 deletions
@@ -18,6 +18,7 @@ class CreatePaymentTable extends Migration
$table->unsignedBigInteger('user_id')->unsigned();
$table->unsignedBigInteger('lelongbidder_id')->unsigned()->nullable();
$table->unsignedBigInteger('lelongbid_id')->unsigned()->nullable();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->string('kodcaw')->nullable();
$table->string('back_acc_pembeli')->nullable();
$table->string('bank_acc_no_pembeli')->nullable();
@@ -54,6 +55,10 @@ class CreatePaymentTable extends Migration
$table->foreign('lelongbidder_id')
->references('id')->on('lelongbidder')
->onDelete('cascade');
$table->foreign('lelong_id')
->references('id')->on('lelong')
->onDelete('cascade');
});
Schema::create('resit', function (Blueprint $table) {