select fc_add_col('public.' || pg_tables.tablename, 'id_usr_ult_alt', 'integer')
from pg_tables
where
    pg_tables.schemaname = 'public';


select fc_add_col('public.' || pg_tables.tablename, 'dt_hr_ult_alt', 'timestamp')
from pg_tables
where
    pg_tables.schemaname = 'public';


select fc_add_col('public.' || pg_tables.tablename, 'id_usr_cad', 'integer')
from pg_tables
where
    pg_tables.schemaname = 'public';
    
select fc_add_col('public.' || pg_tables.tablename, 'dt_hr_cad', 'timestamp')
from pg_tables
where
    pg_tables.schemaname = 'public';


select fc_add_col('public.' || pg_tables.tablename, 'id_est_ult_alt', 'integer')
from pg_tables
where
    pg_tables.schemaname = 'public';

select fc_add_col('public.' || pg_tables.tablename, 'id_est_cad', 'integer')
from pg_tables
where
    pg_tables.schemaname = 'public';
    
select fc_add_col('public.' || pg_tables.tablename, 'comp_cad', 'varchar(100)')
from pg_tables
where
    pg_tables.schemaname = 'public';
    
select fc_add_col('public.' || pg_tables.tablename, 'comp_ult_alt', 'varchar(100)')
from pg_tables
where
    pg_tables.schemaname = 'public';