package app

import (
	"github.com/tidbcloud/AgentTeam/internal/store/app/installation"
	"github.com/tidbcloud/AgentTeam/internal/store/app/registry"
	"github.com/tidbcloud/AgentTeam/internal/store/serviceactor"
)

func (store *Store) registryStore() *registry.Store {
	if store.registry != nil {
		return store.registry
	}
	return registry.New(store.db)
}

func (store *Store) installationStore() *installation.Store {
	if store.installation != nil {
		return store.installation
	}
	return installation.New(store.db)
}

func (store *Store) serviceActorStore() *serviceactor.Store {
	if store.serviceActor != nil {
		return store.serviceActor
	}
	return serviceactor.New(store.db)
}
