CREATE TABLE TBREINF_TABELA06 (
    ID INTEGER NOT NULL,
    CODIGO VARCHAR(12) CHARACTER SET UTF8,
    DESCRICAO VARCHAR(250));
	
ALTER TABLE TBREINF_TABELA06
ADD CONSTRAINT PK_TBREINF_TABELA06
PRIMARY KEY (ID);

CREATE SEQUENCE GTBREINF_TABELA06;

CREATE TRIGGER TTBREINF_TABELA06_B0I FOR TBREINF_TABELA06
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.ID IS NULL) THEN
    NEW.ID = GEN_ID(GTBREINF_TABELA06,1);
END;