<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

/** @deprecated 经营代理已改用平台角色 slug=agent */
final class AgentOwnerPermissionsResyncCommand extends Command
{
    protected $signature = 'lottery:agent-owner-permissions-resync';

    protected $description = '已废弃：请使用 lottery:agent-roles-sync，并在「平台角色管理」编辑「代理」角色';

    public function handle(): int
    {
        $this->warn('agent_owner_* 已不再用于经营主账号；正在转调 lottery:agent-roles-sync …');

        return $this->call('lottery:agent-roles-sync');
    }
}
