add scanmarhun, senarai terima marhun

This commit is contained in:
Amir
2022-09-08 09:25:36 +08:00
parent 325944368a
commit afbfce017b
8 changed files with 486 additions and 25 deletions
@@ -34,7 +34,7 @@ class CreatePengesahanTable extends Migration
// $table->foreign('lelongbid_id')
// ->references('id')->on('lelongbid')
// ->onDelete('cascade');
// $table->foreign('lelongbidmarhun_id')
// ->references('id')->on('lelongbidmarhun')
// ->onDelete('cascade');
@@ -44,24 +44,29 @@ class CreatePengesahanTable extends Migration
Schema::create('scanmarhun', function (Blueprint $table) {
$table->id();
$table->string('kodcaw')->nullable();
$table->string('kodcaw');
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->integer('fasa');
$table->string('norujukan')->nullable();
$table->decimal('nilaimarhun', $precision = 9, $scale = 2);
$table->string('drp','100')->nullable();
$table->string('kpd','20')->nullable();
$table->decimal('bulan', $precision = 3, $scale = 0);
$table->decimal('tahun', $precision = 5, $scale = 0);
$table->integer('tag');
$table->datetime('tarikh')->nullable();
$table->time('masa')->nullable();
$table->string('namateller','30')->nullable();
$table->integer('lelongbid_id');
$table->string('norujukan');
$table->string('user_id', '100');
$table->date('tarikh_scankeluar');
$table->time('masa_scankeluar');
$table->integer('tag_scankeluar');
$table->date('tarikh_scanmasuk')->nullable();
$table->time('masa_scanmasuk')->nullable();
$table->integer('tag_scanmasuk')->nullable();
$table->timestamps();
});
$table->foreign('lelong_id')
->references('id')->on('lelong')
->onDelete('cascade');
Schema::create('terimaserah_marhun', function (Blueprint $table) {
$table->id();
$table->integer('scanmarhun_id');
$table->string('user_id', '100');
$table->integer('tagterima');
$table->time('masa_terima');
$table->integer('tagserah')->nullable();
$table->time('masa_serah')->nullable();
$table->timestamps();
});
}