Добавлена таблица Settings

This commit is contained in:
2025-08-05 09:33:05 +05:00
parent 8cb56837f5
commit 89b43f5aad
9 changed files with 47 additions and 15 deletions

28
src/model/books/genre_s.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef GENRE_H
#define GENRE_H
#include <model/model_global.h>
#pragma db object
class MODEL_EXPORT Genre_S
{
public:
Genre_S() = default;
quint64 id() const { return m_id; }
void setId(const quint64& newId) { m_id = newId; }
QString name() const { return m_name; }
void setName(const QString& newName) { m_name = newName; }
private:
friend class odb::access;
private:
#pragma db id auto
quint64 m_id;
QString m_name;
};
#endif // GENRE_H