diff --git a/readme.md b/readme.md index 18d61c3..a9236bf 100644 --- a/readme.md +++ b/readme.md @@ -1,16 +1,14 @@ -## worked on so far - +* setup postgres db with a username and password and database +* add this to .bashrc to quickly invoke command line connection `export PGD="psql -U ptrowbridge -d ubm -p 5433 -h 192.168.1.110"` setup ---------------------------------------------------------------------------------------------------------------------------------------------------- -the basic assumption is a single sales table is available to work with that has a lot of related data that came from master data tables originally. -the goal then is to break that back apart to whatever degree is necessary. - -* _**run**_ `schema.sql` and `perd.sql` to setup basic tables -* create a table fc.live as copied from target (will need to have columns `version` and `iter` added if not existing) -* _**run**_ `target_info.sql` to populate the `fc.target_meta` table that holds all the columns and their roles -* fill in flags on table `fc.target_meta` to show how the data is related -* _**run**_ `build_master_tables.sql` to generate foreign key based master data - +* setup the application tables `$PGD -f setup_sql/schema.sql` +* create a table of data to forecast +* edit `target_info.sql` to reflect the name of the table from previous step +* `$PGD -f setup_sql/target_info.sql` to populate the meta table +* fill out the `target_meta` table in the database to model the forecast table +* `PGD -f setup_sql/build_maste_tables.sql` to create master data tables from forecast data +* `./routes/baseline/generate_route_sql.sh` to create the baseline sql used by the /baseline route routes ----------------------------------------------------------------------------------------------------------------------------------------------------