Add optional imdb_id

This commit is contained in:
Marc Plano-Lesay 2025-05-01 20:53:37 +10:00
parent 90c3fc5ee3
commit df6e3476cc
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
7 changed files with 14 additions and 0 deletions

View file

@ -12,6 +12,7 @@ pub struct Magnet {
pub subreddit: String,
pub link: String,
pub published_at: NaiveDateTime,
pub imdb_id: Option<String>,
}
#[derive(Insertable)]
@ -23,6 +24,7 @@ pub struct NewMagnet<'a> {
pub subreddit: &'a str,
pub link: &'a str,
pub published_at: &'a NaiveDateTime,
pub imdb_id: Option<&'a str>,
}
#[derive(Queryable, Selectable)]