major config rebuild using once cell. added ability to use .env.
This commit is contained in:
parent
35cd018152
commit
c30976f2d7
26 changed files with 207 additions and 186 deletions
13
site/src/models.rs
Normal file
13
site/src/models.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use diesel::prelude::*;
|
||||
use chrono;
|
||||
|
||||
#[derive(Queryable, Selectable)]
|
||||
#[diesel(table_name = crate::schema::posts)]
|
||||
#[diesel(check_for_backend(diesel::pg::Pg))]
|
||||
pub struct Post {
|
||||
pub id: i32,
|
||||
pub title: String,
|
||||
pub body: String,
|
||||
pub published: bool,
|
||||
pub publish_date: chrono::Timestamp
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue