created remote transcriber

This commit is contained in:
SumGuyV5 committed 2026-09-24 19:53:05 +00:00
1 parent 856ab439f7
commit 38e0cc6764
10 files changed
+718 -68

No files matched your search

+13
View File
@@ -25,12 +25,14 @@ class TwitchVideo(Base):
uploaded_yt = Column(Boolean, nullable=False, default=False)
uploaded_yt_chats = Column(Boolean, nullable=False, default=False)
uploaded_yt_shorts = Column(Boolean, nullable=False, default=False)
uploaded_tiktok = Column(Boolean, nullable=False, default=False)
# This now actually points to twitch_videos.id
related_video_id = Column(String, ForeignKey("twitch_videos.id"), nullable=True)
# Relationship back to YoutubeInfo (uselist=True enforces a 1-to-many structure)
youtube_info = relationship("YoutubeInfo", back_populates="twitch_video", uselist=True)
tiktok_info = relationship("TiktokInfo", back_populates="twitch_video", uselist=True)
chapters = relationship("Chapter", back_populates="twitch_video", cascade="all, delete-orphan")
# 3. Define the data table
@@ -61,6 +63,17 @@ class YoutubeInfo(Base):
# Relationship linking back to the twitch video record
twitch_video = relationship("TwitchVideo", back_populates="youtube_info")
class TiktokInfo(Base):
__tablename__ = "tiktok_info"
id = Column(Integer, primary_key=True, autoincrement=True)
twitch_video_id = Column(String, ForeignKey("twitch_videos.id"), nullable=False)
tiktok_id = Column(String, nullable=True)
tiktok_date = Column(String, nullable=True)
# Relationship linking back to the twitch video record
twitch_video = relationship("TwitchVideo", back_populates="tiktok_info")
class Chapter(Base):
__tablename__ = "chapters"