adjust work project to the current codebase
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
#include "LockType.hpp"
|
||||
|
||||
#include "../core/Model.hpp"
|
||||
#include "../core/Types.hpp"
|
||||
|
||||
#include "matador/object/object_ptr.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
#include "matador/utils/foreign_attributes.hpp"
|
||||
#include "matador/utils/types.hpp"
|
||||
|
||||
namespace work::models::admin {
|
||||
@@ -20,7 +20,7 @@ struct User : core::Model {
|
||||
std::string salt;
|
||||
std::string password;
|
||||
LockType lock_type{LockType::NoLock};
|
||||
core::timestamp locked_at;
|
||||
matador::utils::timestamp locked_at;
|
||||
std::string lock_reason;
|
||||
std::string role;
|
||||
matador::object::object_ptr<UserDirectory> user_directory;
|
||||
@@ -37,7 +37,7 @@ struct User : core::Model {
|
||||
field::attribute( op, "locked_at", locked_at );
|
||||
field::attribute( op, "lock_reason", lock_reason, 511 );
|
||||
field::attribute( op, "role", role, 63 );
|
||||
field::belongs_to( op, "user_directory", user_directory, matador::utils::default_foreign_attributes );
|
||||
field::belongs_to( op, "user_directory", user_directory, matador::utils::CascadeAllFetchLazy );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user