Update Lahan CPCL

This commit is contained in:
2026-05-06 15:53:59 +07:00
parent 54f06af30b
commit 05b76626f9
7 changed files with 1668 additions and 0 deletions
@@ -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('ekosistem_lahan_cpcl', function (Blueprint $table) {
$table->id();
$table->string('nama');
$table->string('status_kepemilikan');
$table->string('nama_pemilik');
$table->foreignId('desa_kelurahan_id')->nullable()->constrained('master_desa_kelurahan');
$table->jsonb('path')->nullable();
$table->float('luas_lahan', 8)->nullable();
$table->foreignId('created_by')->nullable()->constrained('users')->onDelete('set null');
$table->foreignId('updated_by')->nullable()->constrained('users')->onDelete('set null');
$table->foreignId('deleted_by')->nullable()->constrained('users')->onDelete('set null');
$table->timestamps();
$table->softDeletes();
});
}
public function down(): void
{
Schema::dropIfExists('ekosistem_lahan_cpcl');
}
};