/* create block tables */

select mmt_ods.fn_update_NA();

SET search_path TO  mmt_staging2;

drop table if exists mmt_staging2.FTDRY_TRS_H1_INT;

drop table if exists mmt_staging2.ftdry_trs_h1_block  ;

drop table if exists mmt_staging2.ftdry_trs_implement_block ;

drop table if exists mmt_staging2.ftdry_trs_spec_block;

drop table  if exists mmt_staging2.ftdry_trs_engine_rpm_block;

drop table if exists mmt_staging2.FTWET_TRS_H1_INT;

drop table  if exists mmt_staging2.FTWET_TRS_H1_Block;

drop table  if exists  mmt_staging2.FTWET_TRS_SPEC_Block;

drop table  if exists  mmt_staging2.FTWET_TRS_Engine_RPM_Block;

drop table  if exists  mmt_staging2.FTWET_TRS_Implement_Block;

drop table if exists mmt_staging2.FTHLG_TRS_H1_INT;

drop table  if exists  mmt_staging2.FTHLG_TRS_H1_Block;

drop table  if exists  mmt_staging2.FTHLG_TRS_SPEC_Block;

drop table  if exists  mmt_staging2.FTHLG_TRS_Engine_RPM_Block;
 
drop table  if exists  mmt_staging2.FTHLG_TRS_Trailer_Block;

drop table if exists mmt_staging2.FTHLG_SUM_Trac_H1_Block;

drop table if exists mmt_staging2.FTHLG_SUM_Trail_Type_Block;

drop table if exists mmt_staging2.FTHLG_SUM_Test_Condition_1_Block;

drop table if exists mmt_staging2.FTHLG_SUM_Test_Condition_2_Block;

drop table if exists mmt_staging2.FTHLG_SUM_Comments_By_Block;

drop table if exists mmt_staging2.FTWET_SUM_Trac_H1_Block;

drop table if exists mmt_staging2.FTWET_SUM_Implement_Block;

drop table if exists mmt_staging2.FTWET_SUM_Cage_Wheel_Block;
;
drop table if exists mmt_staging2.FTWET_SUM_Test_Condition_Block;

drop table if exists mmt_staging2.FTWET_SUM_Comments_By_Block;

drop table if exists mmt_staging2.FTDRY_SUM_Trac_H1_Block;

drop table if exists mmt_staging2.FTDRY_SUM_Implement_Block;

drop table if exists mmt_staging2.FTDRY_SUM_Test_Condition_1_Block;

drop table if exists mmt_staging2.FTDRY_SUM_Test_Condition_2_Block;

drop table if exists  mmt_staging2.FTDRY_SUM_Comments_By_Block;

drop table if exists mmt_staging2.stg_process_table_ftdry_sum;

drop table if exists mmt_staging2.stg_process_table_ftdry_trs;

drop table if exists mmt_staging2.stg_process_table_fthlg_sum;

drop table if exists mmt_staging2.stg_process_table_fthlg_trs;

drop table if exists mmt_staging2.stg_process_table_ftwet_sum;

drop table if exists mmt_staging2.stg_process_table_ftwet_trs;

drop table if exists mmt_staging2.stg_specific_table_ftdry_sum;

drop table if exists mmt_staging2.stg_specific_table_ftdry_trs;

drop table if exists mmt_staging2.stg_specific_table_fthlg_sum;

drop table if exists mmt_staging2.stg_specific_table_fthlg_trs;

drop table if exists mmt_staging2.stg_specific_table_ftwet_sum;

drop table if exists mmt_staging2.stg_specific_table_ftwet_trs;


/* TRS starts */


/* FTDRY_TRS starts */

create table mmt_staging2.FTDRY_TRS_H1_INT
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
column2 text,
column3 text,
column4 text,
column5 text,
column6 text,
column7 text,
create_time timestamp DEFAULT current_timestamp
);

create table mmt_staging2.FTDRY_TRS_H1_Block
(
syspk serial,
file_syspk int,
client_id int,
function_id int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Report_Reference_No text,
Objective_Of_Test text,
Background_of_Test text,
Job_Order_No text,       
Test_Location text,
Soil_Moisture_Content_ text,
Soil_Bulk_Density_g_cc  text,
Test_Engineer text,
Test_Operator text,
Date_of_Test text,
Report_Date text,
Season text,
Type_of_Soil text,
Soil_Cone_Index_kPa text,
Field_Condition text,
create_time timestamp DEFAULT current_timestamp
);



