INSERT INTO profile (name, description, maincompany_id, agent)
SELECT 'Administrador', 'Perfil administrador por defecto', :maincompany_id, 0
WHERE NOT EXISTS (
    SELECT 1 FROM profile p WHERE p.maincompany_id = :maincompany_id AND p.name = 'Administrador'
);

INSERT INTO profile (name, description, maincompany_id, agent)
SELECT 'Operador', 'Perfil operador por defecto', :maincompany_id, 0
WHERE NOT EXISTS (
    SELECT 1 FROM profile p WHERE p.maincompany_id = :maincompany_id AND p.name = 'Operador'
);
