2021-03-18 20:25:21 +00:00
|
|
|
use crate::{schema::password_reset_request, LocalUserId};
|
2020-12-21 13:38:34 +00:00
|
|
|
|
|
|
|
#[derive(Queryable, Identifiable, PartialEq, Debug)]
|
|
|
|
#[table_name = "password_reset_request"]
|
|
|
|
pub struct PasswordResetRequest {
|
|
|
|
pub id: i32,
|
|
|
|
pub token_encrypted: String,
|
|
|
|
pub published: chrono::NaiveDateTime,
|
2021-03-18 20:25:21 +00:00
|
|
|
pub local_user_id: LocalUserId,
|
2020-12-21 13:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Insertable, AsChangeset)]
|
|
|
|
#[table_name = "password_reset_request"]
|
|
|
|
pub struct PasswordResetRequestForm {
|
2021-03-18 20:25:21 +00:00
|
|
|
pub local_user_id: LocalUserId,
|
2020-12-21 13:38:34 +00:00
|
|
|
pub token_encrypted: String,
|
|
|
|
}
|