added tons of features

This commit is contained in:
2025-02-05 08:01:14 +02:00
parent 4ae0d8c545
commit 8138da6b1d
195 changed files with 12619 additions and 415 deletions

View File

@@ -0,0 +1,14 @@
SELECT u.id,
a.id AS profileId,
IFNULL(a.role, 'CUSTOMER') AS role,
IF(a.id IS NULL, FALSE, TRUE) AS isOauth,
u.name,
u.username,
u.email,
u.image,
a.provider
FROM users u
LEFT JOIN accounts a
ON a.user_id = u.id
WHERE u.id = ?
LIMIT 1;