Update Migration & Seeder

This commit is contained in:
2026-05-26 09:38:38 +07:00
parent 9231f25e5d
commit e4f7d675a1
12 changed files with 71 additions and 215 deletions
@@ -13,9 +13,11 @@ return new class extends Migration
{
Schema::create('ekosistem_petani_cpm', function (Blueprint $table) {
$table->id();
$table->string('uid')->unique();
$table->foreignId('program_id')->nullable()->constrained('core_program')->nullOnDelete();
$table->string('nama');
$table->boolean('jenis_kelamin');
$table->string('tempat_lahir')->nullable();
$table->date('tanggal_lahir');
$table->string('pendidikan_terakhir')->nullable();
@@ -28,11 +30,17 @@ return new class extends Migration
$table->float('lama_bertani', 8)->nullable();
$table->float('luas_lahan', 8)->nullable();
$table->string('dusun_rt_rw')->nullable();
$table->string('nomor_telepon')->nullable();
$table->string('foto')->nullable();
$table->string('pekerjaan_sampingan')->nullable();
$table->foreignId('komoditas_sampingan_id')->nullable()->constrained('master_komoditas');
$table->float('lama_bertani_sampingan', 8)->nullable();
$table->float('luas_lahan_sampingan', 8)->nullable();
$table->string('status_perkawinan')->nullable();
$table->string('status_keluarga')->nullable();
$table->integer('jumlah_tanggungan')->nullable();
@@ -48,9 +56,6 @@ return new class extends Migration
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('ekosistem_petani_cpm');