Browse Source

Gestion de l'age des participants

garthh 1 week ago
parent
commit
3b097ba0f6
48 changed files with 82 additions and 1332 deletions
  1. 0 33
      migrations/Version20250720130842.php
  2. 0 31
      migrations/Version20250720131638.php
  3. 0 33
      migrations/Version20250720220735.php
  4. 0 31
      migrations/Version20250720232123.php
  5. 0 31
      migrations/Version20250721070144.php
  6. 0 31
      migrations/Version20250722224212.php
  7. 0 31
      migrations/Version20250723075955.php
  8. 0 31
      migrations/Version20250725105030.php
  9. 0 31
      migrations/Version20250725105242.php
  10. 0 31
      migrations/Version20250725192841.php
  11. 0 35
      migrations/Version20250725194830.php
  12. 0 35
      migrations/Version20250728151401.php
  13. 0 31
      migrations/Version20250728151622.php
  14. 0 31
      migrations/Version20250728165702.php
  15. 0 39
      migrations/Version20250730073654.php
  16. 0 35
      migrations/Version20250730100757.php
  17. 0 35
      migrations/Version20250730100906.php
  18. 0 31
      migrations/Version20250730143023.php
  19. 0 31
      migrations/Version20250730153951.php
  20. 0 31
      migrations/Version20250730154411.php
  21. 0 31
      migrations/Version20250731051535.php
  22. 0 31
      migrations/Version20250731170906.php
  23. 0 31
      migrations/Version20250731171858.php
  24. 0 31
      migrations/Version20250801072844.php
  25. 0 45
      migrations/Version20250801083732.php
  26. 0 31
      migrations/Version20250801110344.php
  27. 0 31
      migrations/Version20250801123256.php
  28. 0 41
      migrations/Version20250802172752.php
  29. 0 43
      migrations/Version20250803035835.php
  30. 0 31
      migrations/Version20250803040519.php
  31. 0 35
      migrations/Version20250803064511.php
  32. 0 31
      migrations/Version20250803150625.php
  33. 0 31
      migrations/Version20250803151721.php
  34. 0 33
      migrations/Version20250804215133.php
  35. 0 31
      migrations/Version20250805094831.php
  36. 0 41
      migrations/Version20250805214838.php
  37. 0 31
      migrations/Version20250806080643.php
  38. 0 31
      migrations/Version20250808202547.php
  39. 0 37
      migrations/Version20250810044833.php
  40. 0 31
      migrations/Version20250810045142.php
  41. 15 0
      src/Controller/MainController.php
  42. 1 1
      src/Controller/PrepareController.php
  43. 30 0
      src/Entity/Game.php
  44. 3 2
      src/Entity/Participation.php
  45. 16 1
      src/Form/GameType.php
  46. 6 0
      templates/admin/game/edit.html.twig
  47. 2 1
      templates/components/Planning.html.twig
  48. 9 1
      templates/participation/_modal.add.html.twig

+ 0 - 33
migrations/Version20250720130842.php

@@ -1,33 +0,0 @@
-<?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 Version20250720130842 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 (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', email VARCHAR(180) NOT NULL, roles JSON NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_IDENTIFIER_EMAIL (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', available_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', delivered_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_75EA56E0FB7336F0 (queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX IDX_75EA56E016BA31DB (delivered_at), 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 user');
-        $this->addSql('DROP TABLE messenger_messages');
-    }
-}

+ 0 - 31
migrations/Version20250720131638.php

@@ -1,31 +0,0 @@
-<?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 Version20250720131638 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 user ADD is_verified TINYINT(1) NOT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE user DROP is_verified');
-    }
-}

+ 0 - 33
migrations/Version20250720220735.php

@@ -1,33 +0,0 @@
-<?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 Version20250720220735 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 reset_password_request (id INT AUTO_INCREMENT NOT NULL, user_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', selector VARCHAR(20) NOT NULL, hashed_token VARCHAR(100) NOT NULL, requested_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', expires_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_7CE748AA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE reset_password_request ADD CONSTRAINT FK_7CE748AA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE reset_password_request DROP FOREIGN KEY FK_7CE748AA76ED395');
-        $this->addSql('DROP TABLE reset_password_request');
-    }
-}

+ 0 - 31
migrations/Version20250720232123.php

@@ -1,31 +0,0 @@
-<?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 Version20250720232123 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 user ADD first_name VARCHAR(180) NOT NULL, ADD last_name VARCHAR(180) NOT NULL, ADD phone VARCHAR(255) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE user DROP first_name, DROP last_name, DROP phone');
-    }
-}

+ 0 - 31
migrations/Version20250721070144.php

@@ -1,31 +0,0 @@
-<?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 Version20250721070144 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 user ADD last_update DATE NOT NULL, ADD last_login DATE NOT NULL, ADD last_action DATE NOT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE user DROP last_update, DROP last_login, DROP last_action');
-    }
-}

