Drops the YouTube-backed second catalog source entirely: the Local/External split on Track/Album collapses into single concrete entities, Artist/TrackArtist/ExternalTrack/ExternalAlbum and the YouTube service/download pipeline (yt-dlp, MassTransit consumer, routing slip) are deleted, and mixes now source discovery only from local listening history. Includes the RemoveYouTubeIntegration EF Core migration and matching Worker/deploy/compose cleanup (no more yt-dlp/python/deno in the Worker image, no thumbnail-cache/YtDlp config sections).
40 lines
1011 B
C#
40 lines
1011 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Musify.Domain.Entities;
|
|
|
|
namespace Musify.Application.Contracts
|
|
{
|
|
public interface IDatabase
|
|
{
|
|
DbSet<User> Users { get; }
|
|
|
|
DbSet<PlayList> PlayLists { get; }
|
|
|
|
DbSet<Album> Albums { get; }
|
|
|
|
DbSet<AlbumHasTrack> AlbumHasTracks { get; }
|
|
|
|
DbSet<Track> Tracks { get; }
|
|
|
|
DbSet<UserHasTrack> UserHasTracks { get; }
|
|
|
|
DbSet<PlayListHasTrack> PlayListHasTracks { get; }
|
|
|
|
DbSet<Mix> Mixes { get; }
|
|
|
|
DbSet<MixItem> MixItems { get; }
|
|
|
|
DbSet<Upload> Uploads { get; }
|
|
|
|
DbSet<UploadIntent> UploadIntents { get; }
|
|
|
|
DbSet<ListeningHistory> ListeningHistories { get; }
|
|
|
|
DbSet<TrackLike> TrackLikes { get; }
|
|
|
|
DbSet<UserFollow> UserFollows { get; }
|
|
|
|
Task<IDatabaseTransaction> BeginTransactionAsync(System.Data.IsolationLevel isolationLevel, CancellationToken cancellationToken);
|
|
|
|
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
|
}
|
|
} |