Feat: implement shitty ass twitter linking to PID

This commit is contained in:
kittentm 2026-03-22 21:56:30 +01:00
commit aa8ce9025b
No known key found for this signature in database
GPG key ID: AC43DFDBC1F44A91
5 changed files with 149 additions and 2 deletions

View file

@ -59,6 +59,14 @@ class PlayerRank(Base):
createdAt = Column(DateTime, server_default=func.now())
updatedAt = Column(DateTime, onupdate=func.now())
class TwitterLink(Base):
__tablename__ = "twitter_link"
pid = Column(Integer, primary_key=True)
twitter_handle = Column(String)
twitter_token_enc = Column(String)
twitter_refresh_token_enc = Column(String)
miidata_enc = Column(String)
engine = create_engine(
settings.db_url,
pool_pre_ping=True,