criteria progress
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace work::core {
|
||||
struct Model {
|
||||
uint64_t id{};
|
||||
int64_t id{};
|
||||
uint64_t version{};
|
||||
|
||||
template<typename Operator>
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
#include "matador/object/collection.hpp"
|
||||
|
||||
#include "matador/query/meta_table_macro.hpp"
|
||||
|
||||
#include "matador/utils/foreign_attributes.hpp"
|
||||
|
||||
namespace work::models::jobs {
|
||||
@@ -19,4 +21,6 @@ struct IdListPayload : Payload {
|
||||
};
|
||||
}
|
||||
|
||||
META_TABLE(id_list_payloads, ID_LIST_PAYLOAD, id, version, type, job)
|
||||
|
||||
#endif //ID_LIST_PAYLOAD_HPP
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "Payload.hpp"
|
||||
|
||||
#include "matador/query/meta_table_macro.hpp"
|
||||
|
||||
namespace work::models::jobs {
|
||||
struct IdPayload : Payload {
|
||||
uint64_t payload_id{};
|
||||
@@ -15,4 +17,6 @@ struct IdPayload : Payload {
|
||||
};
|
||||
}
|
||||
|
||||
META_TABLE(id_payloads, ID_PAYLOAD, id, version, type, job, payload_id)
|
||||
|
||||
#endif //ID_PAYLOAD_HPP
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "matador/object/object_ptr.hpp"
|
||||
|
||||
#include "matador/query/meta_table_macro.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
#include "matador/utils/foreign_attributes.hpp"
|
||||
|
||||
@@ -43,4 +45,6 @@ struct Job : core::Model {
|
||||
|
||||
}
|
||||
|
||||
META_TABLE(jobs, JOB, id, version, name, description, state, mode, created_at, payload, task, user_info)
|
||||
|
||||
#endif //JOB_HPP
|
||||
|
||||
@@ -3,14 +3,16 @@
|
||||
|
||||
#include "../core/Model.hpp"
|
||||
|
||||
#include "matador/query/meta_table_macro.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
#include "matador/utils/foreign_attributes.hpp"
|
||||
|
||||
namespace work::models::jobs {
|
||||
struct Job;
|
||||
struct Payload : core::Model {
|
||||
std::string type;
|
||||
matador::object::object_ptr<Job> job;
|
||||
std::string type{};
|
||||
matador::object::object_ptr<Job> job{};
|
||||
|
||||
template<typename Operator>
|
||||
void process( Operator& op ) {
|
||||
@@ -22,4 +24,6 @@ struct Payload : core::Model {
|
||||
};
|
||||
}
|
||||
|
||||
META_TABLE(payloads, PAYLOAD, id, version, type, job)
|
||||
|
||||
#endif //PAYLOAD_HPP
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "matador/object/object_ptr.hpp"
|
||||
|
||||
#include "matador/query/meta_table_macro.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
#include "matador/utils/foreign_attributes.hpp"
|
||||
|
||||
@@ -39,4 +41,6 @@ struct Task : core::Model {
|
||||
};
|
||||
}
|
||||
|
||||
META_TABLE(tasks, TASK, id, version, name, description, job_name, state, payload, job_mode, start_delay, interval, user_session_id)
|
||||
|
||||
#endif //TASK_HPP
|
||||
|
||||
Reference in New Issue
Block a user