Model and Migration files

This commit is contained in:
2026-06-25 11:07:59 +07:00
parent aecca02269
commit 7d40bcfb53
13 changed files with 119 additions and 40 deletions
@@ -10,11 +10,11 @@ return new class extends Migration {
$table->id();
$table->string('uid')->unique()->nullable(); // Bagus untuk sinkronisasi Dexie offline
$table->string('title'); // Judul aktivitas panen
$table->unsignedBigInteger('land_id')->nullable();
$table->unsignedBigInteger('farmer_id')->nullable();
$table->text('land_description')->nullable(); // Deskripsi kondisi lahan saat panen
$table->date('harvest_date');
$table->text('notes')->nullable();
$table->unsignedBigInteger('lahan_id')->nullable();
$table->unsignedBigInteger('petani_id')->nullable();
$table->text('deskripsi')->nullable(); // Deskripsi kondisi lahan saat panen
$table->date('tgl_panen');
$table->text('catatan')->nullable();
$table->string('sync_status')->default('pending');
// Audit Columns