ADD: added new user data model and updated the administration site
This commit is contained in:
19
backend/internal/player/querys.go
Normal file
19
backend/internal/player/querys.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package player
|
||||
|
||||
const getPLayerWithRolesQuery = `
|
||||
SELECT
|
||||
u.uuid,
|
||||
u.email,
|
||||
u.username,
|
||||
u.firstname,
|
||||
u.lastname,
|
||||
u.birthday,
|
||||
u.is_active,
|
||||
u.created_at,
|
||||
ur.role
|
||||
FROM public.users u
|
||||
LEFT JOIN roles ur ON u.uuid = ur.player_id::uuid
|
||||
`
|
||||
|
||||
// GROUP BY u.uuid
|
||||
// ORDER BY u.uuid ASC;
|
||||
Reference in New Issue
Block a user