model channels
This commit is contained in:
@@ -10,9 +10,9 @@ class Admin(Base):
|
||||
class Channel(Base):
|
||||
__tablename__ = 'channels'
|
||||
id = Column(Integer, primary_key=True)
|
||||
name = Column(String, nullable=False)
|
||||
link = Column(String, nullable=False)
|
||||
buttons = relationship('Button', back_populates='channel')
|
||||
name = Column(String)
|
||||
link = Column(String)
|
||||
admin_id = Column(Integer, ForeignKey('admins.id')) # если есть таблица admins
|
||||
|
||||
class Group(Base):
|
||||
__tablename__ = 'groups'
|
||||
|
||||
Reference in New Issue
Block a user