fix: фиксы после рефакторинга

This commit is contained in:
Artem Tsyrulnikov
2025-12-11 22:10:46 +03:00
parent eb1005c995
commit 2fdd56c3e0
8 changed files with 92 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ if TYPE_CHECKING:
class ExternalChannel(TimestampedModel):
id = fields.UUIDField(pk=True)
telegram_id = fields.BigIntField(unique=True, index=True)
telegram_id = fields.BigIntField(index=True)
title = fields.CharField(max_length=255)
username = fields.CharField(max_length=255, null=True, index=True)
description = fields.TextField(null=True)
@@ -28,3 +28,4 @@ class ExternalChannel(TimestampedModel):
class Meta:
table = 'external_channel'
unique_together = (('user_id', 'telegram_id'),)