+ 0 - 31
migrations/Version20250722224212.php

@@ -1,31 +0,0 @@
-<?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 Version20250722224212 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 user CHANGE last_update last_update DATE DEFAULT NULL, CHANGE last_login last_login DATE DEFAULT NULL, CHANGE last_action last_action DATE DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE user CHANGE last_update last_update DATE NOT NULL, CHANGE last_login last_login DATE NOT NULL, CHANGE last_action last_action DATE NOT NULL');
-    }
-}

+ 0 - 31
migrations/Version20250723075955.php

@@ -1,31 +0,0 @@
-<?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 Version20250723075955 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 user CHANGE last_update last_update DATETIME DEFAULT NULL, CHANGE last_login last_login DATETIME DEFAULT NULL, CHANGE last_action last_action DATETIME DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE user CHANGE last_update last_update DATE DEFAULT NULL, CHANGE last_login last_login DATE DEFAULT NULL, CHANGE last_action last_action DATE DEFAULT NULL');
-    }
-}

+ 0 - 31
migrations/Version20250725105030.php

@@ -1,31 +0,0 @@
-<?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 Version20250725105030 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 genre (id INT AUTO_INCREMENT NOT NULL, genre VARCHAR(255) NOT NULL, slug VARCHAR(255) NOT 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 genre');
-    }
-}

+ 0 - 31
migrations/Version20250725105242.php

@@ -1,31 +0,0 @@
-<?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 Version20250725105242 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 genre CHANGE id id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\'');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE genre CHANGE id id INT AUTO_INCREMENT NOT NULL');
-    }
-}

+ 0 - 31
migrations/Version20250725192841.php

@@ -1,31 +0,0 @@
-<?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 Version20250725192841 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 game (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, slug VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, is_physical TINYINT(1) DEFAULT NULL, is_numerical TINYINT(1) DEFAULT NULL, url_numerical_version VARCHAR(255) DEFAULT NULL, is_in_asso_library TINYINT(1) DEFAULT NULL, is_borrowed TINYINT(1) DEFAULT NULL, picture 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 game');
-    }
-}

+ 0 - 35
migrations/Version20250725194830.php

@@ -1,35 +0,0 @@
-<?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 Version20250725194830 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 game_genre (game_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', genre_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_B1634A77E48FD905 (game_id), INDEX IDX_B1634A774296D31F (genre_id), PRIMARY KEY(game_id, genre_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE game_genre ADD CONSTRAINT FK_B1634A77E48FD905 FOREIGN KEY (game_id) REFERENCES game (id) ON DELETE CASCADE');
-        $this->addSql('ALTER TABLE game_genre ADD CONSTRAINT FK_B1634A774296D31F FOREIGN KEY (genre_id) REFERENCES genre (id) ON DELETE CASCADE');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE game_genre DROP FOREIGN KEY FK_B1634A77E48FD905');
-        $this->addSql('ALTER TABLE game_genre DROP FOREIGN KEY FK_B1634A774296D31F');
-        $this->addSql('DROP TABLE game_genre');
-    }
-}

+ 0 - 35
migrations/Version20250728151401.php

@@ -1,35 +0,0 @@
-<?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 Version20250728151401 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 game ADD add_by_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', ADD add_datetime DATETIME DEFAULT NULL');
-        $this->addSql('ALTER TABLE game ADD CONSTRAINT FK_232B318C17542AC5 FOREIGN KEY (add_by_id) REFERENCES user (id)');
-        $this->addSql('CREATE INDEX IDX_232B318C17542AC5 ON game (add_by_id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE game DROP FOREIGN KEY FK_232B318C17542AC5');
-        $this->addSql('DROP INDEX IDX_232B318C17542AC5 ON game');
-        $this->addSql('ALTER TABLE game DROP add_by_id, DROP add_datetime');
-    }
-}

+ 0 - 31
migrations/Version20250728151622.php

@@ -1,31 +0,0 @@
-<?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 Version20250728151622 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 game ADD is_valid_by_admin TINYINT(1) NOT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE game DROP is_valid_by_admin');
-    }
-}

+ 0 - 31
migrations/Version20250728165702.php

@@ -1,31 +0,0 @@
-<?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 Version20250728165702 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 game ADD valid_datetime DATETIME DEFAULT NULL, CHANGE is_valid_by_admin is_valid_by_admin TINYINT(1) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE game DROP valid_datetime, CHANGE is_valid_by_admin is_valid_by_admin TINYINT(1) NOT NULL');
-    }
-}

+ 0 - 39
migrations/Version20250730073654.php

