CREATE OR ALTER trigger payments_bi for payments active before insert position 0 AS BEGIN  if (New.uid is null) then  New.uid = Gen_Id("uid_gen", 1); if (new.tim is null) then new.tim = substring (current_time from 1 for 8);  if (new.dat is null) then new.dat = current_date; END;`
