tambahan hapus ansuran

This commit is contained in:
Hafifie PKB
2024-01-10 10:11:25 +08:00
parent 4c47bb0f84
commit 4726ea7c5c
7 changed files with 266 additions and 1 deletions
@@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTransaksiGadaiTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
protected $connection = 'mysql7';
public function up()
{
Schema::create('transaksi_gadai', function (Blueprint $table) {
$table->id();
$table->string('kodcaw', 10);
$table->string('norujukan', 50);
$table->decimal('bakipjm', 9, 2);
$table->decimal('tempoh', 9, 2);
$table->date('t_update');
$table->decimal('bakihargajualan', 9, 2);
$table->decimal('tempohbayar', 9, 2);
$table->integer('lelong_tawarruq');
$table->decimal('margin_semasa', 9, 2);
$table->decimal('tunggakanujrah', 9, 2);
$table->decimal('tunggakanonepercent', 9, 2);
$table->decimal('percentpinj', 9, 2);
$table->integer('transaction_id');
$table->integer('transaksiupah_id');
$table->integer('softDelete');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('transaksi_gadai');
}
}