moar unit test !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m42s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m42s
This commit is contained in:
13
src/types.ts
13
src/types.ts
@@ -831,4 +831,17 @@ export interface LeaderboardUser {
|
||||
avatar_url: string | null;
|
||||
points: number;
|
||||
rank: string; // RANK() returns a bigint, which the pg driver returns as a string.
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the shape of the user data returned for the admin user list.
|
||||
* This is a public-facing type and does not include sensitive fields.
|
||||
*/
|
||||
export interface AdminUserView {
|
||||
user_id: string;
|
||||
email: string;
|
||||
created_at: string;
|
||||
role: 'admin' | 'user';
|
||||
full_name: string | null;
|
||||
avatar_url: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user