diff --git a/src/database/migrations/0006-fix_view_program_seq-up.sql b/src/database/migrations/0006-fix_view_program_seq-up.sql index 7873c54..3fd673c 100644 --- a/src/database/migrations/0006-fix_view_program_seq-up.sql +++ b/src/database/migrations/0006-fix_view_program_seq-up.sql @@ -4,7 +4,7 @@ CREATE VIEW program_sequences AS WITH psi_sorted AS ( SELECT psi.program_id program_id, json_object( - 'section_id', psi.section_id, + 'sectionId', psi.section_id, 'duration', psi.duration) obj FROM program_sequence_items AS psi diff --git a/src/model/program.rs b/src/model/program.rs index 5b45cee..112da50 100644 --- a/src/model/program.rs +++ b/src/model/program.rs @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize}; use std::{sync::Arc, time::Duration}; #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] pub struct ProgramItem { pub section_id: SectionId, #[serde(