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
+4 -1
View File
@@ -9,12 +9,13 @@ class InsLahan extends Model
{
use HasFactory;
protected $table = 'inspeksi_lahan';
protected $table = 'lahan_inspeksi';
protected $fillable = [
'petani_id',
'lahan_id',
'kadar_air',
'lahan_uid',
'ph',
'kelembapan',
'temperatur',
@@ -22,6 +23,7 @@ class InsLahan extends Model
'catatan',
'foto_url',
'sync_status',
'tgl_inspeksi',
'created_at',
'updated_at'
];
@@ -30,6 +32,7 @@ class InsLahan extends Model
'temperatur' => 'float',
'kelembapan' => 'float',
'created_at' => 'datetime',
'tgl_inspeksi' => 'datetime'
];
public $timestamps = true;