This commit is contained in:
Jacob Lifshay 2024-04-08 18:25:32 -07:00
parent 8b76a51434
commit d6ebd3a4a6
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c
14 changed files with 276 additions and 24 deletions

10
src/models.rs Normal file
View file

@ -0,0 +1,10 @@
use chrono::NaiveDateTime;
use diesel::prelude::*;
#[derive(Queryable, Selectable, Insertable)]
#[diesel(table_name = crate::schema::accounts)]
#[diesel(check_for_backend(diesel::sqlite::Sqlite))]
pub struct Account {
pub email: String,
pub date: NaiveDateTime,
}