create table mmt_staging2.FTDRY_TRS_SPEC_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,
Tractor_Make text,
Tractor_Sr_No text,
Tractor_Engine_HP text,
FIP_Type text,
hour_Meter_Reading text,
Steering_Type text,
Transmission_Type text,
Wheel_Drive_Type_WD text,
EGR_Yes_No text,
Brake_Type text,
PTO_Type text,
Standard_PTO_Speed_RPM text,
EPTO_Speed_RPM text,
Front_Tyre_Make text,
Front_Tyre_Size text,
Front_Tyre_Pressure_psi text,
Rear_Tyre_Make text,                         
Rear_Tyre_Size text,
Rear_Tyre_Pressure_psi text,   
Tractor_Weight_kg_Front text,
Tractor_Weight_kg_Rear text,
Tractor_Weight_kg_Total text,
Ballasted_Tractor_Accessories text,
Mechanical_Ballast_Rear text,
Mechanical_Ballast_Rear_in_KG text,
Water_Ballast_Rear text,
Mechanical_Ballast_Front text,
Mechanical_Ballast_Front_in_Kg text,
Total_Ballast_Weight text,
create_time timestamp DEFAULT current_timestamp
);


create  table  mmt_staging2.FTDRY_TRS_Engine_RPM_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_model text,
Tractor_make text,
Low_Idle text,
High_Idle text,
Rated_RPM text,
Engine_to_PTO_Ratio_540_PTO text,
Engine_to_PTO_Ratio_540E_PTO text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTDRY_TRS_Implement_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Name_of_Implement text,
Type_of_Implement text,
Make_of_Implement text,
No_of_bottoms_Tyne_Disc_Blade text,
Cutting_Width_m text,
Implement_Weight_Kg text,
Hitch_Category text,
Span_cm_For_Mounted_Implement text,
Mast_Height_cm_For_Mounted_Implement text,
FDPD_TDC_Mar15_008 text,
create_time timestamp DEFAULT current_timestamp
);

/* FTDRY_TRS ends */


/* FTWET_TRS starts */
create table mmt_staging2.FTWET_TRS_H1_INT
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
column2 text,
column3 text,
column4 text,
column5 text,
column6 text,
column7 text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTWET_TRS_H1_Block
(
syspk serial,
file_syspk int,
client_id int,
function_id int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Report_Reference_No text,
Objective_Of_Test text,
Background_of_Test text,
Job_Order_No text,       
Test_Location text,
Soil_Moisture_Content_ text,
Soil_Bulk_Density_g_cc  text,
Test_Engineer text,
Test_Operator text,
Date_of_Test text,
Report_Date text,
Season text,
Type_of_Soil text,
Soil_Cone_Index_kPa text,
Field_Condition text,
create_time timestamp DEFAULT current_timestamp
);

create table mmt_staging2.FTWET_TRS_SPEC_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,
Tractor_Make text,
Tractor_Sr_No text,
Tractor_Engine_HP text,
FIP_Type text,
hour_Meter_Reading text,
Steering_Type text,
Transmission_Type text,
Wheel_Drive_Type_WD text,
EGR_Yes_No text,
Brake_Type text,
PTO_Type text,
Standard_PTO_Speed_RPM text,
EPTO_Speed_RPM text,
Front_Tyre_Make text,
Front_Tyre_Size text,
Front_Tyre_Pressure_psi text,
Rear_Tyre_Make text,                         
Rear_Tyre_Size text,
Rear_Tyre_Pressure_psi text,   
Tractor_Weight_kg_Front text,
Tractor_Weight_kg_Rear text,
Tractor_Weight_kg_Total text,
Ballasted_Tractor_Accessories text,
Mechanical_Ballast_Rear_in_KG text,
Water_Ballast_Rear text,
Mechanical_Ballast_Front text,
Mechanical_Ballast_Front_in_Kg text,
Total_Ballast_Weight text,
create_time timestamp DEFAULT current_timestamp
);