@@ -1,39 +0,0 @@
-<?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 Version20250730073654 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 gamemaster (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', link_to_user_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', email VARCHAR(180) NOT NULL, first_name VARCHAR(180) DEFAULT NULL, last_name VARCHAR(180) DEFAULT NULL, prefered_name VARCHAR(180) DEFAULT NULL, description LONGTEXT DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_950236C57E7C2E95 (link_to_user_id), UNIQUE INDEX UNIQ_IDENTIFIER_EMAIL (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('CREATE TABLE gamemaster_game (gamemaster_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', game_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_85092B7096376157 (gamemaster_id), INDEX IDX_85092B70E48FD905 (game_id), PRIMARY KEY(gamemaster_id, game_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE gamemaster ADD CONSTRAINT FK_950236C57E7C2E95 FOREIGN KEY (link_to_user_id) REFERENCES user (id)');
-        $this->addSql('ALTER TABLE gamemaster_game ADD CONSTRAINT FK_85092B7096376157 FOREIGN KEY (gamemaster_id) REFERENCES gamemaster (id) ON DELETE CASCADE');
-        $this->addSql('ALTER TABLE gamemaster_game ADD CONSTRAINT FK_85092B70E48FD905 FOREIGN KEY (game_id) REFERENCES game (id) ON DELETE CASCADE');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE gamemaster DROP FOREIGN KEY FK_950236C57E7C2E95');
-        $this->addSql('ALTER TABLE gamemaster_game DROP FOREIGN KEY FK_85092B7096376157');
-        $this->addSql('ALTER TABLE gamemaster_game DROP FOREIGN KEY FK_85092B70E48FD905');
-        $this->addSql('DROP TABLE gamemaster');
-        $this->addSql('DROP TABLE gamemaster_game');
-    }
-}

+ 0 - 35
migrations/Version20250730100757.php

@@ -1,35 +0,0 @@
-<?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 Version20250730100757 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 gamemaster DROP FOREIGN KEY FK_950236C57E7C2E95');
-        $this->addSql('DROP INDEX UNIQ_950236C57E7C2E95 ON gamemaster');
-        $this->addSql('ALTER TABLE gamemaster DROP link_to_user_id');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE gamemaster ADD link_to_user_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
-        $this->addSql('ALTER TABLE gamemaster ADD CONSTRAINT FK_950236C57E7C2E95 FOREIGN KEY (link_to_user_id) REFERENCES user (id)');
-        $this->addSql('CREATE UNIQUE INDEX UNIQ_950236C57E7C2E95 ON gamemaster (link_to_user_id)');
-    }
-}

+ 0 - 35
migrations/Version20250730100906.php

@@ -1,35 +0,0 @@
-<?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 Version20250730100906 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 gamemaster ADD link_to_user_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
-        $this->addSql('ALTER TABLE gamemaster ADD CONSTRAINT FK_950236C57E7C2E95 FOREIGN KEY (link_to_user_id) REFERENCES user (id)');
-        $this->addSql('CREATE UNIQUE INDEX UNIQ_950236C57E7C2E95 ON gamemaster (link_to_user_id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE gamemaster DROP FOREIGN KEY FK_950236C57E7C2E95');
-        $this->addSql('DROP INDEX UNIQ_950236C57E7C2E95 ON gamemaster');
-        $this->addSql('ALTER TABLE gamemaster DROP link_to_user_id');
-    }
-}

+ 0 - 31
migrations/Version20250730143023.php

@@ -1,31 +0,0 @@
-<?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 Version20250730143023 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 gamemaster ADD picture VARCHAR(255) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE gamemaster DROP picture');
-    }
-}

+ 0 - 31
migrations/Version20250730153951.php

@@ -1,31 +0,0 @@
-<?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 Version20250730153951 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 gamemaster ADD slug VARCHAR(255) NOT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE gamemaster DROP slug');
-    }
-}

+ 0 - 31
migrations/Version20250730154411.php

@@ -1,31 +0,0 @@
-<?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 Version20250730154411 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 gamemaster CHANGE slug slug VARCHAR(255) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE gamemaster CHANGE slug slug VARCHAR(255) NOT NULL');
-    }
-}

+ 0 - 31
migrations/Version20250731051535.php

@@ -1,31 +0,0 @@
-<?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 Version20250731051535 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 event (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, picture VARCHAR(255) DEFAULT NULL, start_on DATETIME NOT NULL COMMENT \'(DC2Type:datetimetz_immutable)\', end_on DATETIME NOT NULL COMMENT \'(DC2Type:datetimetz_immutable)\', more_link VARCHAR(255) DEFAULT NULL, slug VARCHAR(255) DEFAULT NULL, published TINYINT(1) DEFAULT NULL, public TINYINT(1) DEFAULT NULL, everyone_can_show_planning TINYINT(1) DEFAULT NULL, everyone_can_ask_for_game TINYINT(1) 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 event');
-    }
-}

