feat: add date_taken field to media model and update related functionalities

This commit is contained in:
2025-11-04 05:28:27 +01:00
parent 39ee8d52a4
commit 828d8e4a2b
11 changed files with 48 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ pub struct Media {
pub extracted_location: Option<String>,
pub width: Option<i32>,
pub height: Option<i32>,
pub date_taken: Option<chrono::DateTime<chrono::Utc>>,
}
#[derive(Clone)]

View File

@@ -18,6 +18,7 @@ pub trait MediaRepository: Send + Sync {
width: Option<i32>,
height: Option<i32>,
location: Option<String>,
date_taken: Option<chrono::DateTime<chrono::Utc>>,
) -> CoreResult<()>;
async fn delete(&self, id: Uuid) -> CoreResult<()>;
}