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
|
|
@ -146,7 +146,8 @@ namespace Yavsc.Models
|
|||
builder.Entity<ApplicationUser>().Property(u => u.Avatar).HasDefaultValue(Constants.DefaultAvatar);
|
||||
builder.Entity<ApplicationUser>().Property(u => u.DiskQuota).HasDefaultValue(Constants.DefaultFSQ);
|
||||
builder.Entity<ResourceStorageRecord>().HasKey(r => new { r.UserId, r.Path });
|
||||
builder.Entity<ApplicationUser>().HasAlternateKey(u => u.Email);
|
||||
builder.Entity<ApplicationUser>().Property(u => u.Email).IsRequired();
|
||||
builder.Entity<ApplicationUser>().HasIndex(u => u.Email).IsUnique();
|
||||
builder.Entity<BlackListed>().HasOne<ApplicationUser>(bl => bl.User);
|
||||
builder.Entity<BlackListed>().HasOne<ApplicationUser>(bl => bl.Owner);
|
||||
builder.Entity<UserActivity>().HasKey(u => new { u.DoesCode, u.UserId });
|
||||
|
|
|
|||
|
|
@ -95,6 +95,10 @@ namespace Yavsc.Models
|
|||
|
||||
public long DiskQuota { get; set; } = Constants.DefaultFSQ;
|
||||
[JsonIgnore, System.Text.Json.Serialization.JsonIgnore]
|
||||
public DateTimeOffset? WithdrawalRequestedAt { get; set; }
|
||||
[JsonIgnore, System.Text.Json.Serialization.JsonIgnore]
|
||||
public DateTimeOffset? WithdrawnAt { get; set; }
|
||||
[JsonIgnore, System.Text.Json.Serialization.JsonIgnore]
|
||||
public DateTimeOffset? PremiumDiskQuotaUntil { get; set; }
|
||||
[JsonIgnore, System.Text.Json.Serialization.JsonIgnore]
|
||||
public DateTimeOffset? DiscoveryDiskQuotaUntil { get; set; }
|
||||
|
|
|
|||
|
|
@ -15,6 +15,14 @@ namespace Yavsc.Models.Streaming
|
|||
public DateTimeOffset? PreparedAt { get; set; }
|
||||
public DateTimeOffset? StartedAt { get; set; }
|
||||
public bool PodcastDeleted { get; set; }
|
||||
[MaxLength(64), System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
||||
public string? ObsKeyHash { get; set; }
|
||||
[System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
||||
public DateTimeOffset? ObsEnabledUntil { get; set; }
|
||||
[System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
||||
public Guid? ObsConnectionId { get; set; }
|
||||
[MaxLength(512), System.Text.Json.Serialization.JsonIgnore, Newtonsoft.Json.JsonIgnore]
|
||||
public string? ObsLastError { get; set; }
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Name="FlowIdLabel", ResourceType=typeof(LiveFlow))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue