1 use crate::newtypes::LocalUserId;
2 #[cfg(feature = "full")]
3 use crate::schema::email_verification;
6 #[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
7 #[cfg_attr(feature = "full", diesel(table_name = email_verification))]
8 pub struct EmailVerification {
10 pub local_user_id: LocalUserId,
12 pub verification_code: String,
13 pub published: chrono::NaiveDateTime,
16 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
17 #[cfg_attr(feature = "full", diesel(table_name = email_verification))]
18 pub struct EmailVerificationForm {
19 pub local_user_id: LocalUserId,
21 pub verification_token: String,