Nut/tests/auto/tst_upgrades/table3.h

23 lines
352 B
C
Raw Normal View History

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