package user

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

	domainuser "codeberg.org/mapleopentech/monorepo/cloud/maplepress-backend/internal/domain/user"
)

// repository implements the user.Repository interface
type repository struct {
	session *gocql.Session
	logger  *zap.Logger
}

// ProvideRepository creates a new user repository
func ProvideRepository(session *gocql.Session, logger *zap.Logger) domainuser.Repository {
	return &repository{
		session: session,
		logger:  logger,
	}
}
