Добавлена таблица Settings
This commit is contained in:
28
src/model/books/genre_s.h
Normal file
28
src/model/books/genre_s.h
Normal 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
|
||||
Reference in New Issue
Block a user