feat: миграция с булевых переменных на status для target_channel

This commit is contained in:
Artem Tsyrulnikov
2025-12-01 13:34:26 +03:00
parent f7754b707d
commit d117776e65
16 changed files with 56 additions and 67 deletions

View File

@@ -2,6 +2,8 @@ import uuid
import pydantic
from src.domain.target_channel import TargetChannelStatus
class ChannelBotPermissions(pydantic.BaseModel):
is_admin: bool
@@ -28,6 +30,8 @@ class ConnectTargetChanOutput(pydantic.BaseModel):
telegram_id: int
title: str
username: str | None
status: TargetChannelStatus
# Deprecated: используйте status. Оставлено для обратной совместимости с фронтендом
is_active: bool