22 lines
373 B
C
22 lines
373 B
C
|
#ifndef __USER_H__
|
||
|
#define __USER_H__
|
||
|
|
||
|
#include <Wt/Dbo/Types.h>
|
||
|
#include <Wt/WGlobal.h>
|
||
|
|
||
|
class User;
|
||
|
using AuthInfo = Wt::Auth::Dbo::AuthInfo<User>;
|
||
|
|
||
|
class User {
|
||
|
public:
|
||
|
template <class Action>
|
||
|
void persist(Action &a) {
|
||
|
// Wt::Dbo::field(a, name, "name");
|
||
|
}
|
||
|
// std::string name;
|
||
|
// int age;
|
||
|
};
|
||
|
|
||
|
DBO_EXTERN_TEMPLATES(User)
|
||
|
|
||
|
#endif // __USER_H__
|