summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Model/CardMeta.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Model/CardMeta.php b/src/Model/CardMeta.php
index 9e0f544..a77e339 100644
--- a/src/Model/CardMeta.php
+++ b/src/Model/CardMeta.php
@@ -8,15 +8,17 @@ use Doctrine\DBAL\Schema\Table;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
+use Doctrine\ORM\Mapping\Index;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\PersistentCollection;
#[Entity]
#[Table(name: 'card_meta')]
+#[Index(columns: ['key'])]
/**
* @Entity
- * @Table(name="card_meta")
+ * @Table(name="card_meta", indexes={@Index(columns={"key"})})
*/
class CardMeta
{