Prepare podcast emissions using LiveFlow

Persist scheduled emissions, expose owner-only planning controls in PostIt and publish optional presentation-only announcements on Yavsc.Org. Preserve manual broadcasting and authenticated playback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-02 14:08:22 +00:00
commit 4a5a3c8844
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
28 changed files with 5960 additions and 29 deletions

View file

@ -48,6 +48,8 @@ namespace Yavsc.Models
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Entity<LiveFlow>().HasIndex(f => f.PodcastId).IsUnique();
builder.Entity<LiveFlow>().Property(f => f.PublicAnnouncement).HasMaxLength(1023);
if (Database.IsNpgsql())
{
NOW_SQL = "LOCALTIMESTAMP";
@ -499,7 +501,6 @@ namespace Yavsc.Models
public DbSet<Project> Project { get; set; }
[Obsolete("use signaled flows")]
public DbSet<LiveFlow> LiveFlow { get; set; }
public DbSet<ChatRoomAccess> ChatRoomAccess { get; set; }

View file

@ -8,6 +8,14 @@ namespace Yavsc.Models.Streaming
public partial class LiveFlow : ILiveFlow {
public Guid? PodcastId { get; set; }
public DateTimeOffset? ScheduledStartAt { get; set; }
public int? PlannedDurationMinutes { get; set; }
public string PublicAnnouncement { get; set; } = string.Empty;
public DateTimeOffset? PreparedAt { get; set; }
public DateTimeOffset? StartedAt { get; set; }
public bool PodcastDeleted { get; set; }
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Name="FlowIdLabel", ResourceType=typeof(LiveFlow))]
// set by the server, unique