1
0
forked from BRT/arc
arc/database/dao/EventDAO.h
slava 89ea2ac53a Add event handling and improved account management
Introduced a new "events" table and corresponding EventDAO for managing event data. Enhanced account handling with device ID and partial card number support. Added a NetworkService method to fetch payments from an API and store them as events.
2025-05-21 20:18:53 +07:00

16 lines
320 B
C++

#pragma once
#include <db/EventInfo.h>
class EventDAO {
public:
[[nodiscard]] static int insertEvent(const EventInfo &event);
[[nodiscard]] static bool updateEvent(
int id,
const EventStatus &status
);
[[nodiscard]] static QList<EventInfo> getAllEvents(const EventStatus &status);
};