Update profile show and edit commands using database schema for profiles and discord interactions and modals

This commit is contained in:
2025-02-08 05:02:53 +00:00
parent cf18044b95
commit 64d1061353
6 changed files with 741 additions and 581 deletions

View File

@@ -99,6 +99,7 @@ pub trait ProfileRepository {
async fn set_active_profile(&mut self, user_id: i32, profile_id: i32) -> Result<bool, RepositoryError<Self::BackendError>>;
}
#[derive(Debug, Clone)]
pub struct Profile {
pub id: i32,
pub user_id: i32,
@@ -122,6 +123,7 @@ pub struct Profile {
pub is_active: bool,
}
#[derive(Debug, Clone, Default)]
pub struct NewProfile {
pub user_id: i32,