1 use crate::newtypes::LocalUserId;
3 #[cfg(feature = "full")]
4 use crate::schema::email_verification;
7 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
8 #[cfg_attr(feature = "full", table_name = "email_verification")]
9 pub struct EmailVerification {
11 pub local_user_id: LocalUserId,
13 pub verification_code: String,
14 pub published: chrono::NaiveDateTime,
17 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
18 #[cfg_attr(feature = "full", table_name = "email_verification")]
19 pub struct EmailVerificationForm {
20 pub local_user_id: LocalUserId,
22 pub verification_token: String,