mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-28 18:14:35 -05:00
Split V5 dashboard behavior into domain controllers and policies, add agent token rotation/revocation, status reconciliation jobs, ingress firewall syncing, and canvas connection APIs. Add migrations for V5 status tracking, server capabilities, resource connection aliases, and revoked agent tokens.
44 lines
851 B
PHP
44 lines
851 B
PHP
<?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;
|
|
|
|
protected $fillable = [
|
|
'team_id',
|
|
'server_id',
|
|
'container_id',
|
|
'container_name',
|
|
'image',
|
|
'status',
|
|
'status_message',
|
|
'status_observed_at',
|
|
'last_seen_at',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'status_observed_at' => 'datetime',
|
|
'last_seen_at' => 'datetime',
|
|
];
|
|
}
|
|
|
|
public function team(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Team::class);
|
|
}
|
|
|
|
public function server(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Server::class);
|
|
}
|
|
}
|