2026-05-12 01:08:09 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "../databasemanager.h"
|
|
|
|
|
#include "../../core/models/folder.h"
|
|
|
|
|
#include <QVector>
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
|
|
class FolderDao
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static bool insert(const Folder& folder);
|
|
|
|
|
static bool update(const Folder& folder);
|
|
|
|
|
static bool remove(int id);
|
2026-07-05 10:45:44 +02:00
|
|
|
static bool removeByAccountId(int accountId);
|
2026-05-12 01:08:09 +02:00
|
|
|
static std::optional<Folder> findById(int id);
|
|
|
|
|
static QVector<Folder> findAll();
|
|
|
|
|
static QVector<Folder> findByAccountId(int accountId);
|
|
|
|
|
};
|