<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
 * User-level IBANs (settlement payouts) — the same JSON shape representations use,
 * so any role with a wallet balance can request a settlement.
 */
final class Version20260725143539 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add profiles.bank_account (user IBANs for settlements)';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE profiles ADD bank_account JSON DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        $this->addSql('ALTER TABLE profiles DROP bank_account');
    }
}
