update latest

-  jana pemenang
- resit
This commit is contained in:
faiqahzaman
2022-02-24 14:29:34 +08:00
parent e19a934372
commit 2e86b9e746
6 changed files with 52 additions and 34 deletions
@@ -64,7 +64,7 @@ class CreatePaymentTable extends Migration
Schema::create('resit', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id')->unsigned();
$table->unsignedBigInteger('lelongbid_id')->unsigned()->nullable();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->string('reference_no')->nullable();
$table->string('billplz_id');
$table->decimal('total_payment', $precision = 9, $scale = 2);
@@ -77,8 +77,8 @@ class CreatePaymentTable extends Migration
->references('id')->on('users')
->onDelete('cascade');
$table->foreign('lelongbid_id')
->references('id')->on('lelongbid')
$table->foreign('lelong_id')
->references('id')->on('lelong')
->onDelete('cascade');
});