Skip to content

Commit

Permalink
add columns missing from yaml, will load properly on local init
Browse files Browse the repository at this point in the history
  • Loading branch information
davidclaveau committed Dec 21, 2023
1 parent b3ff4a8 commit bf14fa2
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CREATE TABLE watercraft_risk_assessment ();
ALTER TABLE watercraft_risk_assessment ADD COLUMN watercraft_risk_assessment_id SERIAL PRIMARY KEY;
ALTER TABLE watercraft_risk_assessment ADD COLUMN timestamp TIMESTAMP NOT NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN passport_holder_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN is_new_passport_issued BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN k9_inspection_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN marine_species_found_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN aquatic_plants_found_ind BOOLEAN NOT NULL DEFAULT FALSE;
Expand All @@ -19,15 +20,18 @@ ALTER TABLE watercraft_risk_assessment ADD COLUMN high_risk_area_ind BOOLEAN NOT
ALTER TABLE watercraft_risk_assessment ADD COLUMN high_risk_ais_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN previous_dry_storage_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN destination_dry_storage_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN previous_major_city VARCHAR(100) NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN destination_major_city VARCHAR(100) NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN unknown_previous_water_body_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN unknown_destination_water_body_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN commercial_manufacturer_as_previous_water_body_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN commercial_manufacturer_as_destination_water_body_ind BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN dreissenid_mussels_found_previous BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE watercraft_risk_assessment ADD COLUMN non_motorized_counter INT NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN simple_counter INT NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN complex_counter INT NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN very_complex_count INT NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN previous_inspection_days_count INT NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN previous_inspection_days_count VARCHAR(100) NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN general_comment VARCHAR(300) NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN passport_number VARCHAR(100) NULL;
ALTER TABLE watercraft_risk_assessment ADD COLUMN decontamination_reference VARCHAR(100) NULL;
Expand All @@ -46,6 +50,7 @@ COMMENT ON TABLE watercraft_risk_assessment IS 'This is schema for data model of
COMMENT ON COLUMN watercraft_risk_assessment.watercraft_risk_assessment_id IS 'Auto generated primary key';
COMMENT ON COLUMN watercraft_risk_assessment.timestamp IS 'Date and time of watercraft observation.';
COMMENT ON COLUMN watercraft_risk_assessment.passport_holder_ind IS 'Indicator to show that inspected boat has previously issued passport';
COMMENT ON COLUMN watercraft_risk_assessment.is_new_passport_issued IS 'Indicator to show that inspected boat was issued a new passport';
COMMENT ON COLUMN watercraft_risk_assessment.k9_inspection_ind IS 'Indicator to show that inspection type is K9';
COMMENT ON COLUMN watercraft_risk_assessment.marine_species_found_ind IS 'Indicator to show any marine species found during inspection';
COMMENT ON COLUMN watercraft_risk_assessment.aquatic_plants_found_ind IS 'Indicator to show any aquatic plants found during inspection';
Expand All @@ -60,15 +65,18 @@ COMMENT ON COLUMN watercraft_risk_assessment.high_risk_area_ind IS 'Indicator fl
COMMENT ON COLUMN watercraft_risk_assessment.high_risk_ais_ind IS 'Indicator flag to check high risk AIS or not';
COMMENT ON COLUMN watercraft_risk_assessment.previous_dry_storage_ind IS 'Boolean indicator that watercraft''s previous water body is Dry Storage';
COMMENT ON COLUMN watercraft_risk_assessment.destination_dry_storage_ind IS 'Boolean indicator that watercraft''s destination water body is Dry Storage';
COMMENT ON COLUMN watercraft_risk_assessment.previous_major_city IS 'The closest major city to previous water body';
COMMENT ON COLUMN watercraft_risk_assessment.destination_major_city IS 'The closest major city to destination water body';
COMMENT ON COLUMN watercraft_risk_assessment.unknown_previous_water_body_ind IS 'Boolean indicate that watercraft''s previous water body is unknown';
COMMENT ON COLUMN watercraft_risk_assessment.unknown_destination_water_body_ind IS 'Boolean indicate that watercraft''s destination water body is unknown';
COMMENT ON COLUMN watercraft_risk_assessment.commercial_manufacturer_as_previous_water_body_ind IS 'Boolean indicate that watercraft''s previous water body is commercial manufacturer';
COMMENT ON COLUMN watercraft_risk_assessment.commercial_manufacturer_as_destination_water_body_ind IS 'Boolean indicate that watercraft''s destination water body is commercial manufacturer';
COMMENT ON COLUMN watercraft_risk_assessment.dreissenid_mussels_found_previous IS 'Status flag to check if dreissenid mussels were found on the previous inspection or not';
COMMENT ON COLUMN watercraft_risk_assessment.non_motorized_counter IS 'Counter for non motorized boats in inspection';
COMMENT ON COLUMN watercraft_risk_assessment.simple_counter IS 'Counter for number of simple boats in the inspection';
COMMENT ON COLUMN watercraft_risk_assessment.complex_counter IS 'Counter for number of complex boats in the inspection';
COMMENT ON COLUMN watercraft_risk_assessment.very_complex_count IS 'Counter for number of very complex boats in the inspection';
COMMENT ON COLUMN watercraft_risk_assessment.previous_inspection_days_count IS 'Counter for number of very complex boats in the inspection';
COMMENT ON COLUMN watercraft_risk_assessment.previous_inspection_days_count IS 'Number of days the previous inspection was conducted';
COMMENT ON COLUMN watercraft_risk_assessment.general_comment IS 'General comment associated with assessment';
COMMENT ON COLUMN watercraft_risk_assessment.passport_number IS 'Passport number associated with previous inspection';
COMMENT ON COLUMN watercraft_risk_assessment.decontamination_reference IS 'Decontamination reference number. Optional and dependent on decontaminationPerformed indicator';
Expand Down

0 comments on commit bf14fa2

Please sign in to comment.