Merge pull request 'update form menu surveyor' (#26) from feature/senior-officer into staging
Reviewed-on: #26
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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('analisa', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->enum('type', ['unit', 'tanah_bangunan']);
|
||||
$table->unsignedBigInteger('permohonan_id');
|
||||
$table->foreign('permohonan_id')->references('id')->on('permohonan');
|
||||
$table->string('luas');
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('analisa');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,51 @@
|
||||
<?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('analisa_tanah_bangunan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
$table->unsignedBigInteger('analisa_id');
|
||||
$table->foreign('analisa_id')->references('id')->on('analisa');
|
||||
$table->string('bentuk_tanah');
|
||||
$table->string('kontur_tanah');
|
||||
$table->string('ketinggian_jalan');
|
||||
$table->string('kontur_jalan');
|
||||
$table->string('posis_kavling');
|
||||
$table->enum('tusuk_sate', ['yes', 'no']);
|
||||
$table->enum('lockland', ['yes', 'no']);
|
||||
$table->string('kondisi_fisik_tanah');
|
||||
$table->string('jenis_bangunan');
|
||||
$table->string('kondisi_bangunan');
|
||||
$table->string('sifat_bangunan');
|
||||
$table->string('sarana_pelengkap');
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('analisa_tanah_bangunan');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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('analisa_unit', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
$table->unsignedBigInteger('analisa_id');
|
||||
$table->foreign('analisa_id')->references('id')->on('analisa');
|
||||
|
||||
$table->string('jenis_unit');
|
||||
$table->string('kondisi_unit');
|
||||
$table->string('posisi_unit');
|
||||
$table->string('lantai');
|
||||
$table->string('view');
|
||||
$table->string('bentuk_unit');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('analisa_unit');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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('spek_bagunan_analisa', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
|
||||
// Foreign key to analisa_tanah_bangunan
|
||||
$table->unsignedBigInteger('analisa_tanah_bangunan_id');
|
||||
$table->foreign('analisa_tanah_bangunan_id')->references('id')->on('analisa_tanah_bangunan');
|
||||
|
||||
$table->char('authorized_status', 1);
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by');
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('spek_bagunan_analisa');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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('spek_bagunan_analisa_detail', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('kategori');
|
||||
$table->string('name');
|
||||
|
||||
// Foreign key to spek_bangunan_analisa
|
||||
$table->unsignedBigInteger('spek_bangunan_analisa_id');
|
||||
$table->foreign('spek_bangunan_analisa_id')->references('id')->on('spek_bagunan_analisa');
|
||||
|
||||
$table->char('authorized_status', 1);
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by');
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('spek_bagunan_analisa_detail');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,60 @@
|
||||
<?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('analisa_fakta', function (Blueprint $table) {
|
||||
$table->id();
|
||||
// Foreign key to analisa table
|
||||
$table->unsignedBigInteger('analisa_id');
|
||||
$table->foreign('analisa_id')->references('id')->on('analisa');
|
||||
|
||||
$table->text('fakta_positif');
|
||||
$table->text('fakta_negatif');
|
||||
$table->text('rute_menju');
|
||||
$table->string('batas_batas');
|
||||
$table->text('kondisi_linkungan');
|
||||
$table->text('kondisi_lain_bangunan');
|
||||
$table->text('informasi_dokument');
|
||||
$table->string('peruntukan');
|
||||
$table->string('kdb');
|
||||
$table->string('kdh');
|
||||
$table->string('gsb');
|
||||
$table->string('max_lantai');
|
||||
$table->string('klb');
|
||||
$table->string('gss');
|
||||
$table->string('pelebaran_jalan');
|
||||
$table->string('nama_petugas');
|
||||
$table->string('foto_tempat');
|
||||
$table->string('lat');
|
||||
$table->string('lng');
|
||||
$table->text('keterangan');
|
||||
|
||||
$table->char('authorized_status', 1);
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->unsignedBigInteger('created_by');
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('analisa_fakta');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,53 @@
|
||||
<?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('analisa_lingkungan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('analisa_id');
|
||||
$table->foreign('analisa_id')->references('id')->on('analisa');
|
||||
|
||||
$table->string('jarak_jalan_utama');
|
||||
$table->string('alamat');
|
||||
$table->string('jarak_cbd_point');
|
||||
$table->string('lebar_perkerasan_jalan');
|
||||
$table->string('perkerasan_jalan');
|
||||
$table->string('lalu_lintas');
|
||||
$table->string('gol_mas_sekitar');
|
||||
$table->string('tingkat_keramaian');
|
||||
$table->string('terletak_diarea');
|
||||
$table->string('disekitar_lokasi');
|
||||
$table->string('dekat_makam');
|
||||
$table->enum('dekat_tps', ['yes', 'no']);
|
||||
$table->string('merupakan_daerah');
|
||||
$table->string('fasilitas_dekat_object');
|
||||
|
||||
$table->char('authorized_status', 1);
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->unsignedBigInteger('created_by');
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('analisa_lingkungan');
|
||||
}
|
||||
};
|
||||
42
database/migrations/2024_10_16_153841_create_denah_table.php
Normal file
42
database/migrations/2024_10_16_153841_create_denah_table.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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('denah', function (Blueprint $table) {
|
||||
$table->id();
|
||||
// Foreign key to permohonan table
|
||||
$table->unsignedBigInteger('permohonan_id');
|
||||
$table->foreign('permohonan_id')->references('id')->on('permohonan');
|
||||
|
||||
$table->string('foto_denah');
|
||||
$table->string('luas');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('denah');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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('foto_jaminan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('permohonan_id');
|
||||
$table->foreign('permohonan_id')->references('id')->on('permohonan');
|
||||
|
||||
$table->string('pendamping');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('foto_jaminan');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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('objek_jaminan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
// Foreign key to foto_jaminan table
|
||||
$table->unsignedBigInteger('foto_jaminan_id');
|
||||
$table->foreign('foto_jaminan_id')->references('id')->on('foto_jaminan');
|
||||
|
||||
$table->string('name');
|
||||
$table->string('foto_objek');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('objek_jaminan');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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('lingkungan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
// Foreign key to foto_jaminan table
|
||||
$table->unsignedBigInteger('foto_jaminan_id');
|
||||
$table->foreign('foto_jaminan_id')->references('id')->on('foto_jaminan');
|
||||
|
||||
$table->string('name_lingkungan');
|
||||
$table->string('foto_linkungan');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('lingkungan');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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('rute_jaminan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
// Foreign key to foto_jaminan table
|
||||
$table->unsignedBigInteger('foto_jaminan_id');
|
||||
$table->foreign('foto_jaminan_id')->references('id')->on('foto_jaminan');
|
||||
|
||||
$table->string('name');
|
||||
$table->string('foto_rute');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('rute_jaminan');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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('lantai_unit', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('objek_jaminan_id');
|
||||
$table->string('name_lantai_unit');
|
||||
$table->string('foto_lantai_unit');
|
||||
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('lantai_unit');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user