<?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 Version20251102121337 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 `registration_billing_detail` (
`id` int NOT NULL AUTO_INCREMENT,
`registration_id` int NOT NULL,
`billing_category_id` int NOT NULL,
`billing_invoice_month` varchar(7) NOT NULL,
`cheshbon_for` varchar(45) NOT NULL,
`billing_date` datetime NOT NULL,
`exam_vendor_id` int NOT NULL,
`exam_credits` int NOT NULL,
`exam_additional_charge` float NOT NULL,
`billing_category_credits` int NOT NULL,
`rate_per_credit` decimal(8,2) NOT NULL,
`charge_additional_grading_fee` tinyint(1) NOT NULL,
`credits_fee` decimal(8,2) NOT NULL,
`grading_fee` decimal(8,2) NOT NULL,
`processing_fee` decimal(8,2) NOT NULL,
`info_allpackages` varchar(255) NOT NULL,
`info_seminarystudent` varchar(255) NOT NULL,
`create_date` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE (`registration_id`,`billing_category_id`),
FOREIGN KEY (`registration_id`) REFERENCES registrations(`id`),
FOREIGN KEY (`billing_category_id`) REFERENCES billing_categories(`id`),
FOREIGN KEY (`exam_vendor_id`) REFERENCES vendors(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DROP TABLE registration_billing_detail");
}
}