CREATE SEQUENCE uw_Callback_jobrefs;
 
CREATE TABLE uw_Callback_jobs(uw_jobref int8 NOT NULL, uw_exitcode int8, 
                                uw_cmd text NOT NULL, uw_stdout bytea NOT NULL, 
                                uw_stderr bytea NOT NULL, 
                                uw_errrep text NOT NULL,
                                PRIMARY KEY (uw_jobRef)
);
  
CREATE TABLE uw_CallbackNotify_handles(uw_jobref int8 NOT NULL, 
                                          uw_channel int8 NOT NULL
);
   
CREATE TABLE uw_CallbackNotify2_handles(uw_jobref int8 NOT NULL, 
                                            uw_channel int8 NOT NULL
);
    
CREATE TABLE uw_Captcha_captchas(uw_id int8 NOT NULL, 
                                      uw_data bytea NOT NULL, 
                                      uw_answer text NOT NULL
);
     
CREATE SEQUENCE uw_Captcha_captchas_gen;
      
CREATE TABLE uw_Etab_events(uw_id int8 NOT NULL, 
                                   uw_start timestamp NOT NULL, 
                                   uw_stop timestamp NOT NULL, 
                                   uw_caption text NOT NULL, 
                                   uw_country text NOT NULL, 
                                   uw_city text NOT NULL, 
                                   uw_kind text NOT NULL, 
                                   uw_description text NOT NULL, 
                                   uw_sport text NOT NULL,PRIMARY KEY (uw_id)
                                                           
);
       
CREATE SEQUENCE uw_Etab_events_gen;
        
        
