adjust work project to the current codebase
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
#include "TaskState.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"
|
||||
|
||||
namespace work::models::jobs {
|
||||
struct Task : core::Model {
|
||||
@@ -18,8 +18,8 @@ struct Task : core::Model {
|
||||
TaskState state;
|
||||
matador::object::object_ptr<Payload> payload;
|
||||
JobMode job_mode;
|
||||
core::timestamp start_delay;
|
||||
core::timestamp interval;
|
||||
matador::utils::timestamp start_delay;
|
||||
matador::utils::timestamp interval;
|
||||
uint64_t user_session_id;
|
||||
|
||||
template<typename Operator>
|
||||
@@ -30,7 +30,7 @@ struct Task : core::Model {
|
||||
field::attribute( op, "description", description, 511 );
|
||||
field::attribute( op, "job_name", job_name, 511 );
|
||||
field::attribute( op, "state", state );
|
||||
field::belongs_to( op, "payload", payload, matador::utils::default_foreign_attributes );
|
||||
field::belongs_to( op, "payload", payload, matador::utils::CascadeAllFetchLazy );
|
||||
field::attribute( op, "job_mode", job_mode );
|
||||
field::attribute( op, "start_delay", start_delay );
|
||||
field::attribute( op, "interval", interval );
|
||||
|
||||
Reference in New Issue
Block a user