Compare commits

...
Author SHA1 Message Date
phoenix 21074103a6 cargo fmt
Release Tagging / release (pull_request) Successful in 29s
Rust Build / Check (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 35s
Rust Build / Test Suite (pull_request) Successful in 57s
Rust Build / build (pull_request) Successful in 38s
Rust Build / Clippy (pull_request) Successful in 44s
2026-05-29 21:38:49 -04:00
phoenix ae41183542 Added Login history 2026-05-29 21:38:23 -04:00
+16
View File
@@ -27,3 +27,19 @@ pub struct ServiceUser {
#[serde(with = "time::serde::rfc3339::option")] #[serde(with = "time::serde::rfc3339::option")]
pub last_login: Option<time::OffsetDateTime>, pub last_login: Option<time::OffsetDateTime>,
} }
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserLoginHistory {
pub id: uuid::Uuid,
#[serde(with = "time::serde::rfc3339::option")]
pub login_time: Option<time::OffsetDateTime>,
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<time::OffsetDateTime>,
pub service_user_id: uuid::Uuid,
}