added some more entities for work demo

This commit is contained in:
Sascha Kühl
2025-06-26 16:03:28 +02:00
parent 4dcbf009da
commit 9f718b7e36
15 changed files with 258 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef JOB_STATE_HPP
#define JOB_STATE_HPP
#include "matador/utils/enum_mapper.hpp"
#include <cstdint>
namespace work::models::jobs {
enum class JobState : uint8_t {
Pending,
Running,
Succeeded,
Failed,
Cancelled
};
static const matador::utils::enum_mapper<JobState> JobStateEnum({
{JobState::Pending, "Pending"},
{JobState::Running, "Running"},
{JobState::Succeeded, "Succeeded"},
{JobState::Failed, "Failed"},
{JobState::Cancelled, "Cancelled"}
});
}
#endif //JOB_STATE_HPP