create  table  mmt_staging2.FTWET_TRS_Engine_RPM_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_model text,
Tractor_make text,
Low_Idle text,
High_Idle text,
Rated_RPM text,
Engine_to_PTO_Ratio_540_PTO text,
Engine_to_PTO_Ratio_540E_PTO text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTWET_TRS_Implement_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Name_of_Implement text,
Type_of_Implement text,
Make_of_Implement text,
No_of_bottoms_Tyne_Disc_Blade text,
Cutting_Width_m text,
Implement_Weight_Kg text,
Hitch_Category text,
Span_cm_For_Mounted_Implement text,
Mast_Height_cm_For_Mounted_Implement text,
Type_of_Cage_Wheel_Half_Cage_wheel_Full_Cage_Wheel text,
Cage_Wheel_Width_mm text,
Cage_wheel_Weight text,
Cage_Wheel_inner_Outer_Ring_Dia_mm text,
Cage_Wheel_Center_Ring_Dia_mm text,
Distance_between_RHS_LHS_cage_wheel_Inner_Ring_mm_For_Full_Cage_wheel text,
No_of_angles_on_cage_wheel text,
No_of_days_of_water_logging text,
Depth_of_water_mm text,
FDPD_TDC_Mar15_008 text,
create_time timestamp DEFAULT current_timestamp
);

/* FTWET_TRS ends */


/*FTHLG_TRS starts*/

create table mmt_staging2.FTHLG_TRS_H1_INT
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
column2 text,
column3 text,
column4 text,
column5 text,
column6 text,
column7 text,
create_time timestamp DEFAULT current_timestamp
);

 
create table mmt_staging2.FTHLG_TRS_H1_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Report_Reference_No text,
Objective_Of_Test text,
Background_of_Test text,
Job_Order_No text,       
Test_Location text,
Gradient_Slope_1_Degree text,
Gradient_Slope_2_Degree text,
Tractor_Hitch_Type text,
Test_Engineer text,
Test_Operator text,
Date_of_Test text,
Report_Date text,
Type_of_Road text,
Tractor_Hitch_Height_from_Ground_mm text,
Tractor_Rear_Wheel_Center_to_Hitch_Point_Center_Distance_mm text,
create_time timestamp DEFAULT current_timestamp
);



create table mmt_staging2.FTHLG_TRS_SPEC_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,
Tractor_Make text,
Tractor_Sr_No text,
Tractor_Engine_HP text,
FIP_Type text,
Hour_Meter_Reading text,
Steering_Type text,
Transmission_Type text,
Wheel_Drive_Type_WD text,
EGR_Yes_No text,
Brake_Type text,
PTO_Type text,
Standard_PTO_Speed_RPM text,
EPTO_Speed_RPM text,
Front_Tyre_Make text,
Front_Tyre_Size text,
Front_Tyre_Pressure_psi text,
Rear_Tyre_Make text,                       
Rear_Tyre_Size text,
Rear_Tyre_Pressure_psi text,
Tractor_Weight_kg_Front text,
Tractor_Weight_kg_Rear text,
Tractor_Weight_kg_Total text,
Ballasted_Tractor_Accessories text,
Mechanical_Ballast_Rear text,
Mechanical_Ballast_Rear_in_kg text,
Water_Ballast_Rear_75 text,
Mechanical_Ballast_Front_in_kg text,
Mechanical_Ballast_Front text,
Total_Ballast_Weight text,
create_time timestamp DEFAULT current_timestamp
);


create  table  mmt_staging2.FTHLG_TRS_Engine_RPM_Block
(
syspk serial,
file_syspk int,
client_id int,
function_id int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_model text,
Tractor_make text,
Low_Idle text,
High_Idle text,
Rated_RPM text,
Engine_to_PTO_Ratio_540_PTO text,
Engine_to_PTO_Ratio_540E_PTO text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTHLG_TRS_Trailer_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Type_Of_Trailer text,
No_Of_Axle text,
No_Of_Wheels text,
Trailer_hitch_Height_above_ground_level_mm text,
Make_model_of_trailer text,
Trailer_platform_length_mm text,
Trailer_platform_Width_mm text,
Trailer_platform_Height_mm text,
Tire_size text,
Inflation_pressure_psi text,
Track_width_of_trailer_mm text,
Horizontal_distance_of_hitch_point_from_trailer_front_face_mm text,
Tractor_Rear_Wheel_Center_to_Hitch_Point_Center_Distance_mm text,
Distance_from_Trailerfront_axle_distance_from_hitch_point_mm text,
Distance_from_tractor_rear_wheel_center_to_tractor_rear_wheel_center_mm text,
Trailer_empty_weight_Kg text,
Trailer_Gross_Weight_Kg text,
FDPD_TDC_Mar15_009 text,
create_time timestamp DEFAULT current_timestamp
);

/*FTHLG_TRS ends*/


/* TRS ends*/



/* SUMMARY starts*/


/*FTDRY_SUM  starts*/

create table mmt_staging2.FTDRY_SUM_Trac_H1_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,	
Tractor_Make text,	
Tractor_Engine_HP text,
Rated_RPM text,	
Transmission_Type text,
Wheel_Drive_Type text,
FIP_Type text,	
Steering_Type text,	
Tractor_Weight_kg_Front text,
Tractor_Weight_kg_Rear text,
Tractor_Weight_kg_Total text,
create_time timestamp DEFAULT current_timestamp
);



create table mmt_staging2.FTDRY_SUM_Implement_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Make_of_Implement text,
Implement_Type text,
Implement_Size text,
Hitch_Category text,
Implement_Weight text,	
Soil_Type text,
Moisture_Content text,	
Bulk_Density_g_cc text,
Soil_Cone_index text,
Field_Condition	text,
Season text,
create_time timestamp DEFAULT current_timestamp
);

create table mmt_staging2.FTDRY_SUM_Test_Condition_1_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Test_Condition text,
Test_Date text,
Tractor_Model text,
Engine_RPM_set text,
PTO_RPM_set text,
Gear_Used text,
Nominal_Speed_KMPH text,
Engine_RPM_Drop_on_straight text,
Engine_RPM_Drop_on_turn text,
Depth_of_cut_cm text,
No_load_speed_kmph text,
On_load_speed_kmph text,
wheel_slippage_ text,
Fuel_consumption_lit_hr text,
Area_covered_acr_hr text,
Fuel_consumption_lit_Acr text,
M_M_Performance_in_compared_to_respective_competitor_tractors text,
Fuel_consumption_lit_hr_2 text,
Area_covered_acr_hr_2 text,
Fuel_consumption_lit_Acr_2 text,
Trail_Observations text,
Engine_Smoke_on_Load text,
Engine_acceleration_smoke text,
Draft_Response text,
Tractor_Steer_ability text,
Tractor_braking_performance text,
Front_Visibility text,
Implement_Accessibility text,
Front_Wheel_dragging_at_turning text,
Front_end_lifting_during_operation text,
RPM_Recovery_Time text,
Engine_Vibration text,
Engine_Sound text,
Implement_Lifting_Lowering_response text,
Pulverization_Quality text,
Pulverization_Index text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTDRY_SUM_Test_Condition_2_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Test_Condition text,
Test_Date text,
Tractor_Model text,
Engine_RPM_set text,
PTO_RPM_set text,
Gear_Used text,
Nominal_Speed_KMPH text,
Engine_RPM_Drop_on_straight text,
Engine_RPM_Drop_on_turn text,
Depth_of_cut_cm text,
No_load_speed_kmph text,
On_load_speed_kmph text,
wheel_slippage_ text,
Fuel_consumption_lit_hr text,
Area_covered_acr_hr text,
Fuel_consumption_lit_Acr text,
M_M_Performance_in_compared_to_respective_competitor_tractors text,
Fuel_consumption_lit_hr_2 text,
Area_covered_acr_hr_2 text,
Fuel_consumption_lit_Acr_2 text,
Trail_Observations text,
Engine_Smoke_on_Load text,
Engine_acceleration_smoke text,
Draft_Response text,
Tractor_Steer_ability text,
Tractor_braking_performance text,
Front_Visibility text,
Implement_Accessibility text,
Front_Wheel_dragging_at_turning text,
Front_end_lifting_during_operation text,
RPM_Recovery_Time text,
Engine_Vibration text,
Engine_Sound text,
Implement_Lifting_Lowering_response text,
Pulverization_Quality text,
Pulverization_Index text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTDRY_SUM_Comments_By_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_model text,
Test_Engineer_Comments_1 text,
Test_Manager_Comments_1 text,
Test_Engineer_Comments_2 text,
Test_Manager_Comments_2 text,
create_time timestamp DEFAULT current_timestamp
);
 
