building db support with diesel.rs
This commit is contained in:
8
cookbook/src/models.rs
Normal file
8
cookbook/src/models.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
#[derive(Queryable)]
|
||||
pub struct Recipe {
|
||||
pub id: i32,
|
||||
pub title: String,
|
||||
pub category: i32,
|
||||
pub ingredients: String,
|
||||
pub preparation: String,
|
||||
}
|
||||
Reference in New Issue
Block a user