feat(Customer): Ajoute la relation OneToMany avec l'entité Website

 feat(esyweb): Ajoute un contrôleur et une page pour les sites web

🐛 fix(register): Corrige l'enregistrement des paiements partiels et complets

 feat(Payment): Gère les paiements complets et partiels via Stancer

 feat(BillingEvent): Ajoute des listeners pour les paiements complétés
This commit is contained in:
Serreau Jovann
2025-10-07 14:04:16 +02:00
parent 6c3b6aae43
commit 21f70606ee
16 changed files with 527 additions and 53 deletions

View File

@@ -0,0 +1,36 @@
<?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 Version20251007110952 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 website (id SERIAL NOT NULL, customer_id INT DEFAULT NULL, uuid UUID NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_476F5DE79395C3F3 ON website (customer_id)');
$this->addSql('COMMENT ON COLUMN website.uuid IS \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE website ADD CONSTRAINT FK_476F5DE79395C3F3 FOREIGN KEY (customer_id) REFERENCES customer (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE website DROP CONSTRAINT FK_476F5DE79395C3F3');
$this->addSql('DROP TABLE website');
}
}