Nut/tests/auto/tst_upgrades/table2.h

24 lines
397 B
C
Raw Normal View History

2019-02-14 22:25:53 +08:00
#ifndef TABLE2_H
#define TABLE2_H
#include "table.h"
class Table2 : public Nut::Table
{
Q_OBJECT
NUT_PRIMARY_AUTO_INCREMENT(id)
NUT_DECLARE_FIELD(int, id, id, setId)
NUT_DECLARE_FIELD(QString, str, str, setStr)
NUT_DECLARE_FIELD(int, grade, grade, setGrade)
public:
Q_INVOKABLE Table2(QObject *parent = Q_NULLPTR);
};
Q_DECLARE_METATYPE(Table2*)
#endif // TABLE2_H