diesel instead of sea-orm
sea-orm was getting to be bigger hassle I think and harder to compile, diesel seems simple and effective enough.
This commit is contained in:
parent
d308bd33b2
commit
37a2dbd986
12 changed files with 165 additions and 1766 deletions
8
src/rust/models.rs
Normal file
8
src/rust/models.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
use diesel::prelude::*;
|
||||
|
||||
#[derive(Queryable)]
|
||||
pub struct Image {
|
||||
pub id: i32,
|
||||
pub title: String,
|
||||
pub path: String,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue