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