Organization #11

Merged
phoenix merged 3 commits from organization into v0.3.0-migrate 2026-05-29 22:55:32 -04:00
Showing only changes of commit 1c3c992425 - Show all commits
+4 -4
View File
@@ -36,7 +36,6 @@ pub struct Organization {
pub created: Option<time::OffsetDateTime>,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserLoginHistory {
pub id: uuid::Uuid,
@@ -53,7 +52,6 @@ pub struct ServiceUserLoginHistory {
pub service_user_id: uuid::Uuid,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserProfile {
pub user_id: uuid::Uuid,
@@ -79,7 +77,6 @@ pub fn init_user_profile(usr: &User) -> UserProfile {
}
}
#[cfg(test)]
mod tests {
#[test]
@@ -97,6 +94,9 @@ mod tests {
};
let profile = super::init_user_profile(&usr);
assert_eq!(usr.phone_number, profile.phone_number, "Phone numbers are not equal");
assert_eq!(
usr.phone_number, profile.phone_number,
"Phone numbers are not equal"
);
}
}