aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/two_factor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/models/two_factor.rs')
-rw-r--r--src/db/models/two_factor.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/models/two_factor.rs b/src/db/models/two_factor.rs
index 567a90ce..56d7e1e7 100644
--- a/src/db/models/two_factor.rs
+++ b/src/db/models/two_factor.rs
@@ -2,12 +2,9 @@ use serde_json::Value;
use crate::{api::EmptyResult, db::DbConn, error::MapResult};
-use super::User;
-
db_object! {
- #[derive(Identifiable, Queryable, Insertable, Associations, AsChangeset)]
+ #[derive(Identifiable, Queryable, Insertable, AsChangeset)]
#[table_name = "twofactor"]
- #[belongs_to(User, foreign_key = "user_uuid")]
#[primary_key(uuid)]
pub struct TwoFactor {
pub uuid: String,