+ 0 - 31
migrations/Version20250731170906.php

@@ -1,31 +0,0 @@
-<?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 Version20250731170906 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 event CHANGE start_on start_on DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', CHANGE end_on end_on DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE event CHANGE start_on start_on DATETIME NOT NULL COMMENT \'(DC2Type:datetimetz_immutable)\', CHANGE end_on end_on DATETIME NOT NULL COMMENT \'(DC2Type:datetimetz_immutable)\'');
-    }
-}

+ 0 - 31
migrations/Version20250731171858.php

@@ -1,31 +0,0 @@
-<?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 Version20250731171858 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 event CHANGE start_on start_on DATETIME NOT NULL, CHANGE end_on end_on DATETIME NOT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE event CHANGE start_on start_on DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', CHANGE end_on end_on DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
-    }
-}

+ 0 - 31
migrations/Version20250801072844.php

@@ -1,31 +0,0 @@
-<?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 Version20250801072844 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 event ADD private TINYINT(1) DEFAULT NULL, ADD hidden_planning TINYINT(1) DEFAULT NULL, DROP public, DROP everyone_can_show_planning');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE event ADD public TINYINT(1) DEFAULT NULL, ADD everyone_can_show_planning TINYINT(1) DEFAULT NULL, DROP private, DROP hidden_planning');
-    }
-}

+ 0 - 45
migrations/Version20250801083732.php

@@ -1,45 +0,0 @@
-<?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 Version20250801083732 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 period (id INT AUTO_INCREMENT NOT NULL, event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', start_on DATETIME NOT NULL, end_on DATETIME NOT NULL, INDEX IDX_C5B81ECE71F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('CREATE TABLE slot (id INT AUTO_INCREMENT NOT NULL, period_id INT NOT NULL, space_id INT NOT NULL, event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', start_on DATETIME NOT NULL, end_on DATETIME NOT NULL, unavailable TINYINT(1) DEFAULT NULL, INDEX IDX_AC0E2067EC8B7ADE (period_id), INDEX IDX_AC0E206723575340 (space_id), INDEX IDX_AC0E206771F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('CREATE TABLE space (id INT AUTO_INCREMENT NOT NULL, event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, INDEX IDX_2972C13A71F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE period ADD CONSTRAINT FK_C5B81ECE71F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
-        $this->addSql('ALTER TABLE slot ADD CONSTRAINT FK_AC0E2067EC8B7ADE FOREIGN KEY (period_id) REFERENCES period (id)');
-        $this->addSql('ALTER TABLE slot ADD CONSTRAINT FK_AC0E206723575340 FOREIGN KEY (space_id) REFERENCES space (id)');
-        $this->addSql('ALTER TABLE slot ADD CONSTRAINT FK_AC0E206771F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
-        $this->addSql('ALTER TABLE space ADD CONSTRAINT FK_2972C13A71F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE period DROP FOREIGN KEY FK_C5B81ECE71F7E88B');
-        $this->addSql('ALTER TABLE slot DROP FOREIGN KEY FK_AC0E2067EC8B7ADE');
-        $this->addSql('ALTER TABLE slot DROP FOREIGN KEY FK_AC0E206723575340');
-        $this->addSql('ALTER TABLE slot DROP FOREIGN KEY FK_AC0E206771F7E88B');
-        $this->addSql('ALTER TABLE space DROP FOREIGN KEY FK_2972C13A71F7E88B');
-        $this->addSql('DROP TABLE period');
-        $this->addSql('DROP TABLE slot');
-        $this->addSql('DROP TABLE space');
-    }
-}

+ 0 - 31
migrations/Version20250801110344.php

@@ -1,31 +0,0 @@
-<?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 Version20250801110344 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 space ADD locked TINYINT(1) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE space DROP locked');
-    }
-}

+ 0 - 31
migrations/Version20250801123256.php

@@ -1,31 +0,0 @@
-<?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 Version20250801123256 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 period ADD locked TINYINT(1) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE period DROP locked');
-    }
-}

+ 0 - 41
migrations/Version20250802172752.php

