CREATE OR ALTER TRIGGER 'nome trigger' FOR 'tabela' ACTIVE BEFORE INSERT POSITION 0 AS BEGIN new.'campo' = gen_id("'nome generator'",1); END