完善节目管理与回放播放体验
This commit is contained in:
1 parent
b265518084
commit
a493ef2309
14 files changed
+446
-96
No files matched your search
@@ -20,6 +20,11 @@ class Stream(Base):
|
||||
title: Mapped[str] = mapped_column(String(200), nullable=False)
|
||||
description: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
cover_url: Mapped[str | None] = mapped_column(String(500), nullable=True)
|
||||
replay_file: Mapped[str | None] = mapped_column(String(500), nullable=True)
|
||||
chapters_json: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
transcode_profile: Mapped[str] = mapped_column(String(64), default="standard")
|
||||
homepage_visible: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
remote_control_enabled: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
stream_key: Mapped[str] = mapped_column(String(64), unique=True, default=lambda: uuid.uuid4().hex)
|
||||
status: Mapped[StreamStatus] = mapped_column(Enum(StreamStatus), default=StreamStatus.pending)
|
||||
scheduled_at: Mapped[datetime | None] = mapped_column(DateTime, nullable=True)
|
||||
|
||||
Reference in new issue
Block a user