chore: Use PublicKey
as it is
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
ab4e388ff8
commit
eb52c0a030
4 changed files with 8 additions and 8 deletions
|
@ -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<Utc>,
|
||||
}
|
||||
|
|
|
@ -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<Utc>,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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<Utc>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue