INSERT INTO carrier (name, description, creationdate, maincompany_id, active)
SELECT 'Aéreo', 'Carrier por defecto aéreo', NOW(), :maincompany_id, 1
WHERE NOT EXISTS (
    SELECT 1 FROM carrier c WHERE c.maincompany_id = :maincompany_id AND c.name = 'Aéreo'
);

INSERT INTO carrier (name, description, creationdate, maincompany_id, active)
SELECT 'Marítimo', 'Carrier por defecto marítimo', NOW(), :maincompany_id, 1
WHERE NOT EXISTS (
    SELECT 1 FROM carrier c WHERE c.maincompany_id = :maincompany_id AND c.name = 'Marítimo'
);
