CREATE OR ALTER trigger ttbcolaborador_credito_b01i for tbcolaborador_credito
active before insert position 0
as
begin
  if (new.id is null or new.id = 0) then
    new.id = gen_id(gtbcolaborador_credito,1);
end;

