switch properly to using newdrink

This commit is contained in:
Zynh0722 2023-11-14 21:53:54 -08:00
parent 0eeb088b24
commit ccfefbf501

View file

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