aboutsummaryrefslogtreecommitdiff
path: root/src/models.rs
blob: b367f4ff20c0b5afc3697ecabdb1bdeb7b40fe44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use sqlx::FromRow;



#[derive(Debug, FromRow)]
pub struct DbUser {
    pub id: String,
    pub email: String,
    pub pref_name: String,
    pub pw_hash: String,
    pub last_login: chrono::NaiveDateTime
}