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


CREATE TABLE MOSTRARMONITORES(
    ID             INTEGER NOT NULL,
    IDMONITOR      INTEGER,
    IDDEPARTPADRAO INTEGER,
    DATA           DATE,
    HORA           TIME,
    DATAALTERACAO  DATE,
    HORAALTERACAO  TIME,
    CONTROLE       VARCHAR(30)
);




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

ALTER TABLE MOSTRARMONITORES ADD CONSTRAINT PK_MOSTRARMONITORES PRIMARY KEY (ID);


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


SET TERM ^ ;



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



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


SET TERM ; ^



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









