package verification

import (
	"context"

	"github.com/tech/sendico/pkg/model"
	"go.mongodb.org/mongo-driver/v2/bson"
)

type DB interface {
	// template.DB[*model.VerificationToken]
	Create(ctx context.Context, request *Request) (verificationToken string, err error)
	Consume(ctx context.Context, accountRef bson.ObjectID, purpose model.VerificationPurpose, verificationToken string) (*model.VerificationToken, error)
}
