<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

/**
 * Auto-generated Migration: Please modify to your needs!
 */
final class Version20260401081902 extends AbstractMigration
{
    public function getDescription(): string
    {
        return '';
    }

    public function up(Schema $schema): void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE "user" ADD email_auth_code VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE "user" ADD is_email_auth_enabled BOOLEAN DEFAULT false NOT NULL');
        $this->addSql('ALTER TABLE "user" ADD google_authenticator_secret VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE "user" ADD is_google_auth_enabled BOOLEAN DEFAULT false NOT NULL');
        $this->addSql('ALTER TABLE "user" ADD backup_codes JSON DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE "user" DROP email_auth_code');
        $this->addSql('ALTER TABLE "user" DROP is_email_auth_enabled');
        $this->addSql('ALTER TABLE "user" DROP google_authenticator_secret');
        $this->addSql('ALTER TABLE "user" DROP is_google_auth_enabled');
        $this->addSql('ALTER TABLE "user" DROP backup_codes');
    }
}