/*FTDRY_SUM ends */


/* FTWET_SUM starts */

create table mmt_staging2.FTWET_SUM_Trac_H1_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,	
Tractor_Make text,	
Tractor_Engine_HP text,
Rated_RPM text,	
Transmission_Type text,
Wheel_Drive_Type text,
FIP_Type text,	
Steering_Type text,	
Tractor_Weight_kg_Front text,
Tractor_Weight_kg_Rear text,
Tractor_Weight_kg_Total text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTWET_SUM_Implement_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Make_of_Implement text,
Implement_Type text,
Implement_Size text,
Hitch_Category text,
Implement_Weight text,	
Soil_Type text,
Moisture_Content text,	
Bulk_Density_g_cc text,
Soil_Cone_index text,
Field_Condition	text,
Season text,
create_time timestamp DEFAULT current_timestamp
);

create table mmt_staging2.FTWET_SUM_Cage_Wheel_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Type_of_Cage_Wheel text,
Cage_Wheel_Width_mm text,
Cage_wheel_Weight text,
Cage_Wheel_inner_Outer_Ring_Dia_mm  text,
Cage_Wheel_Center_Ring_Dia_mm  text,
Distance_between_RHS_LHS_cage_wheel_Inner_Ring_mm  text,
No_of_angles_on_cage_wheel  text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTWET_SUM_Test_Condition_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Test_Condition text,
Test_Date text,
Tractor_Model text,
Engine_RPM_set text,
PTO_RPM_set text,
Gear_Used text,
Nominal_Speed_KMPH text,
Engine_RPM_Drop_on_straight_1st_Pass text,
Engine_RPM_Drop_on_straight_2nd_Pass text,
Engine_RPM_Drop_on_straight_3rd_Pass text,
Engine_RPM_Drop_on_turn_1st_Pass text,
Engine_RPM_Drop_on_turn_2nd_Pass text,
Engine_RPM_Drop_on_turn_3rd_Pass text,
No_of_passes text,
Avg_Depth_of_cut_cm text,
Fuel_consumption_lit_hr text,
Area_covered_acr_hr text,
Fuel_consumption_lit_Acr text,
M_M_Performance_in_compared_to_respective_competitor_tractors text,
Fuel_consumption_lit_hr_2 text,
Area_covered_acr_hr_2 text,
Fuel_consumption_lit_Acr_2 text,
Trail_Observations text,
Engine_Smoke_on_Load text,
Engine_acceleration_smoke text,
Draft_Response text,
Tractor_Steer_ability text,
Tractor_braking_performance text,
Front_Visibility text,
Implement_Accessibility text,
Front_Wheel_dragging_at_turning text,
Front_end_lifting_during_operation text,
RPM_Recovery_Time text,
Engine_Vibration text,
Engine_Sound text,
Implement_Lifting_Lowering_response  text,
Pulverization_Quality text,
Pulverization_Index text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTWET_SUM_Comments_By_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,
Test_Manager_Comments text,
create_time timestamp DEFAULT current_timestamp
);

/*FTWET_SUM ends */


/*FTHLG_SUM starts*/

create table  mmt_staging2.FTHLG_SUM_Trac_H1_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
tractor_model text,
tractor_make text,
tractor_engine_hp text,
rated_rpm text,
transmission_type text,
wheel_drive_type text,
fip_type text,
steering_type text,
tractor_weight_kg_front text,
tractor_weight_kg_rear text,
tractor_weight_kg_total text,
create_time timestamp DEFAULT current_timestamp
);



