🔧 chore(api_key.py): remove index and unique constraints from api_key field in UnmaskedApiKeyRead model to align with database schema changes

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-25 20:12:49 -03:00
commit 96c7d4c897

View file

@ -32,7 +32,7 @@ class ApiKeyCreate(ApiKeyBase):
class UnmaskedApiKeyRead(ApiKeyBase):
id: UUID
api_key: str = Field(index=True, unique=True)
api_key: str = Field()
user_id: UUID = Field()