switch properly to using newdrink

main
Zynh0722 2023-11-14 21:53:54 -08:00
parent 0eeb088b24
commit ccfefbf501
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
use diesel::prelude::*; use diesel::prelude::*;
use serde::Deserialize;
#[derive(Identifiable, Queryable, Selectable, Debug)] #[derive(Identifiable, Queryable, Selectable, Debug)]
#[diesel(table_name = crate::schema::shifts)] #[diesel(table_name = crate::schema::shifts)]
@ -49,7 +50,7 @@ pub struct Show {
pub end: Option<chrono::NaiveDateTime>, pub end: Option<chrono::NaiveDateTime>,
} }
#[derive(Insertable, Deseralize, Debug)] #[derive(Insertable, Deserialize, Debug)]
#[diesel(table_name = crate::schema::drinks)] #[diesel(table_name = crate::schema::drinks)]
#[diesel(check_for_backend(diesel::mysql::Mysql))] #[diesel(check_for_backend(diesel::mysql::Mysql))]
pub struct NewDrink { pub struct NewDrink {