chore: Use entities prelude

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-07-09 14:15:12 +03:00
parent b712f96f59
commit 2bac5be8c8
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F
5 changed files with 5 additions and 13 deletions

View file

@ -22,8 +22,7 @@
use chrono::Utc;
use sea_orm::entity::prelude::*;
use super::users::Entity as UserEntity;
use crate::prelude::UserId;
use crate::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "blacklist")]

View file

@ -22,8 +22,7 @@
use chrono::Utc;
use sea_orm::entity::prelude::*;
use super::users::Entity as UserEntity;
use crate::prelude::UserId;
use crate::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "in_chat_requests")]

View file

@ -22,8 +22,7 @@
use chrono::Utc;
use sea_orm::entity::prelude::*;
use super::users::Entity as UserEntity;
use crate::prelude::UserId;
use crate::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "out_chat_requests")]

View file

@ -21,11 +21,7 @@
use sea_orm::entity::prelude::*;
use super::blacklist::Entity as BlacklistEntity;
use super::incoming_chat_requests::Entity as InChatRequestsEntity;
use super::outgoing_chat_requests::Entity as OutChatRequestsEntity;
use super::whitelist::Entity as WhitelistEntity;
use crate::prelude::UserId;
use crate::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "users")]

View file

@ -22,8 +22,7 @@
use chrono::Utc;
use sea_orm::entity::prelude::*;
use super::users::Entity as UserEntity;
use crate::prelude::UserId;
use crate::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "whitelist")]