User Profile sind nun verfügbar

This commit is contained in:
kai
2026-08-25 14:39:47 +02:00
parent 714194615f
commit 72ff659ac4
6 changed files with 291 additions and 4 deletions
+10
View File
@@ -13,6 +13,9 @@ CREATE TABLE IF NOT EXISTS users (
ALTER TABLE users
ADD COLUMN IF NOT EXISTS is_admin BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE users
ADD COLUMN IF NOT EXISTS avatar_path TEXT;
CREATE TABLE IF NOT EXISTS registration_invites (
id SERIAL PRIMARY KEY,
token_hash TEXT NOT NULL UNIQUE,
@@ -61,3 +64,10 @@ CREATE TABLE IF NOT EXISTS concert_attendance (
CREATE INDEX IF NOT EXISTS idx_concert_attendance_concert
ON concert_attendance(concert_id, status);
CREATE TABLE IF NOT EXISTS user_badges (
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
badge_code VARCHAR(50) NOT NULL,
awarded_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (user_id, badge_code)
);