diff options
| author | Nathan Perry <np@nathanperry.dev> | 2019-11-17 22:51:59 -0500 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2019-11-17 22:51:59 -0500 |
| commit | 8b2ccf363ac6894c21e256844948c8327645f0db (patch) | |
| tree | f6742f2d7905613b8c0404bba46e237f984a8da2 /src/db/models.rs | |
| parent | 2a38c282dd57c2051a568549d62c80d6036e8920 (diff) | |
mostly fixed
Diffstat (limited to 'src/db/models.rs')
| -rw-r--r-- | src/db/models.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/db/models.rs b/src/db/models.rs index a01a9c1..95acb16 100644 --- a/src/db/models.rs +++ b/src/db/models.rs @@ -1,5 +1,10 @@ use chrono::naive::NaiveDateTime; -use diesel::prelude::*; +use diesel::{ + Identifiable, + Insertable, + prelude::*, + Queryable, +}; use crate::{ db::schema::*, @@ -57,7 +62,7 @@ impl NewMeme { #[derive(Queryable, Identifiable, PartialEq, Debug)] -#[table_name="audio"] +#[table_name = "audio"] pub struct Audio { pub id: i32, pub data: Vec<u8>, @@ -97,7 +102,7 @@ impl Audio { } #[derive(Insertable, PartialEq, Debug)] -#[table_name="audio"] +#[table_name = "audio"] pub struct NewAudio { pub data: Vec<u8>, pub metadata_id: i32, |
