export script
This commit is contained in:
11
db/models.py
11
db/models.py
@@ -8,6 +8,17 @@ from sqlalchemy.sql import func
|
||||
class Base(DeclarativeBase):
|
||||
pass
|
||||
|
||||
class TrayWebhook(Base):
|
||||
__tablename__ = 'tray_webhook'
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
#create_date: Mapped[datetime] = mapped_column(DateTime, onupdate=func.now(), server_default=func.now())
|
||||
body = Column(String(255))
|
||||
|
||||
|
||||
def __init__(self, body):
|
||||
self.body = body
|
||||
|
||||
|
||||
|
||||
class ApiToken(Base):
|
||||
__tablename__ = 'api_token'
|
||||
|
||||
Reference in New Issue
Block a user