-- Add isActive flag to users for soft deactivation.
-- Active sessions are purged on deactivation so existing JWTs stop working
-- on the next auth check.

ALTER TABLE "users" ADD COLUMN IF NOT EXISTS "isActive" BOOLEAN NOT NULL DEFAULT TRUE;

-- Index for quick admin queries (active vs. inactive users)
CREATE INDEX IF NOT EXISTS "users_isActive_idx" ON "users"("isActive");
