Изменение БД, добавление регистрации, добавление сложной рассылки, кнопки для СР

This commit is contained in:
ada-dmitry
2025-04-18 20:41:45 +03:00
parent aa82634f75
commit e1063b669f
6 changed files with 166 additions and 22 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
from sqlalchemy import Column, BigInteger, Boolean
from sqlalchemy import Column, BigInteger, Boolean, String
from database import Base
class User(Base):
__tablename__ = "users"
user_id = Column(BigInteger, primary_key=True)
full_name = Column(String, nullable=False)
study_group = Column(String, nullable=False)
is_subscribed = Column(Boolean, default=True)