
           /******************************************************************************/
/***               Generated by IBExpert 16/11/2023 08:55:51                ***/
/******************************************************************************/

/******************************************************************************/
/***      Following SET SQL DIALECT is just for the Database Comparer       ***/
/******************************************************************************/
SET SQL DIALECT 3;



/******************************************************************************/
/***                                 Tables                                 ***/
/******************************************************************************/

CREATE GENERATOR PQ_PESSOASTRAYTEMP;


CREATE TABLE PESSOASTRAYTEMP (
    ID           INTEGER NOT NULL,
    IDPESSOATRAY INTEGER,
    NOME         VARCHAR(200),
    CPF          VARCHAR(20),
    RG           VARCHAR(20),
    CNPJ         VARCHAR(20),
    IE           VARCHAR(20)
);




/******************************************************************************/
/***                              Primary Keys                              ***/
/******************************************************************************/

ALTER TABLE PESSOASTRAYTEMP ADD CONSTRAINT PK_PESSOASTRAYTEMP PRIMARY KEY (ID);


/******************************************************************************/
/***                                Triggers                                ***/
/******************************************************************************/


SET TERM ^ ;



/******************************************************************************/
/***                          Triggers for tables                           ***/
/******************************************************************************/



/* Trigger: INSPESSOASTRAYTEMP */
CREATE OR ALTER TRIGGER INSPESSOASTRAYTEMP FOR PESSOASTRAYTEMP
ACTIVE BEFORE INSERT POSITION 0
as 
begin 
   new.ID=gen_id(PQ_PESSOASTRAYTEMP,1);
end
^


SET TERM ; ^



/******************************************************************************/
/***                               Privileges                               ***/
/******************************************************************************/



