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, +}