From cc7c87a5204ec6da423ba088ef3c0d6e3032701d Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:42:51 +0200 Subject: [PATCH] feat: add vendor_auth_policy table for passkey MFA support Co-Authored-By: Claude Sonnet 4.6 --- .../resources/db/migration/V003__passkey_mfa_support.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/resources/db/migration/V003__passkey_mfa_support.sql diff --git a/src/main/resources/db/migration/V003__passkey_mfa_support.sql b/src/main/resources/db/migration/V003__passkey_mfa_support.sql new file mode 100644 index 0000000..b5f9cf9 --- /dev/null +++ b/src/main/resources/db/migration/V003__passkey_mfa_support.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS vendor_auth_policy ( + id INTEGER PRIMARY KEY DEFAULT 1 CHECK (id = 1), + mfa_mode VARCHAR(10) NOT NULL DEFAULT 'off', + passkey_enabled BOOLEAN NOT NULL DEFAULT false, + passkey_mode VARCHAR(10) NOT NULL DEFAULT 'optional', + updated_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +INSERT INTO vendor_auth_policy (id) VALUES (1) ON CONFLICT DO NOTHING;