1 use crate::{newtypes::LocalUserId, schema::password_reset_request};
3 #[derive(Queryable, Identifiable, PartialEq, Debug)]
4 #[table_name = "password_reset_request"]
5 pub struct PasswordResetRequest {
7 pub token_encrypted: String,
8 pub published: chrono::NaiveDateTime,
9 pub local_user_id: LocalUserId,
12 #[derive(Insertable, AsChangeset)]
13 #[table_name = "password_reset_request"]
14 pub struct PasswordResetRequestForm {
15 pub local_user_id: LocalUserId,
16 pub token_encrypted: String,