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
5078
src/Yavsc.Org/Migrations/20261102122758_PodcastScheduling.Designer.cs
generated
Normal file
5078
src/Yavsc.Org/Migrations/20261102122758_PodcastScheduling.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
101
src/Yavsc.Org/Migrations/20261102122758_PodcastScheduling.cs
Normal file
101
src/Yavsc.Org/Migrations/20261102122758_PodcastScheduling.cs
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class PodcastScheduling : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "PlannedDurationMinutes",
|
||||
table: "LiveFlow",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "PodcastDeleted",
|
||||
table: "LiveFlow",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PodcastId",
|
||||
table: "LiveFlow",
|
||||
type: "uuid",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "PreparedAt",
|
||||
table: "LiveFlow",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PublicAnnouncement",
|
||||
table: "LiveFlow",
|
||||
type: "character varying(1023)",
|
||||
maxLength: 1023,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "ScheduledStartAt",
|
||||
table: "LiveFlow",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "StartedAt",
|
||||
table: "LiveFlow",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LiveFlow_PodcastId",
|
||||
table: "LiveFlow",
|
||||
column: "PodcastId",
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_LiveFlow_PodcastId",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlannedDurationMinutes",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PodcastDeleted",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PodcastId",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PreparedAt",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PublicAnnouncement",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScheduledStartAt",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StartedAt",
|
||||
table: "LiveFlow");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3082,9 +3082,31 @@ namespace Yavsc.Migrations
|
|||
b.Property<string>("Pitch")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("PlannedDurationMinutes")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("PodcastDeleted")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<Guid?>("PodcastId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset?>("PreparedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("PublicAnnouncement")
|
||||
.HasMaxLength(1023)
|
||||
.HasColumnType("character varying(1023)");
|
||||
|
||||
b.Property<DateTimeOffset?>("ScheduledStartAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("SequenceNumber")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset?>("StartedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnType("text");
|
||||
|
||||
|
|
@ -3092,6 +3114,9 @@ namespace Yavsc.Migrations
|
|||
|
||||
b.HasIndex("OwnerId");
|
||||
|
||||
b.HasIndex("PodcastId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LiveFlow");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue