package com.cameleer.server.core.runtime;

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

public interface AppRepository {
    List<App> findByEnvironmentId(UUID environmentId);
    List<App> findAll();
    long count();
    Optional<App> findById(UUID id);
    Optional<App> findByEnvironmentIdAndSlug(UUID environmentId, String slug);
    Optional<App> findBySlug(String slug);
    UUID create(UUID environmentId, String slug, String displayName);
    void updateContainerConfig(UUID id, Map<String, Object> containerConfig);
    void delete(UUID id);
}
