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

21
app/Models/Command.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Command extends Model
{
protected $table = 'command_queue';
protected $fillable = [
'device_id','command_type','payload','priority','status',
'not_before_at','expires_at','created_by_user_id',
];
protected $casts = [
'payload' => 'array',
'not_before_at' => 'datetime',
'expires_at' => 'datetime',
];
}