#ifndef __TOKENS_H__ #define __TOKENS_H__ #include #include class User; class Token : public Wt::Dbo::Dbo { public: Token(); Token(const std::string &value, const Wt::WDateTime &expires); Wt::Dbo::ptr user; std::string value; Wt::WDateTime expires; template void persist(Action &a) { Wt::Dbo::field(a, value, "value"); Wt::Dbo::field(a, expires, "expires"); Wt::Dbo::belongsTo(a, user, "user"); } }; DBO_EXTERN_TEMPLATES(Token) #endif // __TOKENS_H__