feat(domain): add ChannelConfigSnapshot entity

This commit is contained in:
2026-03-17 14:25:49 +01:00
parent 22bee4f32c
commit 995f5b1339

View File

@@ -400,6 +400,18 @@ pub struct PlaybackRecord {
pub generation: u32,
}
/// A point-in-time snapshot of a channel's `ScheduleConfig`.
/// Auto-created on every config save; users can pin with a label.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChannelConfigSnapshot {
pub id: Uuid,
pub channel_id: ChannelId,
pub config: ScheduleConfig,
pub version_num: i64,
pub label: Option<String>,
pub created_at: DateTime<Utc>,
}
impl PlaybackRecord {
pub fn new(channel_id: ChannelId, item_id: MediaItemId, generation: u32) -> Self {
Self {