// monorepo/cloud/maplefile-backend/internal/maplefile/repo/storageusageevent/impl.go
package storageusageevent

import (
	"github.com/gocql/gocql"
	"go.uber.org/zap"

	"codeberg.org/mapleopentech/monorepo/cloud/maplefile-backend/config"
	"codeberg.org/mapleopentech/monorepo/cloud/maplefile-backend/internal/domain/storageusageevent"
)

type storageUsageEventRepositoryImpl struct {
	Logger  *zap.Logger
	Session *gocql.Session
}

func NewRepository(appCfg *config.Configuration, session *gocql.Session, loggerp *zap.Logger) storageusageevent.StorageUsageEventRepository {
	loggerp = loggerp.Named("StorageUsageEventRepository")

	return &storageUsageEventRepositoryImpl{
		Logger:  loggerp,
		Session: session,
	}
}
