first commit

This commit is contained in:
2025-11-21 17:15:27 +08:00
commit c7cbe7edb7
152 changed files with 17423 additions and 0 deletions

25
app/Models/MachineLog.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MachineLog extends Model
{
protected $fillable = [
'machine_id',
'level',
'message',
'context',
];
protected $casts = [
'context' => 'array',
];
public function machine()
{
return $this->belongsTo(Machine::class);
}
}