Mengubah tampilan menu master Ijin Usaha

This commit is contained in:
2024-09-18 15:53:15 +07:00
parent 2041b38980
commit 43e6f8d71e
13 changed files with 300 additions and 135 deletions

View File

@@ -13,8 +13,16 @@ return new class extends Migration
{
Schema::create('ijin_usaha', function (Blueprint $table) {
$table->id();
$table->string('nama_ijin_usaha');
$table->string('code')->unique()->index();
$table->string('name');
$table->boolean('status')->default(true)->nullable();
$table->char('authorized_status', 1)->nullable();
$table->timestamp('authorized_at')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger('deleted_by')->nullable();
});
}

View File

@@ -13,28 +13,35 @@ return new class extends Migration
{
Schema::create('kjpp', function (Blueprint $table) {
$table->id();
$table->string('nomor');
$table->string('nama_kjpp');
$table->string('kantor_pusat');
$table->string('code');
$table->string('name');
$table->string('jenis_kantor');
$table->string('nomor_ijin_usaha');
$table->string('kota');
$table->date('kerjasama_sejak');
$table->text('alamat_kantor');
$table->string('no_tlp_kantor', 15);
$table->string('alamat_email');
$table->string('nama_pimpinan_kantor');
$table->string('no_hp_pimpinan', 15);
$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');
$table->string('nama_pic_reviewer');
$table->string('no_pic_reviewer', 15);
$table->string('nomor_hp_pic_reviewer');
$table->string('nama_pic_admin');
$table->string('no_pic_admin', 15);
$table->string('nomor_hp_pic_admin');
$table->string('nama_pic_marketing');
$table->string('no_pic_marketing', 15);
$table->json('ijin_usaha');
$table->json('pengalaman');
$table->string('company_name');
$table->string('ijin_ijin');
$table->string('npwp');
$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();
$table->timestamps();
});
}