kemaskini mutu marhun
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePengesahanTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('pengesahan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('lelong_id')->unsigned();
|
||||
$table->unsignedBigInteger('lelongbid_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->timestamps();
|
||||
|
||||
$table->foreign('lelong_id')
|
||||
->references('id')->on('lelong')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelongbid_id')
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('pengesahan');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user