feat: hello PostgreSQL

This commit is contained in:
Maël Gangloff
2024-07-26 21:10:06 +02:00
parent 467d0efa1c
commit f72f6df546
15 changed files with 142 additions and 437 deletions

View File

@@ -16,6 +16,7 @@ use Symfony\Component\Serializer\Attribute\Groups;
#[ORM\Entity(repositoryClass: UserRepository::class)]
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])]
#[ORM\Table(name: "`user`")]
#[UniqueEntity(fields: ['email'], message: 'There is already an account with this email')]
#[ApiResource(
operations: [