using ClipForge.Core.Entities; using ClipForge.Core.Interfaces; using ClipForge.Infrastructure.Data; using Microsoft.EntityFrameworkCore; namespace ClipForge.Infrastructure.Repositories; public class VideoAssetRepository : BaseRepository, IVideoAssetRepository { public VideoAssetRepository(AppDbContext context) : base(context) { } public async Task> GetByStatusAsync(string status, CancellationToken ct = default) => await _dbSet.Where(v => v.Status == status).OrderByDescending(v => v.CreatedAt).ToListAsync(ct); public async Task GetByScriptIdAsync(Guid scriptId, CancellationToken ct = default) => await _dbSet.FirstOrDefaultAsync(v => v.VideoScriptId == scriptId, ct); }