@@ -1,41 +0,0 @@
-<?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 Version20250802172752 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 event_gamemaster (event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', gamemaster_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_CDECEFEA71F7E88B (event_id), INDEX IDX_CDECEFEA96376157 (gamemaster_id), PRIMARY KEY(event_id, gamemaster_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('CREATE TABLE event_game (event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', game_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_3CE07D2771F7E88B (event_id), INDEX IDX_3CE07D27E48FD905 (game_id), PRIMARY KEY(event_id, game_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE event_gamemaster ADD CONSTRAINT FK_CDECEFEA71F7E88B FOREIGN KEY (event_id) REFERENCES event (id) ON DELETE CASCADE');
-        $this->addSql('ALTER TABLE event_gamemaster ADD CONSTRAINT FK_CDECEFEA96376157 FOREIGN KEY (gamemaster_id) REFERENCES gamemaster (id) ON DELETE CASCADE');
-        $this->addSql('ALTER TABLE event_game ADD CONSTRAINT FK_3CE07D2771F7E88B FOREIGN KEY (event_id) REFERENCES event (id) ON DELETE CASCADE');
-        $this->addSql('ALTER TABLE event_game ADD CONSTRAINT FK_3CE07D27E48FD905 FOREIGN KEY (game_id) REFERENCES game (id) ON DELETE CASCADE');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE event_gamemaster DROP FOREIGN KEY FK_CDECEFEA71F7E88B');
-        $this->addSql('ALTER TABLE event_gamemaster DROP FOREIGN KEY FK_CDECEFEA96376157');
-        $this->addSql('ALTER TABLE event_game DROP FOREIGN KEY FK_3CE07D2771F7E88B');
-        $this->addSql('ALTER TABLE event_game DROP FOREIGN KEY FK_3CE07D27E48FD905');
-        $this->addSql('DROP TABLE event_gamemaster');
-        $this->addSql('DROP TABLE event_game');
-    }
-}

+ 0 - 43
migrations/Version20250803035835.php

@@ -1,43 +0,0 @@
-<?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 Version20250803035835 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 party (id INT AUTO_INCREMENT NOT NULL, gamemaster_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', game_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', start_on DATETIME DEFAULT NULL, end_on DATETIME DEFAULT NULL, gamemaster_is_author TINYINT(1) DEFAULT NULL, min_participants INT DEFAULT NULL, max_participants INT DEFAULT NULL, INDEX IDX_89954EE096376157 (gamemaster_id), INDEX IDX_89954EE0E48FD905 (game_id), INDEX IDX_89954EE071F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE party ADD CONSTRAINT FK_89954EE096376157 FOREIGN KEY (gamemaster_id) REFERENCES gamemaster (id)');
-        $this->addSql('ALTER TABLE party ADD CONSTRAINT FK_89954EE0E48FD905 FOREIGN KEY (game_id) REFERENCES game (id)');
-        $this->addSql('ALTER TABLE party ADD CONSTRAINT FK_89954EE071F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
-        $this->addSql('ALTER TABLE slot ADD party_id INT DEFAULT NULL');
-        $this->addSql('ALTER TABLE slot ADD CONSTRAINT FK_AC0E2067213C1059 FOREIGN KEY (party_id) REFERENCES party (id)');
-        $this->addSql('CREATE INDEX IDX_AC0E2067213C1059 ON slot (party_id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE slot DROP FOREIGN KEY FK_AC0E2067213C1059');
-        $this->addSql('ALTER TABLE party DROP FOREIGN KEY FK_89954EE096376157');
-        $this->addSql('ALTER TABLE party DROP FOREIGN KEY FK_89954EE0E48FD905');
-        $this->addSql('ALTER TABLE party DROP FOREIGN KEY FK_89954EE071F7E88B');
-        $this->addSql('DROP TABLE party');
-        $this->addSql('DROP INDEX IDX_AC0E2067213C1059 ON slot');
-        $this->addSql('ALTER TABLE slot DROP party_id');
-    }
-}

+ 0 - 31
migrations/Version20250803040519.php

@@ -1,31 +0,0 @@
-<?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 Version20250803040519 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 party ADD description LONGTEXT DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE party DROP description');
-    }
-}

+ 0 - 35
migrations/Version20250803064511.php

@@ -1,35 +0,0 @@
-<?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 Version20250803064511 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 party ADD submitter_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', ADD submitted_date DATETIME DEFAULT NULL, ADD validated TINYINT(1) DEFAULT NULL');
-        $this->addSql('ALTER TABLE party ADD CONSTRAINT FK_89954EE0919E5513 FOREIGN KEY (submitter_id) REFERENCES user (id)');
-        $this->addSql('CREATE INDEX IDX_89954EE0919E5513 ON party (submitter_id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE party DROP FOREIGN KEY FK_89954EE0919E5513');
-        $this->addSql('DROP INDEX IDX_89954EE0919E5513 ON party');
-        $this->addSql('ALTER TABLE party DROP submitter_id, DROP submitted_date, DROP validated');
-    }
-}

+ 0 - 31
migrations/Version20250803150625.php

@@ -1,31 +0,0 @@
-<?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 Version20250803150625 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 party ADD new_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE party DROP new_id');
-    }
-}

+ 0 - 31
migrations/Version20250803151721.php

@@ -1,31 +0,0 @@
-<?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 Version20250803151721 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 slot CHANGE party_id party_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE slot CHANGE party_id party_id BINARY(16) DEFAULT NULL');
-    }
-}

