pengesahan tambah, ubah, delete marhun
This commit is contained in:
@@ -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');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user