-- Admin-Users Allowlist für Admin-App-Zugang
-- Wird via requireAdmin() middleware geprüft.
--
-- Seed-User (chahine / backoffice):
--   INSERT INTO "rebreak"."admin_users" ("user_id", "created_at")
--   VALUES ('128df360-2008-4d6f-8aa1-bdb41ec1362f', NOW())
--   ON CONFLICT DO NOTHING;
--
-- Deploy: pnpm prisma migrate deploy auf Hetzner-Server
-- NICHT lokal ausführen.

CREATE TABLE IF NOT EXISTS "rebreak"."admin_users" (
    "user_id"    UUID        NOT NULL,
    "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "added_by"   TEXT,

    CONSTRAINT "admin_users_pkey" PRIMARY KEY ("user_id")
);