create table mmt_staging2.FTHLG_SUM_Trail_Type_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Trailer_Type text,
Tire_size_and_inflation_pressure_psi text,
No_Of_Axle text,
No_Of_Wheels text,	
Trailer_Gross_Weight_Kg text,
Tractor_Rear_Wheel_Center_to_Hitch_Point_Center_Distance_mm	text,
Tractor_Hitch_Height_from_Ground_mm	text,
Trailer_hitch_Height_above_ground_level_mm text,
Gradient_Slope_1_Degree	text,
Gradient_Slope_2_degree text,
Tractor_Hitch_Type text
);

create table mmt_staging2.FTHLG_SUM_Test_Condition_1_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Test_Condition text,
Test_Date text,
Tractor_Model text,
Fuel_consumption_Ltr_hr text,
Mileage_Km_Ltr text,
Average_speed_of_travel_kmph text,
Total_distance_travelled_km text,
Gear_used_on_Straight_Road text,
Straight_road_RPM_Drop text,
Gear_used_on_Up_Slope_1 text,
Up_Slope_RPM_Drop_1 text,
Gear_used_on_Up_Slope_2 text,
Up_Slope_RPM_Drop_2 text,
Gear_used_on_Down_Slope text,
Down_Slope_RPM_Shoot_up text,
M_M_Performance_compared_to_respective_competitor_tractors_is_better_and_is_poor_than_competitor text,
Fuel_consumption_lit_hr_2 text,
Mileage_Km_Ltr_2 text,
M_M_Performance_in_compared_to_respective_competitor_tractors text,
Fuel_consumption_lit_hr_3 text,
Mileage_Km_Ltr_3 text,
Engine_Smoke_on_Load text,
Engine_acceleration_smoke text,
Range_Gear_Shifting text,
Speed_Gear_Shifting text,
Tractor_Steer_ability text,
Tractor_braking_performance text,
Front_Visibility text,
Implement_Accessibility text,
Front_end_lifting_during_operation text,
RPM_Recovery_Time text,
Engine_Vibration text,
Engine_Sound text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTHLG_SUM_Test_Condition_2_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Test_Condition  text,
Test_Date  text,
Tractor_Model  text,
Fuel_consumption_Ltr_hr  text,
Mileage_Km_Ltr  text,
Average_speed_of_travel_kmph  text,
Total_distance_travelled_km  text,
Gear_used_on_Straight_Road  text,
Straight_road_RPM_Drop  text,
Gear_used_on_Up_Slope_1  text,
Up_Slope_RPM_Drop_1  text,
Gear_used_on_Up_Slope_2  text,
Up_Slope_RPM_Drop_2  text,
Gear_used_on_Down_Slope  text,
Down_Slope_RPM_Shoot_up  text,
M_M_Performance_compared_to_respective_competitor_tractors_is_better_and_is_poor_than_competitor text,
Fuel_consumption_lit_hr_2  text,
Mileage_Km_Ltr_2  text,
M_M_Performance_in_compared_to_respective_competitor_tractors text,
Fuel_consumption_lit_hr_3  text,
Mileage_Km_Ltr_3  text,
Engine_Smoke_on_Load  text,
Engine_acceleration_smoke  text,
Range_Gear_Shifting  text,
Speed_Gear_Shifting  text,
Tractor_Steer_ability  text,
Tractor_braking_performance  text,
Front_Visibility  text,
Implement_Accessibility  text,
Front_end_lifting_during_operation  text,
RPM_Recovery_Time  text,
Engine_Vibration  text,
Engine_Sound  text,
create_time timestamp DEFAULT current_timestamp
);


create table mmt_staging2.FTHLG_SUM_Comments_By_Block
(
syspk serial,
client_id int,
function_id int,
file_syspk int,
file_format text,
sheet_mnemonic text,
dummy_f text,
Tractor_Model text,
Test_Engineer_Comments_1 text,
Test_Manager_Comments_1 text,
Test_Engineer_Comments_2 text,
Test_Manager_Comments_2 text,
create_time timestamp DEFAULT current_timestamp
);



create TABLE mmt_staging2.stg_process_table_ftdry_trs (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 NULL,
create_time timestamp DEFAULT current_timestamp,
rank int4 NULL,
rank_tag text null
);


