-- Create the dev_knowledge namespace if it doesn't exist
INSERT INTO namespaces (name) VALUES ('dev_knowledge') ON CONFLICT (name) DO NOTHING;

-- Create a secret for the dev_knowledge namespace for testing
DO $$
DECLARE
    ns_id UUID;
BEGIN
    SELECT id INTO ns_id FROM namespaces WHERE name = 'dev_knowledge';
    INSERT INTO auth_secrets (namespace_id, secret_hash) VALUES (ns_id, '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918'); -- 'test-secret'
END $$;
