Implements full player get

This commit is contained in:
2024-10-28 00:05:30 +01:00
parent 7903bb7830
commit c8d5540b0d
7 changed files with 178 additions and 5 deletions

11
backend/selectPlayer.sql Normal file
View File

@@ -0,0 +1,11 @@
-- 1. Get player and guild info (1 row)
select
p.id as PlayerID,
p.name as PlayerName,
g.id as GuildID,
g.name as GuildName
from
player p
join guild g on p.guild = g.id
where
p.name = $1;