mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Rework links
This commit is contained in:
parent
94de47082b
commit
a614e9a9f1
12 changed files with 246 additions and 30 deletions
|
|
@ -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"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue