lemmy/crates/db_schema/src/source/password_reset_request.rs

18 lines
501 B
Rust
Raw Normal View History

2021-10-16 13:33:38 +00:00
use crate::{newtypes::LocalUserId, schema::password_reset_request};
#[derive(Queryable, Identifiable, PartialEq, Debug)]
#[table_name = "password_reset_request"]
pub struct PasswordResetRequest {
pub id: i32,
pub token_encrypted: String,
pub published: chrono::NaiveDateTime,
pub local_user_id: LocalUserId,
}
#[derive(Insertable, AsChangeset)]
#[table_name = "password_reset_request"]
pub struct PasswordResetRequestForm {
pub local_user_id: LocalUserId,
pub token_encrypted: String,
}