Skip to content

Commit

Permalink
feature: adding project_uuid field
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Oct 9, 2024
1 parent 2a2602b commit 8db0d8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chats/apps/rooms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8db0d8a

Please sign in to comment.