+ 0 - 33
migrations/Version20250804215133.php

@@ -1,33 +0,0 @@
-<?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 Version20250804215133 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 participation (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', party_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', participant_name VARCHAR(255) NOT NULL, participant_email VARCHAR(255) NOT NULL, participant_phone VARCHAR(35) DEFAULT NULL COMMENT \'(DC2Type:phone_number)\', consent_mail TINYINT(1) DEFAULT NULL, consent_image TINYINT(1) DEFAULT NULL, INDEX IDX_AB55E24F213C1059 (party_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE participation ADD CONSTRAINT FK_AB55E24F213C1059 FOREIGN KEY (party_id) REFERENCES party (id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE participation DROP FOREIGN KEY FK_AB55E24F213C1059');
-        $this->addSql('DROP TABLE participation');
-    }
-}

+ 0 - 31
migrations/Version20250805094831.php

@@ -1,31 +0,0 @@
-<?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 Version20250805094831 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 participation CHANGE participant_phone participant_phone VARCHAR(255) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE participation CHANGE participant_phone participant_phone VARCHAR(35) DEFAULT NULL COMMENT \'(DC2Type:phone_number)\'');
-    }
-}

+ 0 - 41
migrations/Version20250805214838.php

@@ -1,41 +0,0 @@
-<?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 Version20250805214838 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 party_request (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', requester_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', moderator_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', game_choosen_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', gamemaster_choosen_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', date_request DATETIME NOT NULL, mod_on_date DATETIME DEFAULT NULL, accepted TINYINT(1) DEFAULT NULL, INDEX IDX_296610B4ED442CF4 (requester_id), INDEX IDX_296610B4D0AFA354 (moderator_id), INDEX IDX_296610B43A95A60F (game_choosen_id), INDEX IDX_296610B44B8771C4 (gamemaster_choosen_id), INDEX IDX_296610B471F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE party_request ADD CONSTRAINT FK_296610B4ED442CF4 FOREIGN KEY (requester_id) REFERENCES user (id)');
-        $this->addSql('ALTER TABLE party_request ADD CONSTRAINT FK_296610B4D0AFA354 FOREIGN KEY (moderator_id) REFERENCES user (id)');
-        $this->addSql('ALTER TABLE party_request ADD CONSTRAINT FK_296610B43A95A60F FOREIGN KEY (game_choosen_id) REFERENCES game (id)');
-        $this->addSql('ALTER TABLE party_request ADD CONSTRAINT FK_296610B44B8771C4 FOREIGN KEY (gamemaster_choosen_id) REFERENCES gamemaster (id)');
-        $this->addSql('ALTER TABLE party_request ADD CONSTRAINT FK_296610B471F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE party_request DROP FOREIGN KEY FK_296610B4ED442CF4');
-        $this->addSql('ALTER TABLE party_request DROP FOREIGN KEY FK_296610B4D0AFA354');
-        $this->addSql('ALTER TABLE party_request DROP FOREIGN KEY FK_296610B43A95A60F');
-        $this->addSql('ALTER TABLE party_request DROP FOREIGN KEY FK_296610B44B8771C4');
-        $this->addSql('ALTER TABLE party_request DROP FOREIGN KEY FK_296610B471F7E88B');
-        $this->addSql('DROP TABLE party_request');
-    }
-}

+ 0 - 31
migrations/Version20250806080643.php

@@ -1,31 +0,0 @@
-<?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 Version20250806080643 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 party_request ADD message LONGTEXT DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE party_request DROP message');
-    }
-}

+ 0 - 31
migrations/Version20250808202547.php

@@ -1,31 +0,0 @@
-<?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 Version20250808202547 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 participation ADD checkin TINYINT(1) DEFAULT NULL');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE participation DROP checkin');
-    }
-}

+ 0 - 37
migrations/Version20250810044833.php

@@ -1,37 +0,0 @@
-<?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 Version20250810044833 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 availability (id INT AUTO_INCREMENT NOT NULL, event_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', gamemaster_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', period_id INT NOT NULL, start_on DATETIME NOT NULL, end_on DATETIME NOT NULL, available TINYINT(1) NOT NULL, INDEX IDX_3FB7A2BF71F7E88B (event_id), INDEX IDX_3FB7A2BF96376157 (gamemaster_id), INDEX IDX_3FB7A2BFEC8B7ADE (period_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
-        $this->addSql('ALTER TABLE availability ADD CONSTRAINT FK_3FB7A2BF71F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
-        $this->addSql('ALTER TABLE availability ADD CONSTRAINT FK_3FB7A2BF96376157 FOREIGN KEY (gamemaster_id) REFERENCES gamemaster (id)');
-        $this->addSql('ALTER TABLE availability ADD CONSTRAINT FK_3FB7A2BFEC8B7ADE FOREIGN KEY (period_id) REFERENCES period (id)');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE availability DROP FOREIGN KEY FK_3FB7A2BF71F7E88B');
-        $this->addSql('ALTER TABLE availability DROP FOREIGN KEY FK_3FB7A2BF96376157');
-        $this->addSql('ALTER TABLE availability DROP FOREIGN KEY FK_3FB7A2BFEC8B7ADE');
-        $this->addSql('DROP TABLE availability');
-    }
-}

+ 0 - 31
migrations/Version20250810045142.php

@@ -1,31 +0,0 @@
-<?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 Version20250810045142 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 availability CHANGE id id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\'');
-    }
-
-    public function down(Schema $schema): void
-    {
-        // this down() migration is auto-generated, please modify it to your needs
-        $this->addSql('ALTER TABLE availability CHANGE id id INT AUTO_INCREMENT NOT NULL');
-    }
-}

+ 15 - 0
src/Controller/MainController.php

@@ -10,6 +10,7 @@ use Symfony\Component\Routing\Attribute\Route;
 use App\Repository\EventRepository;
 use App\Entity\Event;
 use App\Entity\Gamemaster;
+use App\Entity\Game;
 
 final class MainController extends AbstractController
 {
@@ -146,4 +147,18 @@ final class MainController extends AbstractController
             return $this->redirectToRoute('app_main');
         }
     }
+    
+    #[Route('/game/{id}', name: 'app_game_public', requirements: ['id' => Requirement::UUID_V7], methods: ['GET'])]
+    public function gamePublic(?Game $game): Response
+    {
+        if ($game) {
+            return $this->render('main/_modal.game.html.twig', [
+                'game' => $game,
+            ]);
+            
+        } else {
+            $this->addFlash('danger', 'Jeu inconnu.');
+            return $this->redirectToRoute('app_main');
+        }
+    }
 }

+ 1 - 1
src/Controller/PrepareController.php

@@ -39,7 +39,7 @@ final class PrepareController extends AbstractController
 
         if (count($events) < 1) {
             // Aucun événement à préparer
-            $this->addFlash('danger', 'Aucun événement en cours de préparation pour le moment.');
+            $this->addFlash('info', 'Aucun événement en cours de préparation pour le moment.');
             return $this->redirectToRoute('app_main');
         }
 

+ 30 - 0
src/Entity/Game.php

@@ -10,6 +10,7 @@ use Doctrine\DBAL\Types\Types;
 use Symfony\Bridge\Doctrine\Types\UuidType;
 use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
 use Symfony\Component\Uid\Uuid;
+use App\Enum\AgeRange;
 
 #[ORM\Entity(repositoryClass: GameRepository::class)]
 class Game
@@ -46,6 +47,9 @@ class Game
 
     #[ORM\Column(length: 255, nullable: true)]
     private ?string $picture = null;
