INSERT INTO api_key_rights (api_key_rights_id, name, description)
VALUES
    (gen_random_uuid(), 'gateway.rpc.execute', 'Execute Postgres functions through Athena RPC routes'),
    (gen_random_uuid(), 'management.functions.read', 'List managed Postgres functions'),
    (gen_random_uuid(), 'management.functions.write', 'Create or replace managed Postgres functions'),
    (gen_random_uuid(), 'management.functions.drop', 'Drop managed Postgres functions')
ON CONFLICT (name) DO UPDATE
SET description = EXCLUDED.description,
    updated_at = now();