CREATE TABLE mmt_staging2.stg_specific_table_ftdry_trs (
generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 null,
create_time timestamp DEFAULT current_timestamp
);


create TABLE mmt_staging2.stg_process_table_ftwet_trs (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 NULL,
create_time timestamp DEFAULT current_timestamp,
rank int4 NULL,
rank_tag text null
);


CREATE TABLE mmt_staging2.stg_specific_table_ftwet_trs (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 null,
create_time timestamp DEFAULT current_timestamp
);


create TABLE mmt_staging2.stg_process_table_fthlg_trs (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 NULL,
create_time timestamp DEFAULT current_timestamp,
rank int4 NULL,
rank_tag text null
);


CREATE TABLE mmt_staging2.stg_specific_table_fthlg_trs (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 null,
create_time timestamp DEFAULT current_timestamp
);


create TABLE mmt_staging2.stg_process_table_ftdry_sum (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 NULL,
create_time timestamp DEFAULT current_timestamp,
rank int4 NULL,
rank_tag text null
);


CREATE TABLE mmt_staging2.stg_specific_table_ftdry_sum (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 null,
create_time timestamp DEFAULT current_timestamp
);



create TABLE mmt_staging2.stg_process_table_ftwet_sum (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 NULL,
create_time timestamp DEFAULT current_timestamp,
rank int4 NULL,
rank_tag text null
);


CREATE TABLE mmt_staging2.stg_specific_table_ftwet_sum (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 null,
create_time timestamp DEFAULT current_timestamp
);


create TABLE mmt_staging2.stg_process_table_fthlg_sum (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 NULL,
create_time timestamp DEFAULT current_timestamp,
rank int4 NULL,
rank_tag text null
);


CREATE TABLE mmt_staging2.stg_specific_table_fthlg_sum (
	generic_syspk int,
file_syspk bigint,
file_name varchar(1024) NULL,
file_date date NULL,
file_format varchar(1024) NULL,
sheet_number int4 NULL,
sheet_name varchar(1024) NULL,
sheet_format text,
sheet_mnemonic varchar(1024) NULL,
row_number int4 NULL,
file_creation_date timestamp NULL,
column1 varchar(1024) NULL,
column2 varchar(1024) NULL,
column3 varchar(1024) NULL,
column4 varchar(1024) NULL,
column5 varchar(1024) NULL,
column6 varchar(1024) NULL,
column7 varchar(1024) NULL,
column8 varchar(1024) NULL,
column9 varchar(1024) NULL,
column10 varchar(1024) NULL,
column11 varchar(1024) NULL,
column12 varchar(1024) NULL,
column13 varchar(1024) NULL,
column14 varchar(1024) NULL,
column15 varchar(1024) NULL,
column16 varchar(1024) NULL,
column17 varchar(1024) NULL,
column18 varchar(1024) NULL,
column19 varchar(1024) NULL,
column20 varchar(1024) NULL,
column21 varchar(1024) NULL,
column22 varchar(1024) NULL,
column23 varchar(1024) NULL,
column24 varchar(1024) NULL,
column25 varchar(1024) NULL,
column26 varchar(1024) NULL,
column27 varchar(1024) NULL,
column28 varchar(1024) NULL,
column29 varchar(1024) NULL,
column30 varchar(1024) NULL,
column31 varchar(1024) NULL,
column32 varchar(1024) NULL,
column33 varchar(1024) NULL,
column34 varchar(1024) NULL,
column35 varchar(1024) NULL,
column36 varchar(1024) NULL,
column37 varchar(1024) NULL,
column38 varchar(1024) NULL,
column39 varchar(1024) NULL,
column40 varchar(1024) NULL,
column41 varchar(1024) NULL,
column42 varchar(1024) NULL,
column43 varchar(1024) NULL,
column44 varchar(1024) NULL,
column45 varchar(1024) NULL,
column46 varchar(1024) NULL,
column47 varchar(1024) NULL,
column48 varchar(1024) NULL,
column49 varchar(1024) NULL,
column50 varchar(1024) NULL,
column51 varchar(1024) NULL,
column52 varchar(1024) NULL,
column53 varchar(1024) NULL,
is_rownumber_fetched int4 null,
create_time timestamp DEFAULT current_timestamp
);




