feat(users): enhance user schema and extend service dependencies

Add `email` and `status` fields to user schema for better data handling. Update `UsersService` with new service dependencies (`RbacService`, `MediaService`, `S3Service`, `ConfigService`) for enhanced functionality. Mock dependencies in tests for improved coverage. Adjust user model with optional and extended fields for flexibility. Streamline and update import statements.
This commit is contained in:
Mathis HERRIOT
2026-01-14 21:58:28 +01:00
parent 02d70f27ea
commit 3908989b39
5 changed files with 39 additions and 8 deletions

View File

@@ -1,11 +1,13 @@
export interface User {
id: string;
id?: string;
uuid: string;
username: string;
email: string;
email?: string;
displayName?: string;
avatarUrl?: string;
bio?: string;
role: "user" | "admin";
role?: "user" | "admin";
status?: "active" | "verification" | "suspended" | "pending" | "deleted";
createdAt: string;
}