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:
parent
e3b4414ab1
commit
4a5a3c8844
28 changed files with 5960 additions and 29 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue