Add OBS podcast ingestion and account withdrawal privacy controls
Support scoped RTMPS publishing through MediaMTX, authenticated replay, resource accounting and PostIt activation/revocation. Close withdrawn accounts, erase managed files and purge eligible payment residues after one year. Include migrations, documentation and regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
97b350be2d
commit
b157dce4e4
54 changed files with 12996 additions and 50 deletions
5228
src/Yavsc.Org/Migrations/20261108061011_AccountWithdrawal.Designer.cs
generated
Normal file
5228
src/Yavsc.Org/Migrations/20261108061011_AccountWithdrawal.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
43
src/Yavsc.Org/Migrations/20261108061011_AccountWithdrawal.cs
Normal file
43
src/Yavsc.Org/Migrations/20261108061011_AccountWithdrawal.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AccountWithdrawal : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropUniqueConstraint(name: "AK_AspNetUsers_Email", table: "AspNetUsers");
|
||||
migrationBuilder.CreateIndex(name: "IX_AspNetUsers_Email", table: "AspNetUsers", column: "Email", unique: true);
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "WithdrawalRequestedAt",
|
||||
table: "AspNetUsers",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "WithdrawnAt",
|
||||
table: "AspNetUsers",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(name: "IX_AspNetUsers_Email", table: "AspNetUsers");
|
||||
migrationBuilder.AddUniqueConstraint(name: "AK_AspNetUsers_Email", table: "AspNetUsers", column: "Email");
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WithdrawalRequestedAt",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WithdrawnAt",
|
||||
table: "AspNetUsers");
|
||||
}
|
||||
}
|
||||
}
|
||||
5242
src/Yavsc.Org/Migrations/20261108073234_PodcastObsIngestion.Designer.cs
generated
Normal file
5242
src/Yavsc.Org/Migrations/20261108073234_PodcastObsIngestion.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class PodcastObsIngestion : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ObsConnectionId",
|
||||
table: "LiveFlow",
|
||||
type: "uuid",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "ObsEnabledUntil",
|
||||
table: "LiveFlow",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ObsKeyHash",
|
||||
table: "LiveFlow",
|
||||
type: "character varying(64)",
|
||||
maxLength: 64,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ObsLastError",
|
||||
table: "LiveFlow",
|
||||
type: "character varying(512)",
|
||||
maxLength: 512,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ObsConnectionId",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ObsEnabledUntil",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ObsKeyHash",
|
||||
table: "LiveFlow");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ObsLastError",
|
||||
table: "LiveFlow");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1218,9 +1218,16 @@ namespace Yavsc.Migrations
|
|||
.HasMaxLength(256)
|
||||
.HasColumnType("character varying(256)");
|
||||
|
||||
b.Property<DateTimeOffset?>("WithdrawalRequestedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTimeOffset?>("WithdrawnAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasAlternateKey("Email");
|
||||
b.HasIndex("Email")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex("NormalizedEmail")
|
||||
.HasDatabaseName("EmailIndex");
|
||||
|
|
@ -3200,6 +3207,20 @@ namespace Yavsc.Migrations
|
|||
b.Property<string>("MediaType")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<Guid?>("ObsConnectionId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset?>("ObsEnabledUntil")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("ObsKeyHash")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("character varying(64)");
|
||||
|
||||
b.Property<string>("ObsLastError")
|
||||
.HasMaxLength(512)
|
||||
.HasColumnType("character varying(512)");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
|
|
|||
Loading…
Reference in a new issue