chore: Use entities prelude
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
b712f96f59
commit
2bac5be8c8
5 changed files with 5 additions and 13 deletions
|
@ -22,8 +22,7 @@
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use sea_orm::entity::prelude::*;
|
use sea_orm::entity::prelude::*;
|
||||||
|
|
||||||
use super::users::Entity as UserEntity;
|
use crate::prelude::*;
|
||||||
use crate::prelude::UserId;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "blacklist")]
|
#[sea_orm(table_name = "blacklist")]
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use sea_orm::entity::prelude::*;
|
use sea_orm::entity::prelude::*;
|
||||||
|
|
||||||
use super::users::Entity as UserEntity;
|
use crate::prelude::*;
|
||||||
use crate::prelude::UserId;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "in_chat_requests")]
|
#[sea_orm(table_name = "in_chat_requests")]
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use sea_orm::entity::prelude::*;
|
use sea_orm::entity::prelude::*;
|
||||||
|
|
||||||
use super::users::Entity as UserEntity;
|
use crate::prelude::*;
|
||||||
use crate::prelude::UserId;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "out_chat_requests")]
|
#[sea_orm(table_name = "out_chat_requests")]
|
||||||
|
|
|
@ -21,11 +21,7 @@
|
||||||
|
|
||||||
use sea_orm::entity::prelude::*;
|
use sea_orm::entity::prelude::*;
|
||||||
|
|
||||||
use super::blacklist::Entity as BlacklistEntity;
|
use crate::prelude::*;
|
||||||
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;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "users")]
|
#[sea_orm(table_name = "users")]
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use sea_orm::entity::prelude::*;
|
use sea_orm::entity::prelude::*;
|
||||||
|
|
||||||
use super::users::Entity as UserEntity;
|
use crate::prelude::*;
|
||||||
use crate::prelude::UserId;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "whitelist")]
|
#[sea_orm(table_name = "whitelist")]
|
||||||
|
|
Loading…
Reference in a new issue