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


CREATE TABLE CADMONITORES (
    ID            INTEGER NOT NULL,
    MONITOR       VARCHAR(50),
    IDWEB         VARCHAR(36),
    CONTROLE      VARCHAR(30)
);




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

ALTER TABLE CADMONITORES ADD CONSTRAINT PK_CADMONITORES PRIMARY KEY (ID);


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


SET TERM ^ ;



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



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


SET TERM ; ^



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









