use uuid::Uuid; use diesel::{Queryable, Insertable}; use crate::schema::refresh_tokens; #[derive(Queryable)] pub struct RefreshToken { pub token: Vec, pub user_id: Uuid, pub expires_at: chrono::NaiveDateTime, pub last_used_at: Option, } #[derive(Insertable)] #[table_name = "refresh_tokens"] pub struct NewRefreshToken { pub token: Vec, pub user_id: Uuid, pub expires_at: chrono::NaiveDateTime, }