mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 06:26:22 +00:00
Move V5 source, migrations, UI, scripts, and tests into documentation, then remove V5 routes, models, jobs, configuration, dependencies, and application hooks.
46 lines
1005 B
Plaintext
46 lines
1005 B
Plaintext
<?php
|
|
|
|
namespace App\Models\V5;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* A host-agent JWT that has been revoked (typically on server destroy/re-home).
|
|
*
|
|
* flux does not yet consult this list (see AgentTokenIssuer::revoke docblock);
|
|
* it exists so the Laravel side owns the data and API needed for revocation the
|
|
* moment flux gains a revocation check.
|
|
*/
|
|
class RevokedAgentToken extends V5Model
|
|
{
|
|
protected bool $hasUuidColumn = false;
|
|
|
|
protected $table = 'v5_revoked_agent_tokens';
|
|
|
|
protected $fillable = [
|
|
'jti',
|
|
'server_id',
|
|
'revoked_at',
|
|
'expires_at',
|
|
];
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'revoked_at' => 'datetime',
|
|
'expires_at' => 'datetime',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return BelongsTo<Server, $this>
|
|
*/
|
|
public function server(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Server::class);
|
|
}
|
|
}
|