From 8db0d8a6a5c14e6f92055469fa25aba7220a780c Mon Sep 17 00:00:00 2001 From: AlanJaeger Date: Wed, 9 Oct 2024 15:58:27 -0300 Subject: [PATCH] feature: adding project_uuid field --- chats/apps/rooms/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chats/apps/rooms/models.py b/chats/apps/rooms/models.py index 2dc5c72e..61cc916f 100644 --- a/chats/apps/rooms/models.py +++ b/chats/apps/rooms/models.py @@ -53,6 +53,10 @@ def __init__(self, *args, **kwargs): ) urn = models.TextField(_("urn"), null=True, blank=True, default="") + project_uuid = models.TextField( + _("project_uuid"), null=True, blank=True, default="" + ) + callback_url = models.TextField(_("Callback URL"), null=True, blank=True) ended_at = models.DateTimeField( @@ -88,6 +92,9 @@ class Meta: name="unique_contact_queue_is_activetrue_room", ) ] + indexes = [ + models.Index(fields=["project_uuid"]), + ] def save(self, *args, **kwargs) -> None: if self.__original_is_active is False: