use crate::database::universal_types::{UniversalTimestamp, UniversalUuid};
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowRegistryEntry {
pub id: UniversalUuid,
pub created_at: UniversalTimestamp,
pub data: Vec<u8>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NewWorkflowRegistryEntry {
pub data: Vec<u8>,
}
impl NewWorkflowRegistryEntry {
pub fn new(data: Vec<u8>) -> Self {
Self { data }
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NewWorkflowRegistryEntryWithId {
pub id: UniversalUuid,
pub created_at: UniversalTimestamp,
pub data: Vec<u8>,
}