mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 17:03:59 +00:00
20 lines
519 B
Rust
20 lines
519 B
Rust
|
use crate::{newtypes::LocalUserId, schema::email_verification};
|
||
|
|
||
|
#[derive(Queryable, Identifiable, Clone)]
|
||
|
#[table_name = "email_verification"]
|
||
|
pub struct EmailVerification {
|
||
|
pub id: i32,
|
||
|
pub local_user_id: LocalUserId,
|
||
|
pub email: String,
|
||
|
pub verification_code: String,
|
||
|
pub published: chrono::NaiveDateTime,
|
||
|
}
|
||
|
|
||
|
#[derive(Insertable, AsChangeset)]
|
||
|
#[table_name = "email_verification"]
|
||
|
pub struct EmailVerificationForm {
|
||
|
pub local_user_id: LocalUserId,
|
||
|
pub email: String,
|
||
|
pub verification_token: String,
|
||
|
}
|