package com.cameleer.server.core.runtime;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

public interface AppVersionRepository {
    List<AppVersion> findByAppId(UUID appId);
    Optional<AppVersion> findById(UUID id);
    int findMaxVersion(UUID appId);
    UUID create(UUID appId, int version, String jarPath, String jarChecksum, String jarFilename, Long jarSizeBytes);
    void delete(UUID id);
    void updateDetectedRuntime(UUID id, String detectedRuntimeType, String detectedMainClass);
}
