feat: миграция с булевых переменных на status для target_channel
This commit is contained in:
@@ -10,12 +10,9 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
class Subscriber(domain.Base):
|
||||
"""Пользователь Telegram, подписавшийся через invite links."""
|
||||
|
||||
telegram_id: Mapped[int] = mapped_column(BigInteger, unique=True, index=True)
|
||||
username: Mapped[str | None]
|
||||
first_name: Mapped[str | None]
|
||||
last_name: Mapped[str | None]
|
||||
|
||||
# Relationships
|
||||
subscriptions: Mapped[list['Subscription']] = relationship(back_populates='subscriber')
|
||||
|
||||
Reference in New Issue
Block a user