From eb52c0a0308d1c0c65513d2d81b9ce773e0274bb Mon Sep 17 00:00:00 2001 From: Awiteb Date: Tue, 23 Jul 2024 19:39:44 +0300 Subject: [PATCH] chore: Use `PublicKey` as it is Signed-off-by: Awiteb --- crates/oxidetalis_entities/src/incoming_chat_requests.rs | 4 ++-- crates/oxidetalis_entities/src/outgoing_chat_requests.rs | 4 ++-- crates/oxidetalis_entities/src/users.rs | 4 ++-- crates/oxidetalis_entities/src/users_status.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/oxidetalis_entities/src/incoming_chat_requests.rs b/crates/oxidetalis_entities/src/incoming_chat_requests.rs index a34d7c7..ed6ff3c 100644 --- a/crates/oxidetalis_entities/src/incoming_chat_requests.rs +++ b/crates/oxidetalis_entities/src/incoming_chat_requests.rs @@ -22,7 +22,7 @@ //! Entity for `in_chat_requests` table use chrono::Utc; -use oxidetalis_core::types::PublicKey as CorePublicKey; +use oxidetalis_core::types::PublicKey; use sea_orm::entity::prelude::*; use crate::prelude::*; @@ -34,7 +34,7 @@ pub struct Model { pub id: UserId, pub recipient_id: UserId, /// Public key of the sender - pub sender: CorePublicKey, + pub sender: PublicKey, /// The timestamp of the request, when it was received pub in_on: chrono::DateTime, } diff --git a/crates/oxidetalis_entities/src/outgoing_chat_requests.rs b/crates/oxidetalis_entities/src/outgoing_chat_requests.rs index 0f5a614..2f5642c 100644 --- a/crates/oxidetalis_entities/src/outgoing_chat_requests.rs +++ b/crates/oxidetalis_entities/src/outgoing_chat_requests.rs @@ -22,7 +22,7 @@ //! Entity for `out_chat_requests` table use chrono::Utc; -use oxidetalis_core::types::PublicKey as CorePublicKey; +use oxidetalis_core::types::PublicKey; use sea_orm::entity::prelude::*; use crate::prelude::*; @@ -34,7 +34,7 @@ pub struct Model { pub id: UserId, pub sender_id: UserId, /// Public key of the recipient - pub recipient: CorePublicKey, + pub recipient: PublicKey, /// The timestamp of the request, when it was sent pub out_on: chrono::DateTime, } diff --git a/crates/oxidetalis_entities/src/users.rs b/crates/oxidetalis_entities/src/users.rs index df6dd82..66e3db9 100644 --- a/crates/oxidetalis_entities/src/users.rs +++ b/crates/oxidetalis_entities/src/users.rs @@ -21,7 +21,7 @@ //! Entity for `users` table -use oxidetalis_core::types::PublicKey as CorePublicKey; +use oxidetalis_core::types::PublicKey; use sea_orm::entity::prelude::*; use crate::prelude::*; @@ -31,7 +31,7 @@ use crate::prelude::*; pub struct Model { #[sea_orm(primary_key)] pub id: UserId, - pub public_key: CorePublicKey, + pub public_key: PublicKey, pub is_admin: bool, } diff --git a/crates/oxidetalis_entities/src/users_status.rs b/crates/oxidetalis_entities/src/users_status.rs index 7651bc1..2f66883 100644 --- a/crates/oxidetalis_entities/src/users_status.rs +++ b/crates/oxidetalis_entities/src/users_status.rs @@ -22,7 +22,7 @@ //! Entity for `users_status` table use chrono::Utc; -use oxidetalis_core::types::PublicKey as CorePublicKey; +use oxidetalis_core::types::PublicKey; use sea_orm::entity::prelude::*; use crate::prelude::*; @@ -42,7 +42,7 @@ pub struct Model { #[sea_orm(primary_key)] pub id: UserId, pub user_id: UserId, - pub target: CorePublicKey, + pub target: PublicKey, pub status: AccessStatus, pub updated_at: chrono::DateTime, }