Files
cpp-opds/src/model/books/genre_s.h

29 lines
480 B
C
Raw Normal View History

#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