Rework links

This commit is contained in:
stijndcl 2022-08-10 01:04:19 +02:00
parent 94de47082b
commit a614e9a9f1
12 changed files with 246 additions and 30 deletions

View file

@ -28,6 +28,7 @@ __all__ = [
"CustomCommand",
"CustomCommandAlias",
"DadJoke",
"Link",
"NightlyData",
"Task",
"UforaAnnouncement",
@ -109,6 +110,16 @@ class DadJoke(Base):
joke: str = Column(Text, nullable=False)
class Link(Base):
"""Useful links that go useful places"""
__tablename__ = "links"
link_id: int = Column(Integer, primary_key=True)
name: str = Column(Text, nullable=False, unique=True)
url: str = Column(Text, nullable=False)
class NightlyData(Base):
"""Data for a user's Nightly stats"""