'datetime', 'created_at' => 'datetime', ]; public function client(): BelongsTo { return $this->belongsTo(OAuthClient::class, 'client_id', 'client_id'); } public function user(): BelongsTo { return $this->belongsTo(User::class); } public function isExpired(): bool { return $this->expires_at < now(); } }