Older/WebApplication/User.h

22 lines
373 B
C
Raw Normal View History

2024-10-31 19:40:29 +08:00
#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__