diff --git a/.gitignore b/.gitignore index 7093a31..78437e4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,10 @@ env/* # postgres persisted data pgdata/ +<<<<<<< HEAD +======= +.gitsecret/keys/random_seed +!*.secret +db/init/20200305_2357_init_db.sql +db/init/20200309_1938_init_db.sql +>>>>>>> 82cba4b1a128c004de71350c80c55b189970efe7 diff --git a/.gitsecret/keys/pubring.kbx b/.gitsecret/keys/pubring.kbx new file mode 100644 index 0000000..2aadae8 Binary files /dev/null and b/.gitsecret/keys/pubring.kbx differ diff --git a/.gitsecret/keys/pubring.kbx~ b/.gitsecret/keys/pubring.kbx~ new file mode 100644 index 0000000..bbd4ee4 Binary files /dev/null and b/.gitsecret/keys/pubring.kbx~ differ diff --git a/.gitsecret/keys/trustdb.gpg b/.gitsecret/keys/trustdb.gpg new file mode 100644 index 0000000..90e4459 Binary files /dev/null and b/.gitsecret/keys/trustdb.gpg differ diff --git a/.gitsecret/paths/mapping.cfg b/.gitsecret/paths/mapping.cfg new file mode 100644 index 0000000..212548e --- /dev/null +++ b/.gitsecret/paths/mapping.cfg @@ -0,0 +1,8 @@ +db/seed/test.sql:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +db/init/20200305_2357_init_db.sql:197708aa84419fc409a75c164689e58f71d6501b8e7c79f04797909a619838fc +db/init/20200309_1938_init_db.sql:10c62ab73168e76aaa038f480729bad74b804b0272b4a3f1cdde22a2609df43c +db/models/20200305_2357_model.json:a06db3d67a60cd5225ea57c444d3fbfd8fe7efc01cf8eebe0b67ea9275e92570 +db/models/20200309_1936_model.json:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +db/models/20200309_1938_model.json:a06db3d67a60cd5225ea57c444d3fbfd8fe7efc01cf8eebe0b67ea9275e92570 +db/init/20200305_2357_init_db.sql.secret +db/init/20200309_1938_init_db.sql.secret diff --git a/db/execute-sql-in-container.bash b/db/execute-sql-in-container.bash new file mode 100755 index 0000000..3ed782f --- /dev/null +++ b/db/execute-sql-in-container.bash @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Author: "hertz" +# Date: 20200310 +# #################### +# DESC: +# A script to execute a SQL script inside of postgres docker container +# #################### + + +# args: +# 1 -- name of container running postgres to execute the script inside of +# 2 -- path to .SQL script to be execute inside of the postgres container + +#if [[ $# -ne 1 ]]; then +# echo "Usage: $0 ..." +# exit +#fi + + +# script: + + diff --git a/db/init/.gitignore b/db/init/.gitignore new file mode 100644 index 0000000..0c262b4 --- /dev/null +++ b/db/init/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!*.secret diff --git a/db/init/20200305_2357_init_db.sql b/db/init/20200305_2357_init_db.sql deleted file mode 100644 index 61314ad..0000000 --- a/db/init/20200305_2357_init_db.sql +++ /dev/null @@ -1,280 +0,0 @@ -create schema chi_20200305_2357; -create table chi_20200305_2357.clinics ( - pk_clinic_id FLOAT primary key, - clinic_name VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR -); - -create table chi_20200305_2357.patients ( - pk_patient_id FLOAT primary key, - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - last_name VARCHAR , - first_name VARCHAR , - gender VARCHAR , - face_photo VARCHAR , - birthdate VARCHAR , - phone VARCHAR , - town VARCHAR , - unique_name VARCHAR , - unique_ID_name VARCHAR , - nickname VARCHAR , - needs_review VARCHAR , - notes_modification_status VARCHAR , - fk_geonameid VARCHAR -); - -create table chi_20200305_2357.visits ( - pk_visit_id FLOAT primary key, - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - fk_patient_id FLOAT , - fk_clinic_id FLOAT , - visit_date TIMESTAMP , - visit_age FLOAT , - ob_pregnant VARCHAR , - ob_last_menstrual_period VARCHAR , - bp_systolic_blood_pressure FLOAT , - bp_diastolic_blood_pressure FLOAT , - bp_mean_arterial_pressure FLOAT , - temp_in_fahrenheit FLOAT , - pulse_rate FLOAT , - weight_in_lbs FLOAT , - height_in_inches FLOAT , - glasses_given VARCHAR , - sunglasses_given VARCHAR , - dx_surgical_candidate VARCHAR , - surgical_comments VARCHAR , - visit_age_unit VARCHAR , - chief_complaint VARCHAR , - history_of_present_illness VARCHAR , - visit_age_years FLOAT , - exam_comments VARCHAR , - tests_comments VARCHAR , - tests_blood_sugar_result FLOAT , - tests_pregnancy_result VARCHAR , - tests_urine_glucose_result VARCHAR , - tests_urine_protein_result VARCHAR , - tests_urine_leukocytes_result VARCHAR , - tests_urine_nitrites_result VARCHAR , - ob_gravida FLOAT , - ob_para FLOAT , - ob_abortus FLOAT , - ob_history VARCHAR , - ob_wants_planning VARCHAR , - albendazole_given VARCHAR , - first_visit VARCHAR , - known_med_allergies VARCHAR , - meds_currently_taken VARCHAR , - tests_pregnancy_given VARCHAR , - tests_blood_sugar_given VARCHAR , - tests_eye_exam_given VARCHAR , - tests_urine_analysis_given VARCHAR , - dx_asthma VARCHAR , - dx_allergies VARCHAR , - dx_anemia VARCHAR , - dx_malnutrition VARCHAR , - dx_diabetes VARCHAR , - dx_pterygium VARCHAR , - dx_cataract VARCHAR , - dx_dry_eye VARCHAR , - dx_conjunctivitis VARCHAR , - dx_fever VARCHAR , - dx_possible_malaria VARCHAR , - dx_filariasis VARCHAR , - dx_gastritis VARCHAR , - dx_gerd VARCHAR , - dx_gastroenteritis VARCHAR , - dx_dysentery VARCHAR , - dx_possible_cholera VARCHAR , - dx_headache VARCHAR , - dx_hernia VARCHAR , - dx_hernia_type VARCHAR , - dx_hypertension VARCHAR , - dx_stroke VARCHAR , - dx_angina VARCHAR , - dx_chf VARCHAR , - dx_musculoskeletal_pain VARCHAR , - dx_otitis VARCHAR , - dx_otitis_ear VARCHAR , - dx_pneumonia VARCHAR , - dx_sinusitis VARCHAR , - dx_uri VARCHAR , - dx_pregnant VARCHAR , - dx_pregnant_weeks FLOAT , - dx_atopic_derm VARCHAR , - dx_fungal VARCHAR , - dx_scabies VARCHAR , - dx_impetigo VARCHAR , - dx_tinea_capitus VARCHAR , - dx_possible_std VARCHAR , - dx_possible_tb VARCHAR , - dx_vaginitis_candidal VARCHAR , - dx_vaginitis_trich VARCHAR , - dx_vaginitis_bv VARCHAR , - dx_other VARCHAR , - dx_other_text VARCHAR , - tx_multivitamin VARCHAR , - tx_pain_acetaminophen VARCHAR , - tx_gi_omeprazole VARCHAR , - tx_gi_pepto_bismol VARCHAR , - tx_gi_cimetidine VARCHAR , - tx_gi_tums VARCHAR , - tx_gi_ors VARCHAR , - tx_infections_albendazole VARCHAR , - tx_infections_amoxicillin VARCHAR , - tx_infections_azithromycin VARCHAR , - tx_infections_bactrim VARCHAR , - tx_infections_cipro VARCHAR , - tx_infections_doxycycline VARCHAR , - tx_infections_flagyl VARCHAR , - tx_infections_fluconazole VARCHAR , - tx_infections_griseofulvin VARCHAR , - tx_infections_ivermectin VARCHAR , - tx_infections_keflex VARCHAR , - tx_infections_rocephin VARCHAR , - tx_cardiac_amlodipine VARCHAR , - tx_cardiac_aspirin VARCHAR , - tx_cardiac_atenolol VARCHAR , - tx_cardiac_hctz VARCHAR , - tx_cardiac_lasix VARCHAR , - tx_cardiac_enalapril VARCHAR , - tx_topical_clotrimazole VARCHAR , - tx_topical_hydrocortisone VARCHAR , - tx_topical_silvadine VARCHAR , - tx_topical_permethirine VARCHAR , - tx_im_dexamethasone VARCHAR , - tx_im_lasix VARCHAR , - tx_misc_albuterol VARCHAR , - tx_misc_benadryl VARCHAR , - tx_misc_ferrous_sulfate VARCHAR , - tx_misc_metformin VARCHAR , - tx_misc_prednisolone VARCHAR , - tx_misc_other VARCHAR , - tx_misc_other_text VARCHAR , - tx_comments VARCHAR , - dx_uti VARCHAR , - tx_multivitamin_varieties VARCHAR , - tx_pain_acetaminophen_varieties VARCHAR , - tx_infections_amoxicillin_varieties VARCHAR , - tx_pain_ibuprofen VARCHAR , - dx_comments VARCHAR , - tx_infections_azithromycin_varieties VARCHAR , - tx_infections_bactrim_varieties VARCHAR , - tx_infections_keflex_varieties VARCHAR , - tx_infections_rocephin_varieties VARCHAR , - dx_vaginitis_general VARCHAR , - dx_needs_to_see_dentist VARCHAR , - dx_needs_to_see_eye_doctor VARCHAR , - dx_healthy VARCHAR , - provider VARCHAR , - tx_saw_dentist VARCHAR , - tx_saw_eye_doctor VARCHAR , - tx_outside_referral VARCHAR , - tx_outside_referral_text VARCHAR , - tx_gi_zinc VARCHAR , - tx_cardiac_methyldopa VARCHAR , - tx_infections_augmentin VARCHAR , - tx_infections_chloroquine VARCHAR , - tx_infections_griseofuvin_varieties VARCHAR , - tx_infections_nitrofurantoin VARCHAR , - tx_topical_double_antibiotic VARCHAR , - tx_misc_fluoxetine VARCHAR , - tx_misc_ocp VARCHAR , - tx_misc_phenytoin VARCHAR , - dx_possible_parasites VARCHAR , - tx_misc_iud VARCHAR , - tests_id_test_given VARCHAR , - tests_id_chlamydia_result VARCHAR , - tests_id_hiv_result VARCHAR , - tests_id_syphilis_result VARCHAR , - tests_id_gonorrhea_result VARCHAR , - tests_eye_exam_right_sphere VARCHAR , - tests_eye_exam_right_cylinder VARCHAR , - tests_eye_exam_right_axis VARCHAR , - tests_eye_exam_right_bifocal VARCHAR , - tests_eye_exam_left_sphere VARCHAR , - tests_eye_exam_left_cylinder VARCHAR , - tests_eye_exam_left_axis VARCHAR , - tests_eye_exam_left_bifocal VARCHAR , - tx_pain_ibuprofen_varieties VARCHAR , - tx_misc_benadryl_varieties VARCHAR , - tests_id_tb_result VARCHAR , - tests_id_confirm_hiv_cd4 VARCHAR , - tests_id_confirm_hiv_result VARCHAR , - tests_id_confirm_hiv_arvt VARCHAR , - tests_id_confirm_hiv_enrolled VARCHAR , - tests_id_confirm_hiv_problems VARCHAR , - tests_id_confirm_tb_result VARCHAR , - tests_id_confirm_tb_comments VARCHAR , - tests_id_confirm_hiv_enrolled_at VARCHAR , - dx_depression VARCHAR , - clinic_trip VARCHAR , - tx_chw_referral VARCHAR , - tx_misc_depo VARCHAR , - tx_misc_paroxetine VARCHAR , - tx_misc_keppra VARCHAR , - dx_totalcount FLOAT , - tx_totalcount FLOAT , - tx_given_glasses VARCHAR , - tx_misc_labetolol VARCHAR , - tx_misc_carbamazepine VARCHAR , - tx_misc_terazosin VARCHAR , - tx_gi_ranitidine VARCHAR , - tx_cardiac_lisinopril VARCHAR , - tx_topical_triple_antibiotic VARCHAR , - tx_misc_prednisone VARCHAR , - clinic VARCHAR , - notes_modification_status VARCHAR -); - -create table chi_20200305_2357.diagnoses ( - pk_diagnosis_id FLOAT primary key, - diagnosis_name VARCHAR , - pk_diagnosis_key VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR -); - -create table chi_20200305_2357.diagnoses_made ( - pk_diagnoses_made FLOAT primary key, - fk_visit_id FLOAT , - fk_diagnosis_key VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR -); - -create table chi_20200305_2357.meds ( - pk_med_id FLOAT primary key, - med_name VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - pk_med_key VARCHAR , - med_type VARCHAR -); - -create table chi_20200305_2357.meds_dispensed ( - pk_meds_dispensed FLOAT primary key, - fk_visit_id FLOAT , - fk_med_key VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - dispensed_total FLOAT , - med_dosage VARCHAR -); - diff --git a/db/init/20200305_2357_init_db.sql.secret b/db/init/20200305_2357_init_db.sql.secret new file mode 100644 index 0000000..e2f54c8 Binary files /dev/null and b/db/init/20200305_2357_init_db.sql.secret differ diff --git a/db/init/20200309_1938_init_db.sql b/db/init/20200309_1938_init_db.sql deleted file mode 100644 index 0e371ae..0000000 --- a/db/init/20200309_1938_init_db.sql +++ /dev/null @@ -1,280 +0,0 @@ -create schema chi_20200309_1938; -create table chi_20200309_1938.clinics ( - pk_clinic_id FLOAT primary key, - clinic_name VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR -); - -create table chi_20200309_1938.patients ( - pk_patient_id FLOAT primary key, - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - last_name VARCHAR , - first_name VARCHAR , - gender VARCHAR , - face_photo VARCHAR , - birthdate VARCHAR , - phone VARCHAR , - town VARCHAR , - unique_name VARCHAR , - unique_ID_name VARCHAR , - nickname VARCHAR , - needs_review VARCHAR , - notes_modification_status VARCHAR , - fk_geonameid VARCHAR -); - -create table chi_20200309_1938.visits ( - pk_visit_id FLOAT primary key, - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - fk_patient_id FLOAT , - fk_clinic_id FLOAT , - visit_date TIMESTAMP , - visit_age FLOAT , - ob_pregnant VARCHAR , - ob_last_menstrual_period VARCHAR , - bp_systolic_blood_pressure FLOAT , - bp_diastolic_blood_pressure FLOAT , - bp_mean_arterial_pressure FLOAT , - temp_in_fahrenheit FLOAT , - pulse_rate FLOAT , - weight_in_lbs FLOAT , - height_in_inches FLOAT , - glasses_given VARCHAR , - sunglasses_given VARCHAR , - dx_surgical_candidate VARCHAR , - surgical_comments VARCHAR , - visit_age_unit VARCHAR , - chief_complaint VARCHAR , - history_of_present_illness VARCHAR , - visit_age_years FLOAT , - exam_comments VARCHAR , - tests_comments VARCHAR , - tests_blood_sugar_result FLOAT , - tests_pregnancy_result VARCHAR , - tests_urine_glucose_result VARCHAR , - tests_urine_protein_result VARCHAR , - tests_urine_leukocytes_result VARCHAR , - tests_urine_nitrites_result VARCHAR , - ob_gravida FLOAT , - ob_para FLOAT , - ob_abortus FLOAT , - ob_history VARCHAR , - ob_wants_planning VARCHAR , - albendazole_given VARCHAR , - first_visit VARCHAR , - known_med_allergies VARCHAR , - meds_currently_taken VARCHAR , - tests_pregnancy_given VARCHAR , - tests_blood_sugar_given VARCHAR , - tests_eye_exam_given VARCHAR , - tests_urine_analysis_given VARCHAR , - dx_asthma VARCHAR , - dx_allergies VARCHAR , - dx_anemia VARCHAR , - dx_malnutrition VARCHAR , - dx_diabetes VARCHAR , - dx_pterygium VARCHAR , - dx_cataract VARCHAR , - dx_dry_eye VARCHAR , - dx_conjunctivitis VARCHAR , - dx_fever VARCHAR , - dx_possible_malaria VARCHAR , - dx_filariasis VARCHAR , - dx_gastritis VARCHAR , - dx_gerd VARCHAR , - dx_gastroenteritis VARCHAR , - dx_dysentery VARCHAR , - dx_possible_cholera VARCHAR , - dx_headache VARCHAR , - dx_hernia VARCHAR , - dx_hernia_type VARCHAR , - dx_hypertension VARCHAR , - dx_stroke VARCHAR , - dx_angina VARCHAR , - dx_chf VARCHAR , - dx_musculoskeletal_pain VARCHAR , - dx_otitis VARCHAR , - dx_otitis_ear VARCHAR , - dx_pneumonia VARCHAR , - dx_sinusitis VARCHAR , - dx_uri VARCHAR , - dx_pregnant VARCHAR , - dx_pregnant_weeks FLOAT , - dx_atopic_derm VARCHAR , - dx_fungal VARCHAR , - dx_scabies VARCHAR , - dx_impetigo VARCHAR , - dx_tinea_capitus VARCHAR , - dx_possible_std VARCHAR , - dx_possible_tb VARCHAR , - dx_vaginitis_candidal VARCHAR , - dx_vaginitis_trich VARCHAR , - dx_vaginitis_bv VARCHAR , - dx_other VARCHAR , - dx_other_text VARCHAR , - tx_multivitamin VARCHAR , - tx_pain_acetaminophen VARCHAR , - tx_gi_omeprazole VARCHAR , - tx_gi_pepto_bismol VARCHAR , - tx_gi_cimetidine VARCHAR , - tx_gi_tums VARCHAR , - tx_gi_ors VARCHAR , - tx_infections_albendazole VARCHAR , - tx_infections_amoxicillin VARCHAR , - tx_infections_azithromycin VARCHAR , - tx_infections_bactrim VARCHAR , - tx_infections_cipro VARCHAR , - tx_infections_doxycycline VARCHAR , - tx_infections_flagyl VARCHAR , - tx_infections_fluconazole VARCHAR , - tx_infections_griseofulvin VARCHAR , - tx_infections_ivermectin VARCHAR , - tx_infections_keflex VARCHAR , - tx_infections_rocephin VARCHAR , - tx_cardiac_amlodipine VARCHAR , - tx_cardiac_aspirin VARCHAR , - tx_cardiac_atenolol VARCHAR , - tx_cardiac_hctz VARCHAR , - tx_cardiac_lasix VARCHAR , - tx_cardiac_enalapril VARCHAR , - tx_topical_clotrimazole VARCHAR , - tx_topical_hydrocortisone VARCHAR , - tx_topical_silvadine VARCHAR , - tx_topical_permethirine VARCHAR , - tx_im_dexamethasone VARCHAR , - tx_im_lasix VARCHAR , - tx_misc_albuterol VARCHAR , - tx_misc_benadryl VARCHAR , - tx_misc_ferrous_sulfate VARCHAR , - tx_misc_metformin VARCHAR , - tx_misc_prednisolone VARCHAR , - tx_misc_other VARCHAR , - tx_misc_other_text VARCHAR , - tx_comments VARCHAR , - dx_uti VARCHAR , - tx_multivitamin_varieties VARCHAR , - tx_pain_acetaminophen_varieties VARCHAR , - tx_infections_amoxicillin_varieties VARCHAR , - tx_pain_ibuprofen VARCHAR , - dx_comments VARCHAR , - tx_infections_azithromycin_varieties VARCHAR , - tx_infections_bactrim_varieties VARCHAR , - tx_infections_keflex_varieties VARCHAR , - tx_infections_rocephin_varieties VARCHAR , - dx_vaginitis_general VARCHAR , - dx_needs_to_see_dentist VARCHAR , - dx_needs_to_see_eye_doctor VARCHAR , - dx_healthy VARCHAR , - provider VARCHAR , - tx_saw_dentist VARCHAR , - tx_saw_eye_doctor VARCHAR , - tx_outside_referral VARCHAR , - tx_outside_referral_text VARCHAR , - tx_gi_zinc VARCHAR , - tx_cardiac_methyldopa VARCHAR , - tx_infections_augmentin VARCHAR , - tx_infections_chloroquine VARCHAR , - tx_infections_griseofuvin_varieties VARCHAR , - tx_infections_nitrofurantoin VARCHAR , - tx_topical_double_antibiotic VARCHAR , - tx_misc_fluoxetine VARCHAR , - tx_misc_ocp VARCHAR , - tx_misc_phenytoin VARCHAR , - dx_possible_parasites VARCHAR , - tx_misc_iud VARCHAR , - tests_id_test_given VARCHAR , - tests_id_chlamydia_result VARCHAR , - tests_id_hiv_result VARCHAR , - tests_id_syphilis_result VARCHAR , - tests_id_gonorrhea_result VARCHAR , - tests_eye_exam_right_sphere VARCHAR , - tests_eye_exam_right_cylinder VARCHAR , - tests_eye_exam_right_axis VARCHAR , - tests_eye_exam_right_bifocal VARCHAR , - tests_eye_exam_left_sphere VARCHAR , - tests_eye_exam_left_cylinder VARCHAR , - tests_eye_exam_left_axis VARCHAR , - tests_eye_exam_left_bifocal VARCHAR , - tx_pain_ibuprofen_varieties VARCHAR , - tx_misc_benadryl_varieties VARCHAR , - tests_id_tb_result VARCHAR , - tests_id_confirm_hiv_cd4 VARCHAR , - tests_id_confirm_hiv_result VARCHAR , - tests_id_confirm_hiv_arvt VARCHAR , - tests_id_confirm_hiv_enrolled VARCHAR , - tests_id_confirm_hiv_problems VARCHAR , - tests_id_confirm_tb_result VARCHAR , - tests_id_confirm_tb_comments VARCHAR , - tests_id_confirm_hiv_enrolled_at VARCHAR , - dx_depression VARCHAR , - clinic_trip VARCHAR , - tx_chw_referral VARCHAR , - tx_misc_depo VARCHAR , - tx_misc_paroxetine VARCHAR , - tx_misc_keppra VARCHAR , - dx_totalcount FLOAT , - tx_totalcount FLOAT , - tx_given_glasses VARCHAR , - tx_misc_labetolol VARCHAR , - tx_misc_carbamazepine VARCHAR , - tx_misc_terazosin VARCHAR , - tx_gi_ranitidine VARCHAR , - tx_cardiac_lisinopril VARCHAR , - tx_topical_triple_antibiotic VARCHAR , - tx_misc_prednisone VARCHAR , - clinic VARCHAR , - notes_modification_status VARCHAR -); - -create table chi_20200309_1938.diagnoses ( - pk_diagnosis_id FLOAT primary key, - diagnosis_name VARCHAR , - pk_diagnosis_key VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR -); - -create table chi_20200309_1938.diagnoses_made ( - pk_diagnoses_made FLOAT primary key, - fk_visit_id FLOAT , - fk_diagnosis_key VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR -); - -create table chi_20200309_1938.meds ( - pk_med_id FLOAT primary key, - med_name VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - pk_med_key VARCHAR , - med_type VARCHAR -); - -create table chi_20200309_1938.meds_dispensed ( - pk_meds_dispensed FLOAT primary key, - fk_visit_id FLOAT , - fk_med_key VARCHAR , - creation_date TIMESTAMP , - creation_acct VARCHAR , - modified_date TIMESTAMP , - modified_acct VARCHAR , - dispensed_total FLOAT , - med_dosage VARCHAR -); - diff --git a/db/init/20200309_1938_init_db.sql.secret b/db/init/20200309_1938_init_db.sql.secret new file mode 100644 index 0000000..3554902 Binary files /dev/null and b/db/init/20200309_1938_init_db.sql.secret differ diff --git a/db/models/.gitignore b/db/models/.gitignore new file mode 100644 index 0000000..bdf5868 --- /dev/null +++ b/db/models/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!*.secret \ No newline at end of file diff --git a/db/models/.gitkeep b/db/models/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/db/models/20200305_2357_model.json.secret b/db/models/20200305_2357_model.json.secret new file mode 100644 index 0000000..0ae6f40 Binary files /dev/null and b/db/models/20200305_2357_model.json.secret differ diff --git a/db/models/20200309_1936_model.json.secret b/db/models/20200309_1936_model.json.secret new file mode 100644 index 0000000..71b6e11 Binary files /dev/null and b/db/models/20200309_1936_model.json.secret differ diff --git a/db/models/20200309_1938_model.json.secret b/db/models/20200309_1938_model.json.secret new file mode 100644 index 0000000..9d2838f Binary files /dev/null and b/db/models/20200309_1938_model.json.secret differ diff --git a/db/seed/.gitignore b/db/seed/.gitignore index c96a04f..0c262b4 100644 --- a/db/seed/.gitignore +++ b/db/seed/.gitignore @@ -1,2 +1,3 @@ * -!.gitignore \ No newline at end of file +!.gitignore +!*.secret diff --git a/db/seed/test.sql.secret b/db/seed/test.sql.secret new file mode 100644 index 0000000..d772804 Binary files /dev/null and b/db/seed/test.sql.secret differ