add senarai pemenang page operasi table paydenokaunter

This commit is contained in:
Nur Izzati Zulkifli
2022-10-23 17:09:12 +08:00
parent bce7708963
commit 7808c9dbfa
11 changed files with 407 additions and 20 deletions
@@ -54,6 +54,42 @@ class CreatePaymentTable extends Migration
->onDelete('cascade');
});
Schema::create('paydenokaunter', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id')->unsigned();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->string('kodcaw')->nullable();
$table->integer('status_payment_opt')->nullable(); //1=kaunter,2=online,3=CDM
$table->integer('resit_id');
$table->integer('status'); //1 = fee RM10 , 2 = paybidifwin
$table->string('remark');
$table->integer('1sen')->nullable();
$table->integer('5sen')->nullable();
$table->integer('10sen')->nullable();
$table->integer('20sen')->nullable();
$table->integer('50sen')->nullable();
$table->integer('rm1')->nullable();
$table->integer('rm5')->nullable();
$table->integer('rm10')->nullable();
$table->integer('rm20')->nullable();
$table->integer('rm50')->nullable();
$table->integer('rm100')->nullable();
$table->decimal('total_payment', $precision = 11, $scale = 2);
$table->datetime('disahkan_pada')->nullable();
$table->integer('disahkan_oleh')->nullable();
$table->datetime('diminta_pada')->nullable();
$table->integer('diminta_oleh')->nullable();
$table->timestamps();
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('cascade');
$table->foreign('lelong_id')
->references('id')->on('lelong')
->onDelete('cascade');
});
Schema::create('resit', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id')->unsigned();
@@ -108,6 +144,7 @@ class CreatePaymentTable extends Migration
public function down()
{
Schema::dropIfExists('payment');
Schema::dropIfExists('paydenokaunter');
Schema::dropIfExists('resit');
Schema::dropIfExists('invoice');
}