Add configuration files, database migrations, and authentication implementation scaffolding

This commit is contained in:
Sebastian Unterschütz
2026-04-30 19:08:07 +02:00
commit 331d60581e
83 changed files with 222264 additions and 0 deletions

19
internal/db/queries.sql Normal file
View File

@@ -0,0 +1,19 @@
-- name: CreateEncryptedLog :one
INSERT INTO encrypted_logs (
log_type, encrypted_payload, blind_index_hash, server_id, session_id
) VALUES (
$1, $2, $3, $4, $5
) RETURNING *;
-- name: CreateTelemetry :one
INSERT INTO telemetry (
community_id, server_fps, player_count
) VALUES (
$1, $2, $3
) RETURNING *;
-- name: GetRecentLogs :many
SELECT * FROM encrypted_logs
WHERE server_id = $1
ORDER BY created_at DESC
LIMIT $2;