major config rebuild using once cell. added ability to use .env.

This commit is contained in:
mtrx 2024-08-10 08:24:22 +02:00
parent 35cd018152
commit c30976f2d7
26 changed files with 207 additions and 186 deletions

13
site/src/models.rs Normal file
View 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
}