diff options
Diffstat (limited to 'src/db/models/user.rs')
-rw-r--r-- | src/db/models/user.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db/models/user.rs b/src/db/models/user.rs index a9c6c3d2..a2473c03 100644 --- a/src/db/models/user.rs +++ b/src/db/models/user.rs @@ -11,6 +11,7 @@ db_object! { #[primary_key(uuid)] pub struct User { pub uuid: String, + pub enabled: bool, pub created_at: NaiveDateTime, pub updated_at: NaiveDateTime, pub verified_at: Option<NaiveDateTime>, @@ -70,6 +71,7 @@ impl User { Self { uuid: crate::util::get_uuid(), + enabled: true, created_at: now, updated_at: now, verified_at: None, |