Procedures
getProfile
Type: QueryAuthentication: Protected Get user profile information.
User ID to fetch (defaults to current user)
User ID
User name
User email
Profile image URL
Array of user roles
Application information if exists
Application ID
First name
Last name
Social media links
School/university
Degree program
Year of study
Major
Application status
checkIn
Type: MutationAuthentication: Protected (ADMIN role required) Check in a user (update their application status to CHECKED_IN).
User ID to check in
byRole
Type: QueryAuthentication: Protected (ADMIN role required) Get paginated list of users filtered by role.
Filter by role (null for all users)
Page number (minimum 1, default 1)
Results per page (minimum 1, default 10)
Search by name or email
Array of user objects
Total number of users matching criteria
addRole
Type: MutationAuthentication: Protected (ADMIN role required) Add a role to a user.
User ID (CUID format)
Role to add (ADMIN, REVIEWER, JUDGE, GENERAL_SCANNER, FOOD_MANAGER, EVENT_MANAGER, etc.)
removeRole
Type: MutationAuthentication: Protected (ADMIN role required) Remove a role from a user.
User ID (CUID format)
Role to remove
Available Roles
The following roles are available in the system:- ADMIN - Full administrative access
- REVIEWER - Can review applications
- JUDGE - Can judge projects
- GENERAL_SCANNER - Can scan QR codes at all stations
- FOOD_MANAGER - Can manage food station scans
- EVENT_MANAGER - Can manage event station scans