switch properly to using newdrink
parent
0eeb088b24
commit
ccfefbf501
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue