pengesahan tambah, ubah, delete marhun

This commit is contained in:
faiqahzaman
2022-03-17 16:22:42 +08:00
parent 5cdbb2c7f0
commit d731a42a47
10 changed files with 191 additions and 45 deletions
@@ -17,12 +17,14 @@ class CreatePengesahanTable extends Migration
$table->id();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->unsignedBigInteger('lelongbid_id')->unsigned();
$table->unsignedBigInteger('lelongbidmarhun_id')->unsigned();
$table->string('norujukan');
$table->integer('disahkan_oleh')->nullable();
$table->datetime('disahkan_pada')->nullable();
$table->integer('diminta_oleh');
$table->datetime('diminta_pada');
$table->integer('status')->default(0); //1 = terima
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun
$table->timestamps();
$table->foreign('lelong_id')
@@ -32,6 +34,10 @@ class CreatePengesahanTable extends Migration
$table->foreign('lelongbid_id')
->references('id')->on('lelongbid')
->onDelete('cascade');
$table->foreign('lelongbidmarhun_id')
->references('id')->on('lelongbidmarhun')
->onDelete('cascade');
});
}