update payment resit table
This commit is contained in:
@@ -16,7 +16,7 @@ class CreateLelongbidderTable extends Migration
|
||||
Schema::create('lelongbidder', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->integer('lelongbid_id');
|
||||
$table->unsignedBigInteger('lelongbid_id')->unsigned();
|
||||
$table->string('nama_bidder');
|
||||
$table->decimal('hargabida');
|
||||
$table->string('notelbimbit');
|
||||
@@ -31,6 +31,10 @@ class CreateLelongbidderTable extends Migration
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelongbid_id')
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaymentTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('payment', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->unsignedBigInteger('lelongbidder_id')->unsigned()->nullable();
|
||||
$table->unsignedBigInteger('lelongbid_id')->unsigned();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->decimal('total_payment')->nullable();
|
||||
$table->string('back_acc_pembeli')->nullable();
|
||||
$table->string('bank_acc_no_pembeli')->nullable();
|
||||
$table->string('nama_bank_acc_caw')->nullable();
|
||||
$table->string('bank_no_acc_caw')->nullable();
|
||||
$table->integer('status_payment_opt')->nullable();
|
||||
$table->integer('resit_id');
|
||||
$table->integer('status'); //1 = fee RM10 , 2 = paybidifwin
|
||||
$table->string('remark');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelongbid_id')
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelongbidder_id')
|
||||
->references('id')->on('lelongbidder')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
|
||||
Schema::create('resit', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->unsignedBigInteger('lelongbid_id')->unsigned()->nullable();
|
||||
$table->string('reference_no')->nullable();
|
||||
$table->integer('billplz_id');
|
||||
$table->string('total_payment');
|
||||
$table->string('resit_type');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelongbid_id')
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('payment');
|
||||
Schema::dropIfExists('resit');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user