Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
210cf64d55
|
||
|
|
7e5758d0c9
|
||
|
|
85d326fa6d
|
@@ -21,25 +21,8 @@ pub struct ServiceUser {
|
|||||||
pub id: uuid::Uuid,
|
pub id: uuid::Uuid,
|
||||||
pub username: String,
|
pub username: String,
|
||||||
pub passphrase: String,
|
pub passphrase: String,
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
|
||||||
pub created: Option<time::OffsetDateTime>,
|
pub created: Option<time::OffsetDateTime>,
|
||||||
// When serializing to json, if empty do not populate
|
// When serializing to json, if empty do not populate
|
||||||
#[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,
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user