This commit is contained in:
dheepa
2021-08-09 11:14:23 +00:00
parent a0d3257be0
commit f3cf5e1d2d
89 changed files with 4769 additions and 1508 deletions

View File

@@ -108,6 +108,7 @@ CREATE TABLE fw_ods.fw_ods (
name_of_implement fw_text NULL,
type_of_implement fw_text NULL,
implement_weight_kg fw_num_dimid NULL,
platform fw_text NULL,
tyre_size fw_text NULL,
tyre_ply_rating fw_num_dimid NULL,
tyre_pressure_kg_per_cm2 fw_num_metric NULL,
@@ -204,8 +205,9 @@ CREATE TABLE fw_ods.fw_ods_detailed (
syspk serial NOT NULL,
client_id fw_num_dimid NOT NULL,
function_id fw_num_dimid NOT NULL,
test_file_mnemonic fw_num_dimid NULL,
test_sheet_mnemonic fw_num_dimid NULL,
test_file_mnemonic fw_text NULL NULL,
test_sheet_mnemonic fw_text NULL NULL,
test_name fw_text NULL,
test_file_id fw_num_dimid NULL,
test_file_name fw_text NULL,
test_instance_id fw_num_dimid NULL,
@@ -214,7 +216,8 @@ CREATE TABLE fw_ods.fw_ods_detailed (
tractor_engine_hp fw_num_dimid NULL,
wheel_drive_type fw_text NULL,
"configuration" fw_text NULL,
test_insance_tractor_id fw_num_dimid NULL,
platform fw_text NULL,
test_instance_tractor_id fw_num_dimid NULL,
season fw_text NULL,
test_date fw_date NULL,
test_date_year fw_num_dimid NULL,
@@ -265,6 +268,7 @@ create table fw_ods.fw_ods_tractor_specifications (
DROP TABLE if exists fw_ods.fw_ods_comments;
CREATE TABLE fw_ods.fw_ods_comments (
syspk bigserial NOT NULL,
client_id fw_ods."fw_num_dimid" NULL,
@@ -295,10 +299,10 @@ CREATE TABLE fw_ods.fw_ods_comments (
tractor_engine_hp int4 NULL,
name_of_implement fw_ods."fw_text" NULL,
type_of_implement fw_ods."fw_text" NULL,
season fw_ods."fw_text" NULL
season fw_ods."fw_text" NULL,
"configuration" fw_ods."fw_text" NULL
);
-- fw_ods.fw_ods_drawbar_performance definition
-- Drop table
@@ -320,6 +324,7 @@ CREATE TABLE fw_ods.fw_ods_drawbar_performance (
tractor_engine_hp fw_ods."fw_num_dimid" NULL,
wheel_drive_type fw_ods."fw_text" NULL,
"configuration" fw_ods."fw_text" NULL,
platform fw_text NULL,
test_instance_tractor_id fw_ods."fw_num_dimid" NULL,
season fw_ods."fw_text" NULL,
test_date fw_ods."fw_date" NULL,
@@ -389,38 +394,129 @@ CREATE TABLE fw_ods.fw_ods_drawbar_performance (
-- Drop table
DROP TABLE if exist fw_ods.fw_ods_observations;
drop table if exists fw_ods.fw_ods_observations;
CREATE TABLE fw_ods.fw_ods_observations (
syspk bigserial NOT NULL,
client_id fw_ods."fw_num_dimid" NULL,
function_id fw_ods."fw_num_dimid" NULL,
test_file_mnemonic fw_ods."fw_text" NULL,
test_sheet_mnemonic fw_ods."fw_text" NULL,
test_file_id fw_ods."fw_num_dimid" NULL,
test_file_name fw_ods."fw_text" NULL,
test_iteration_number fw_ods."fw_num_dimid" NULL,
platform fw_ods."fw_text" NULL,
benchmark_yn fw_ods."fw_text" NULL,
tractor_make fw_ods."fw_text" NULL,
tractor_model fw_ods."fw_text" NULL,
tractor_engine_hp fw_ods."fw_num_dimid" NULL,
wheel_drive_type fw_ods."fw_text" NULL,
name_of_implement fw_ods."fw_text" NULL,
type_of_implement fw_ods."fw_text" NULL,
season fw_ods."fw_text" NULL,
parameters fw_ods."fw_text" NULL,
"sequence" fw_ods."fw_num_dimid" NULL,
tractor_model1 fw_ods."fw_text" NULL,
tractor_model2 fw_ods."fw_text" NULL,
tractor_model3 fw_ods."fw_text" NULL,
tractor_model4 fw_ods."fw_text" NULL,
tractor_model5 fw_ods."fw_text" NULL,
display_yn fw_ods."fw_text" NULL,
created_by fw_ods."fw_text" NULL,
updated_by fw_ods."fw_text" NULL,
create_timestamp fw_ods."fw_timestamp" NULL,
update_timestamp fw_ods."fw_timestamp" NULL,
old_test_file_name fw_ods."fw_text" NULL
syspk bigserial NOT NULL,
client_id fw_ods.fw_num_dimid NULL,
function_id fw_ods.fw_num_dimid NULL,
test_file_mnemonic fw_ods.fw_text NULL,
test_sheet_mnemonic fw_ods.fw_text NULL,
test_file_id fw_ods.fw_num_dimid NULL,
test_file_name fw_ods.fw_text NULL,
test_iteration_number fw_ods.fw_num_dimid NULL,
platform fw_ods.fw_text NULL,
benchmark_yn fw_ods.fw_text NULL,
tractor_make fw_ods.fw_text NULL,
tractor_model fw_ods.fw_text NULL,
tractor_engine_hp fw_ods.fw_num_dimid NULL,
wheel_drive_type fw_ods.fw_text NULL,
name_of_implement fw_ods.fw_text NULL,
type_of_implement fw_ods.fw_text NULL,
season fw_ods.fw_text NULL,
"configuration" fw_ods.fw_text NULL,
engine_smoke_on_load fw_ods.fw_text NULL,
engine_acceleration_smoke fw_ods.fw_text NULL,
range_gear_shifting fw_ods.fw_text NULL,
speed_gear_shifting fw_ods.fw_text NULL,
draft_response fw_ods.fw_text NULL,
tractor_steer_ability fw_ods.fw_text NULL,
tractor_braking_performance fw_ods.fw_text NULL,
front_visibility fw_ods.fw_text NULL,
implement_accessibility fw_ods.fw_text NULL,
front_wheel_dragging_at_turning fw_ods.fw_text NULL,
front_end_lifting_during_operation fw_ods.fw_text NULL,
rpm_recovery_time fw_ods.fw_text NULL,
engine_vibration fw_ods.fw_text NULL,
engine_sound fw_ods.fw_text NULL,
implement_lifing_lowering_response fw_ods.fw_text NULL,
pulverization_quality fw_ods.fw_text NULL,
pulverization_index fw_ods.fw_text NULL,
created_by fw_ods.fw_text NULL DEFAULT CURRENT_USER,
create_timestamp fw_ods.fw_timestamp NULL DEFAULT now(),
updated_by fw_ods.fw_text NULL ,
update_timestamp fw_ods.fw_timestamp null
);
-- fw_ods.tractor_info definition
DROP table if exists fw_ods.tractor_info;
CREATE TABLE fw_ods.tractor_info (
"#" int4 NULL,
test_file_mnemonic varchar(7) NULL,
tractor_make varchar(11) NULL,
tractor_model varchar(56) NULL,
platform varchar(14) NULL,
tractor_engine_hp int4 NULL,
wheel_drive_type varchar(6) NULL,
"configuration" varchar(12) NULL
);
-- fw_ods.fw_ods_misnomer definition
DROP table if exists fw_ods.fw_ods_misnomer;
CREATE TABLE fw_ods.fw_ods_misnomer (
syspk int4 NOT NULL,
client_id int4 NOT NULL,
function_id int4 NOT NULL,
column_name text NULL,
source_value text NULL,
target_value text NULL,
created_by text NULL,
create_timestamp timestamp NULL,
updated_by text NULL,
update_timestamp timestamp NULL,
table_name text NULL
);
-- FTWET / FTDRY: field_perfm_
alter table fw_ods.fw_ods add column implement_size fw_ods.fw_text NULL;
alter table fw_ods.fw_ods add column hitch_category fw_ods.fw_text NULL;
alter table fw_ods.fw_ods add column type_of_cage_wheel fw_ods.fw_text NULL;
alter table fw_ods.fw_ods add column cage_wheel_width_mm fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column cage_wheel_weight fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column cage_wheel_inner_and_outer_ring_dia_mm fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column cage_wheel_center_ring_dia_mm fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column dist_between_rhs_and_lhs_cage_wheel_inner_ring_mm fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column no_of_angles_on_cage_wheel fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column soil_moisture_content_pct fw_ods.fw_text NULL;
alter table fw_ods.fw_ods add column soil_bulk_density_g_per_cc fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column soil_cone_index fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column field_condition fw_ods.fw_text NULL;
-- FTHLG
alter table fw_ods.fw_ods add column tire_size_and_inflation_pressure_psi fw_ods.fw_text NULL;
alter table fw_ods.fw_ods add column no_of_axle fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column no_of_wheels fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column trailer_gross_weight_kg fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column tractor_rwc_to_hitch_point_center_dist_mm fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column trailer_hitch_height_above_ground_level_mm fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column gradient_slope_1_degree fw_ods.fw_num_dimid NULL;
alter table fw_ods.fw_ods add column gradient_slope_2_degree fw_ods.fw_num_dimid NULL;
-- Percentage
alter table fw_ods.fw_ods add column fuel_consumption_var_lit_per_hr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column mileage_var_km_per_ltr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column area_covered_var_acr_per_hr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column fuel_consumption_var_lit_per_acr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column fuel_consumption_var_pct_lit_per_hr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column mileage_var_pct_km_per_ltr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column area_covered_var_pct_acr_per_hr fw_ods.fw_num_metric NULL;
alter table fw_ods.fw_ods add column fuel_consumption_var_pct_lit_per_acr fw_ods.fw_num_metric NULL;