/******************************************************************************/
/***               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_STATUSINSERTPRODUTOTRAY;


CREATE TABLE STATUSINSERTPRODUTOTRAY (
    ID           INTEGER NOT NULL,
    NOMESTATUS   VARCHAR(200)
);




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

ALTER TABLE STATUSINSERTPRODUTOTRAY ADD CONSTRAINT PK_STATUSINSERTPRODUTOTRAY PRIMARY KEY (ID);


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


SET TERM ^ ;



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



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


SET TERM ; ^



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





