update migration for scan_semak

This commit is contained in:
Amir
2022-09-25 09:50:03 +08:00
parent e11c511208
commit 17c44d093a
5 changed files with 142 additions and 132 deletions
@@ -26,36 +26,26 @@ class CreatePengesahanTable extends Migration
$table->integer('status')->default(0); //1 = terima, 2 = tangguh lelong
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc
$table->timestamps();
// $table->foreign('lelong_id')
// ->references('id')->on('lelong')
// ->onDelete('cascade');
// $table->foreign('lelongbid_id')
// ->references('id')->on('lelongbid')
// ->onDelete('cascade');
// $table->foreign('lelongbidmarhun_id')
// ->references('id')->on('lelongbidmarhun')
// ->onDelete('cascade');
});
Schema::create('scanmarhun', function (Blueprint $table) {
Schema::create('scan_semak', function (Blueprint $table) {
$table->id();
$table->string('kodcaw');
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->integer('lelongbid_id');
$table->string('norujukan');
$table->string('khazanah_id', '100');
$table->date('tarikh_scankeluar');
$table->time('masa_scankeluar');
$table->string('penilai_id', '100')->nullable();
$table->time('masa_terima')->nullable();
$table->time('masa_serah')->nullable();
$table->date('tarikh_scanmasuk')->nullable();
$table->time('masa_scanmasuk')->nullable();
$table->datetime('scan_keluar');
$table->datetime('terima_marhun')->nullable();
$table->datetime('serah_marhun')->nullable();
$table->datetime('scan_masuk')->nullable();
$table->timestamps();
});
Schema::create('scan_jual', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
@@ -69,5 +59,7 @@ class CreatePengesahanTable extends Migration
public function down()
{
Schema::dropIfExists('pengesahan');
Schema::dropIfExists('scan_semak');
Schema::dropIfExists('scan_jual');
}
}