<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

/**
 * Insurance selection carried by an appointment: the service kind it is billed as
 * (outpatient/inpatient) and the chosen basic insurance. Both nullable — an
 * appointment without insurance keeps its previous behaviour.
 */
final class Version20260725131554 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add appointments.insurance_service_category and appointments.insurance_base_id';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE appointments ADD insurance_service_category VARCHAR(30) DEFAULT NULL, ADD insurance_base_id INT DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        $this->addSql('ALTER TABLE appointments DROP insurance_service_category, DROP insurance_base_id');
    }
}
