Jenkins file
Laverie/backend/pipeline/head There was a failure building this commit

This commit is contained in:
bastien
2026-07-04 22:42:58 +02:00
parent 10ee859602
commit d95bfa6c58
244 changed files with 16 additions and 15 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
#[Fillable(['machine_id', 'previous_status', 'new_status', 'source', 'reason'])]
class MachineStatusHistory extends Model
{
public const UPDATED_AT = null;
protected $table = 'machine_status_history';
protected function casts(): array
{
return [
'created_at' => 'datetime',
];
}
public function machine(): BelongsTo
{
return $this->belongsTo(Machine::class);
}
}