<?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 Version20240117065108 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 user_ads (id INT AUTO_INCREMENT NOT NULL, user INT NOT NULL, start_date DATETIME NOT NULL,
end_date DATETIME NOT NULL, module ENUM("home","memo","community-feed") NOT NULL,
slot_number INT NOT NULL,
total_amount DECIMAL(10, 2) NOT NULL, payment_frequency ENUM("yearly","monthly","fixed") NOT NULL,
tag LONGTEXT NOT NULL, status INT NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\',
updated_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\',
deleted_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\',
PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
}
}