feat: add user roles and storage quota management
This commit is contained in:
@@ -27,6 +27,7 @@ pub trait UserRepository: Send + Sync {
|
||||
async fn find_by_email(&self, email: &str) -> CoreResult<Option<User>>;
|
||||
async fn find_by_username(&self, username: &str) -> CoreResult<Option<User>>;
|
||||
async fn find_by_id(&self, id: Uuid) -> CoreResult<Option<User>>;
|
||||
async fn update_storage_used(&self, user_id: Uuid, bytes: i64) -> CoreResult<()>;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
|
||||
Reference in New Issue
Block a user