CREATE TABLE TBTELEGRA_CONF (
    ID INTEGER NOT NULL,
    URL VARCHAR(200),
    "KEY" VARCHAR(200));

ALTER TABLE TBTELEGRA_CONF
ADD CONSTRAINT PK_TBTELEGRA_CONF
PRIMARY KEY (ID);

CREATE SEQUENCE GTBTELEGRA_CONF;

SET TERM ^ ;

create trigger ttbtelegra_conf_b01i for tbtelegra_conf
active before insert position 0
as
begin
  if (new.id is null) then
    new.id = gen_id(gtbtelegra_conf,1);
end
^

SET TERM ; ^

