feat: add indexes in db

This commit is contained in:
Maël Gangloff
2025-11-06 14:27:12 +01:00
parent 9c74833ed6
commit acaf4fe594
8 changed files with 45 additions and 25 deletions

View File

@@ -3,7 +3,6 @@
namespace App\Entity;
use ApiPlatform\Metadata\ApiProperty;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\EntityRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
@@ -15,30 +14,6 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
#[ORM\UniqueConstraint(
columns: ['tld_id', 'handle']
)]
#[ApiResource(
operations: [
/*
new GetCollection(
uriTemplate: '/entities',
normalizationContext: ['groups' => ['entity:list', 'event:list']]
),
new Get(
uriTemplate: '/entities/{id}',
normalizationContext: [
'groups' => [
'event:list',
'entity:item',
'domain-entity:domain',
'domain:list',
'nameserver-entity:nameserver',
'nameserver:list',
],
]
),
*/
]
)]
class Entity
{
#[ORM\Id]