Basis: Certvia dev@a48c5fb als Fundament für Craftvia
CI / build-and-check (push) Canceled after 0s
CI / audit (push) Canceled after 0s
CI / sbom (push) Canceled after 0s

Unveränderter Stand von certvia/dev (a48c5fb) plus Craftvia-Spezifikation
und Brandbook unter docs/craftvia/. ISMS-Module werden im Folgecommit entfernt.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-14 11:05:39 +02:00
co-authored by Claude Opus 5
commit c8e6f30a27
720 changed files with 140143 additions and 0 deletions
@@ -0,0 +1,22 @@
-- AlterTable
ALTER TABLE "users" ADD COLUMN "mfa_enrolled_at" TIMESTAMP(3),
ADD COLUMN "must_change_password" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "recovery_codes" JSONB NOT NULL DEFAULT '[]';
-- CreateTable
CREATE TABLE "platform_settings" (
"id" TEXT NOT NULL DEFAULT 'singleton',
"mfa_required" BOOLEAN NOT NULL DEFAULT false,
"updated_at" TIMESTAMP(3) NOT NULL,
CONSTRAINT "platform_settings_pkey" PRIMARY KEY ("id")
);
-- platform_settings ist plattformweit (kein tenant_id) → RLS nicht aktiviert.
GRANT SELECT, INSERT, UPDATE, DELETE ON "platform_settings" TO isms_app;
-- Singleton-Zeile anlegen (MFA-Pflicht standardmäßig aus).
INSERT INTO "platform_settings" ("id", "mfa_required", "updated_at")
VALUES ('singleton', false, now())
ON CONFLICT ("id") DO NOTHING;