From ae411835426c53e546c614ab6f1cd82b9259c739 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 21:38:23 -0400 Subject: [PATCH] Added Login history --- src/user/mod.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/user/mod.rs b/src/user/mod.rs index 8d8c934..be27475 100644 --- a/src/user/mod.rs +++ b/src/user/mod.rs @@ -27,3 +27,20 @@ pub struct ServiceUser { #[serde(with = "time::serde::rfc3339::option")] pub last_login: Option, } + + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct UserLoginHistory { + pub id: uuid::Uuid, + #[serde(with = "time::serde::rfc3339::option")] + pub login_time: Option, + pub user_id: uuid::Uuid, +} + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct ServiceUserLoginHistory { + pub id: uuid::Uuid, + #[serde(with = "time::serde::rfc3339::option")] + pub login_time: Option, + pub service_user_id: uuid::Uuid, +}