Новые таблицы и изменение старых структур

This commit is contained in:
2025-08-04 22:15:23 +05:00
parent 905dd309d0
commit 0198f6d022
7 changed files with 226 additions and 138 deletions

28
src/model/series_s.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef SERIES_H
#define SERIES_H
#include "model_global.h"
#pragma db object
class MODEL_EXPORT Series_S
{
public:
Series_S() = default;
quint64 id() const { return m_id; }
void setId(const quint64& newId) { m_id = newId; }
QString serName() const { return m_serName; }
void setSerName(const QString& newSerName) { m_serName = newSerName; }
private:
friend class odb::access;
private:
#pragma db id auto
quint64 m_id;
QString m_serName;
};
#endif // SERIES_H