Add optional imdb_id
This commit is contained in:
parent
90c3fc5ee3
commit
df6e3476cc
7 changed files with 14 additions and 0 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue