2016-05-12 14:08:58 +08:00
|
|
|
#ifndef TDATABASE_H
|
|
|
|
|
#define TDATABASE_H
|
|
|
|
|
|
|
|
|
|
#include "database.h"
|
|
|
|
|
|
|
|
|
|
class Post;
|
|
|
|
|
class Comment;
|
|
|
|
|
class WeblogDatabase : public Database
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
2016-05-21 16:09:03 +08:00
|
|
|
NUT_DB_VERSION(1, 1)
|
2016-05-12 14:08:58 +08:00
|
|
|
|
|
|
|
|
NUT_DECLARE_TABLE(Post, post)
|
|
|
|
|
|
|
|
|
|
NUT_DECLARE_TABLE(Comment, comment)
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
WeblogDatabase();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TDATABASE_H
|