<?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 Version20250120012631 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('CREATE TABLE estados (id INT AUTO_INCREMENT NOT NULL, codigo VARCHAR(2) NOT NULL, descripcion VARCHAR(30) NOT NULL, estatus TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
        $this->addSql('CREATE TABLE paquetes (id INT AUTO_INCREMENT NOT NULL, descripcion LONGTEXT NOT NULL, fecha_registro DATETIME NOT NULL, estatus TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
        $this->addSql('CREATE TABLE registros (id INT AUTO_INCREMENT NOT NULL, nombre_empresa VARCHAR(150) NOT NULL, persona_contacto VARCHAR(100) NOT NULL, celular VARCHAR(12) NOT NULL, correo VARCHAR(60) NOT NULL, paquetes_id INT NOT NULL, fecha_registro DATETIME NOT NULL, direccion_ip VARCHAR(20) NOT NULL, estatus TINYINT(1) NOT NULL, estados_id INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('DROP TABLE estados');
        $this->addSql('DROP TABLE paquetes');
        $this->addSql('DROP TABLE registros');
    }
}
