Nut/tests/auto/tst_quuid/test.h

23 lines
348 B
C
Raw Normal View History

2018-07-12 14:47:41 +08:00
#ifndef TEST_H
#define TEST_H
#include <QUuid>
#include "table.h"
class Test : public Nut::Table
{
Q_OBJECT
NUT_PRIMARY_KEY(id)
NUT_DECLARE_FIELD(QUuid, id, id, setId)
2019-02-10 22:46:21 +08:00
NUT_DECLARE_FIELD(QUuid, uuid, uuid, setUuid)
2018-07-12 14:47:41 +08:00
public:
2019-02-10 22:46:21 +08:00
Q_INVOKABLE Test(QObject *parentTableSet = nullptr);
2018-07-12 14:47:41 +08:00
};
Q_DECLARE_METATYPE(Test*)
#endif // TEST_H