IMEI device API: telemetry, commands, receipts + migrations and routing

This commit is contained in:
2025-09-02 18:29:27 +10:00
parent e0bb2ea67c
commit 0868b04298
9 changed files with 204 additions and 0 deletions

18
app/Models/Device.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Device extends Model
{
protected $fillable = [
'user_id','name','imei','is_active','last_seen_at','last_ip',
'firmware_version','hardware_version',
];
protected $casts = [
'is_active' => 'boolean',
'last_seen_at' => 'datetime',
];
}