#pragma once

#include <maps/wikimap/mapspro/services/social/src/libs/common/common.h>

#include <maps/libs/enum_io/include/enum_io_fwd.h>

#include <pqxx/pqxx>
#include <string>

namespace maps::wiki::socialsrv {

enum class RatingType
{
    Full,
    Quarter,
    Month,
    Week,
    Day
};

DECLARE_ENUM_IO(RatingType);

size_t getRatingPos(
    pqxx::transaction_base& txn,
    RatingType ratingType,
    UserId userId);

} // namespace maps::wiki::socialsrv
