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.
16 lines
320 B
C++
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);
|
|
};
|