2025-08-04 22:15:23 +05:00
|
|
|
#ifndef GENRE_H
|
|
|
|
|
#define GENRE_H
|
|
|
|
|
|
2025-08-05 09:33:05 +05:00
|
|
|
#include <model/model_global.h>
|
2025-08-04 22:15:23 +05:00
|
|
|
|
|
|
|
|
#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
|