coolify/docs/v5/archive/app/Models/V5/ContainerStatus.php.txt

44 lines
851 B
Text
Raw Normal View History

2026-06-20 07:23:16 +00:00
<?php
namespace App\Models\V5;
use App\Models\Team;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ContainerStatus extends V5Model
{
protected $table = 'v5_container_statuses';
protected bool $hasUuidColumn = false;
2026-06-20 07:23:16 +00:00
protected $fillable = [
'team_id',
'server_id',
'container_id',
'container_name',
'image',
'status',
'status_message',
'status_observed_at',
2026-06-20 07:23:16 +00:00
'last_seen_at',
];
protected function casts(): array
{
return [
'status_observed_at' => 'datetime',
2026-06-20 07:23:16 +00:00
'last_seen_at' => 'datetime',
];
}
public function team(): BelongsTo
{
return $this->belongsTo(Team::class);
}
public function server(): BelongsTo
{
return $this->belongsTo(Server::class);
}
}