Model and Migration files
This commit is contained in:
@@ -6,15 +6,17 @@ use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void {
|
||||
Schema::create('inspeksi_lahan', function (Blueprint $table) {
|
||||
Schema::create('lahan_inspeksi', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('petani_id')->nullable()->constrained('users')->onDelete('set null');
|
||||
$table->unsignedBigInteger('lahan_id')->nullable();
|
||||
$table->string('lahan_uid');
|
||||
$table->double('kadar_air')->nullable();
|
||||
$table->double('ph')->nullable();
|
||||
$table->double('kelembapan')->nullable();
|
||||
$table->double('temperatur')->nullable();
|
||||
$table->string('kondisi_tanaman')->nullable();
|
||||
$table->date('tgl_inspeksi');
|
||||
$table->text('catatan')->nullable();
|
||||
$table->string('foto_url')->nullable();
|
||||
$table->string('sync_status')->default('pending');
|
||||
|
||||
Reference in New Issue
Block a user