<?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 Version20221228140556 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 person (id INT AUTO_INCREMENT NOT NULL, first_name VARCHAR(150) NOT NULL, last_name VARCHAR(200) DEFAULT NULL, civility VARCHAR(20) NOT NULL, niu VARCHAR(20) DEFAULT NULL, date_of_birth DATE DEFAULT NULL, place_of_birth VARCHAR(100) DEFAULT NULL, father_last_name VARCHAR(100) DEFAULT NULL, father_first_name VARCHAR(100) DEFAULT NULL, mother_first_name VARCHAR(100) DEFAULT NULL, mother_last_name VARCHAR(100) DEFAULT NULL, email VARCHAR(100) NOT NULL, phone VARCHAR(20) NOT NULL, type_of_identification_document VARCHAR(100) NOT NULL, identification_document_number VARCHAR(100) NOT NULL, date_of_issue DATE NOT NULL, picture_front_of_identification_document VARCHAR(255) NOT NULL, picture_back_of_identification_document VARCHAR(255) NOT NULL, stop VARCHAR(255) DEFAULT 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 person');
    }
}
