use serde::{Deserialize, Serialize};
pub(crate) const GRAPH_LABEL_CKPT_FORMAT_VERSION: u16 = 1;
#[derive(
Debug,
Clone,
Default,
PartialEq,
Eq,
Serialize,
Deserialize,
zerompk::ToMessagePack,
zerompk::FromMessagePack,
)]
pub(crate) struct GraphLabelPartition {
pub database_id: u64,
pub tenant_id: u64,
pub nodes: Vec<(String, Vec<String>)>,
}
#[derive(
Debug,
Clone,
Default,
PartialEq,
Eq,
Serialize,
Deserialize,
zerompk::ToMessagePack,
zerompk::FromMessagePack,
)]
pub(crate) struct GraphLabelCheckpointFile {
pub format_version: u16,
pub durable_through_lsn: u64,
pub partitions: Vec<GraphLabelPartition>,
}