2024-09-18 04:06:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
return new class extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*/
|
|
|
|
public function up(): void
|
|
|
|
{
|
|
|
|
Schema::create('kjpp', function (Blueprint $table) {
|
|
|
|
$table->id();
|
2024-09-18 08:53:15 +00:00
|
|
|
$table->string('code');
|
|
|
|
$table->string('name');
|
|
|
|
$table->string('jenis_kantor');
|
2024-09-18 04:06:17 +00:00
|
|
|
$table->string('nomor_ijin_usaha');
|
2024-09-18 08:53:15 +00:00
|
|
|
$table->string('province_code');
|
|
|
|
$table->string('city_code');
|
|
|
|
$table->string('district_code');
|
|
|
|
$table->string('village_code');
|
|
|
|
$table->string('address');
|
|
|
|
$table->string('postal_code');
|
|
|
|
$table->string('nomor_telepon_kantor');
|
|
|
|
$table->string('email_kantor');
|
|
|
|
$table->string('nomor_hp_pimpinan');
|
2024-09-18 04:06:17 +00:00
|
|
|
$table->string('nama_pic_reviewer');
|
2024-09-18 08:53:15 +00:00
|
|
|
$table->string('nomor_hp_pic_reviewer');
|
2024-09-18 04:06:17 +00:00
|
|
|
$table->string('nama_pic_admin');
|
2024-09-18 08:53:15 +00:00
|
|
|
$table->string('nomor_hp_pic_admin');
|
2024-09-18 04:06:17 +00:00
|
|
|
$table->string('nama_pic_marketing');
|
2024-09-18 08:53:15 +00:00
|
|
|
$table->string('nomor_hp_pic_marketing');
|
|
|
|
$table->foreignId('ijin_usaha_id')->constrained()->onDelete('cascade');
|
|
|
|
$table->foreignId('jenis_aset_id')->constrained()->onDelete('cascade');
|
|
|
|
$table->string('attachment');
|
|
|
|
$table->boolean('status')->default(true)->nullable();
|
|
|
|
$table->char('authorized_status', 1)->nullable();
|
|
|
|
$table->timestamp('authorized_at')->nullable();
|
|
|
|
$table->unsignedBigInteger('authorized_by')->nullable();
|
|
|
|
$table->softDeletes();
|
|
|
|
|
|
|
|
$table->unsignedBigInteger('deleted_by')->nullable();
|
2024-09-18 04:06:17 +00:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down(): void
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('kjpp');
|
|
|
|
}
|
|
|
|
};
|