1 use crate::{newtypes::LocalUserId, schema::email_verification};
3 #[derive(Queryable, Identifiable, Clone)]
4 #[table_name = "email_verification"]
5 pub struct EmailVerification {
7 pub local_user_id: LocalUserId,
9 pub verification_code: String,
10 pub published: chrono::NaiveDateTime,
13 #[derive(Insertable, AsChangeset)]
14 #[table_name = "email_verification"]
15 pub struct EmailVerificationForm {
16 pub local_user_id: LocalUserId,
18 pub verification_token: String,