style!(models): adding the Db prefix on type from database

This commit is contained in:
Raphael 2026-02-13 19:53:36 +01:00 committed by Raphaël
parent 997da4c564
commit 1ab4b7cb61
5 changed files with 9 additions and 4 deletions

View file

@ -20,7 +20,7 @@ pub enum BotActivity {
}
#[derive(Debug, FromRow)]
pub struct Bot {
pub struct DbBot {
pub id: i32,
pub status: String,
pub activity_type: BotActivity,

View file

@ -1,7 +1,7 @@
use sqlx::FromRow;
#[derive(Debug, FromRow)]
pub struct Guild {
pub struct DbGuild {
pub guild_id: String,
pub log_enable: bool,

View file

@ -1,7 +1,7 @@
use sqlx::FromRow;
#[derive(Debug, FromRow)]
pub struct GuildUser {
pub struct DbGuildUser {
pub id: i32,
pub user_id: String,
pub guild_id: String,

View file

@ -1 +1,6 @@
include!("./mod_gen.rs");
pub use bot::DbBot;
pub use guild::DbGuild;
pub use guild_user::DbGuildUser;
pub use user::DbUser;

View file

@ -1,7 +1,7 @@
use sqlx::FromRow;
#[derive(Debug, FromRow)]
pub struct User {
pub struct DbUser {
pub user_id: String,
pub is_owner: bool,
pub is_buyer: bool,