+    
+    #[ORM\Column(enumType: AgeRange::class, nullable: true)]
+    private ?AgeRange $ageRecommendation = null;
 
     /**
      * @var Collection<int, Genre>
@@ -367,5 +371,31 @@ class Game
 
         return $this;
     }
+    
+    // Getter et setters pour la recommandation d'âge du jeu
+    public function getAgeRecommendation(): ?AgeRange
+    {
+        return $this->ageRecommendation;
+    }
+    
+    public function setAgeRecommendation(?AgeRange $ageRange): self
+    {
+        $this->ageRecommendation = $ageRange;
+        return $this;
+    }
+    public function getAgeRecommendationLabel(): ?string
+    {
+        return $this->ageRecommendation?->label();
+    }
+    public function getAgeRecommendationPreRequists(): ?string
+    {
+        return $this->ageRecommendation?->prerequist();
+    }
+    public function getAgeRecommendationShortLabel(): ?string
+    {
+        return $this->ageRecommendation->shortLabel();
+    }
+    
+    
 
 }

+ 3 - 2
src/Entity/Participation.php

@@ -4,10 +4,10 @@ namespace App\Entity;
 
 use App\Repository\ParticipationRepository;
 use Doctrine\ORM\Mapping as ORM;
-use libphonenumber\PhoneNumber;
 use Symfony\Bridge\Doctrine\Types\UuidType;
-use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
 use Symfony\Component\Uid\Uuid;
+use Misd\PhoneNumberBundle\Validator\Constraints as MisdAssert;
+use Symfony\Component\Validator\Constraints as Assert;
 
 #[ORM\Entity(repositoryClass: ParticipationRepository::class)]
 class Participation
@@ -25,6 +25,7 @@ class Participation
     #[ORM\Column(length: 255)]
     private ?string $participantName = null;
 
+    #[Assert\Email]
     #[ORM\Column(length: 255)]
     private ?string $participantEmail = null;
 

+ 16 - 1
src/Form/GameType.php

@@ -5,10 +5,12 @@ namespace App\Form;
 use App\Entity\Game;
 use App\Entity\Genre;
 use App\Entity\User;
+use App\Enum\AgeRange;
 use Symfony\Bridge\Doctrine\Form\Type\EntityType;
 use Symfony\Component\Form\AbstractType;
 use Symfony\Component\Form\FormBuilderInterface;
 use Symfony\Component\OptionsResolver\OptionsResolver;
+use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
 use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
 use Symfony\Component\Form\Extension\Core\Type\FileType;
 use Symfony\Component\Form\Extension\Core\Type\UrlType;
@@ -45,8 +47,20 @@ class GameType extends AbstractType
                 'required' => false,
                 'row_attr' => ['class' => 'field'],
                 'help_attr' => ['class' => 'help'],
-
             ])
+            ->add('ageRecommendation', ChoiceType::class, [
+                'label' => 'Âge recommandé',
+                'help' => 'Indiquez la tranche d\'âge recommandée. Laissez vide si l\'âge n\'est pas déterminant.',
+                'choices' => AgeRange::cases(),
+                'choice_label' => fn(AgeRange $choice) => $choice->label(),
+                'required' => false,
+                'placeholder' => 'Aucune recommandation',
+                'label_attr' => ['class' => 'label'],
+                'row_attr' => ['class' => 'field'],
+                'attr' => ['class' => 'input'],
+                'help_attr' => ['class' => 'help'],
+            ])
+
             ->add('picture', FileType::class, [
                 'label' => 'Illustration',
                 'label_attr' => ['class' => 'label'],
@@ -68,6 +82,7 @@ class GameType extends AbstractType
                 'choice_attr' => ['class' => 'checkbox'],
                 'help_attr' => ['class' => 'help'],
             ])
+            
             ->add('isInAssoLibrary', null, [
                 'label' => 'Dans la ludothèque de l\'association ?',
                 'label_attr' => ['class' => 'checkbox'],

+ 6 - 0
templates/admin/game/edit.html.twig

@@ -46,8 +46,14 @@
         </div>
     </div>
     </div>
+    
+
+
+
+
 
     <div class="box">
+    {{ form_row(form.ageRecommendation) }}
     <div class="field">
         {{ form_label(form.genre) }}
         {{ form_widget(form.genre) }}

+ 2 - 1
templates/components/Planning.html.twig

@@ -94,9 +94,10 @@
                                             <small class="has-text-grey-darker">{{ thisSlot.party.gamemaster.preferedName }}</small><br/>
                                             <span class="title is-6 has-text-primary-45-invert">{{ thisSlot.party.game.name }}</span>
                                         </div>
+                                        
                                     </div>
                                     <div class="card-content">
-                                        <p><span class="tag is-dark m-1">Places : {{ thisSlot.party.getSeatsLeft }}/{{ thisSlot.party.getMaxParticipants }}</span></p>
+                                    <p><strong class="tag is-dark m-1 is-rounded" title="Places libres / places maximum">Places : {{ thisSlot.party.getSeatsLeft }}/{{ thisSlot.party.getMaxParticipants }}</strong>{% if thisSlot.party.getGame.getAgeRecommendation %}<span class="tag m-1 is-primary is-rounded" title="{{ thisSlot.party.getGame.getAgeRecommendationLabel }}">{{ thisSlot.party.getGame.getAgeRecommendationLabel }}</span>{% endif %}</p>
                                         {% if thisSlot.party.gamemasterIsAuthor %}<p><span class="tag is-warning m-1">partie animée par l'auteur</span></p>{% endif %}
                                         <p>{% for genre in thisSlot.party.game.genre %}<span class="tag is-info m-1">{{ genre.genre }}</span>{% endfor %}</p>
                                     </div>

+ 9 - 1
templates/participation/_modal.add.html.twig

@@ -22,7 +22,7 @@
         <strong>Horaires</strong>
       </div>
     <div class="column has-text-left">
-        {{ party.getStartOn|date('d/m/y H:i', app_timezone)}} à {{ party.getEndOn|date('d/m/y H:i', app_timezone)}}
+        le {{ party.getStartOn|date('d/m/Y \\d\\e H:i', app_timezone)}} à {{ party.getEndOn|date('H:i', app_timezone)}}
       </div>
     </div>
     <div class="columns">
@@ -58,6 +58,14 @@
         {{ party.getGame.getName }}
       </div>
     </div>
+    <div class="columns">
+      <div class="column has-text-right is-one-quarter">
+        <strong>Âge</strong>
+      </div>
+      <div class="column has-text-left">
+        {{ party.getGame.getAgeRecommendationLabel }}
+      </div>
+    </div>
   </div>
 
  <div class="tabs is-boxed" {{ stimulus_controller('bulma_tabs') }}>