Introduced tables for devices, accounts, and transactions in the schema, along with associated models. Implemented DAO methods for CRUD operations, including upsert functionality for accounts and deduplication for transactions. These changes enable structured management of account and transaction data.
12 lines
300 B
C++
12 lines
300 B
C++
#pragma once
|
|
#include "AccountInfo.h"
|
|
|
|
class AccountDAO {
|
|
public:
|
|
[[nodiscard]] static bool upsertAccount(const AccountInfo &info);
|
|
|
|
[[nodiscard]] static bool deleteAccount(int id);
|
|
|
|
[[nodiscard]] static QList<AccountInfo> getAccounts(const QString &deviceId, const QString &appName);
|
|
};
|