feat(order/flow): Ajoute le formulaire de détails de commande.

Ajoute un formulaire Twig pour la saisie des détails de la
commande et des informations de contact.
This commit is contained in:
Serreau Jovann
2025-11-04 20:21:39 +01:00
parent 6c61ae2b1b
commit 9a3944a7a0
11 changed files with 1107 additions and 4 deletions

View File

@@ -0,0 +1,37 @@
<?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 Version20251104190740 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 "order" (id SERIAL NOT NULL, raison_social VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, surname VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, uuid UUID NOT NULL, state VARCHAR(255) NOT NULL, payment_id VARCHAR(255) DEFAULT NULL, submision_id VARCHAR(255) DEFAULT NULL, siret VARCHAR(255) DEFAULT NULL, type VARCHAR(255) DEFAULT NULL, namewebsite VARCHAR(255) DEFAULT NULL, create_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, update_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, cgv_file_name VARCHAR(255) DEFAULT NULL, cgv_dimensions JSON DEFAULT NULL, cgv_size VARCHAR(255) DEFAULT NULL, cgv_mine_type VARCHAR(255) DEFAULT NULL, cgv_original_name VARCHAR(255) DEFAULT NULL, cgv_audit_file_name VARCHAR(255) DEFAULT NULL, cgv_audit_dimensions JSON DEFAULT NULL, cgv_audit_size VARCHAR(255) DEFAULT NULL, cgv_audit_mine_type VARCHAR(255) DEFAULT NULL, cgv_audit_original_name VARCHAR(255) DEFAULT NULL, order_contrat_file_name VARCHAR(255) DEFAULT NULL, order_contrat_dimensions JSON DEFAULT NULL, order_contrat_size VARCHAR(255) DEFAULT NULL, order_contrat_mine_type VARCHAR(255) DEFAULT NULL, order_contrat_original_name VARCHAR(255) DEFAULT NULL, order_contrat_audit_file_name VARCHAR(255) DEFAULT NULL, order_contrat_audit_dimensions JSON DEFAULT NULL, order_contrat_audit_size VARCHAR(255) DEFAULT NULL, order_contrat_audit_mine_type VARCHAR(255) DEFAULT NULL, order_contrat_audit_original_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('COMMENT ON COLUMN "order".uuid IS \'(DC2Type:uuid)\'');
$this->addSql('COMMENT ON COLUMN "order".create_at IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('COMMENT ON COLUMN "order".update_at IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('CREATE TABLE order_website (id SERIAL NOT NULL, id_formule INT NOT NULL, PRIMARY KEY(id))');
}
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('DROP TABLE "order"');
$this->addSql('DROP TABLE order_website');
}
}

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 Version20251104191430 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('ALTER TABLE "order" ADD id_formule INT NOT NULL');
$this->addSql('ALTER TABLE "order" ADD is_ndd BOOLEAN NOT NULL');
$this->addSql('ALTER TABLE "order" ADD ndd VARCHAR(255) DEFAULT NULL');
}
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 "order" DROP id_formule');
$this->addSql('ALTER TABLE "order" DROP is_ndd');
$this->addSql('ALTER TABLE "order" DROP ndd');
}
}