update readme to create more of a checklist

This commit is contained in:
Paul Trowbridge 2022-04-03 00:48:29 -04:00
parent 6462e742d9
commit d1371bcdce

View File

@ -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 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. * setup the application tables `$PGD -f setup_sql/schema.sql`
the goal then is to break that back apart to whatever degree is necessary. * create a table of data to forecast
* edit `target_info.sql` to reflect the name of the table from previous step
* _**run**_ `schema.sql` and `perd.sql` to setup basic tables * `$PGD -f setup_sql/target_info.sql` to populate the meta table
* create a table fc.live as copied from target (will need to have columns `version` and `iter` added if not existing) * fill out the `target_meta` table in the database to model the forecast table
* _**run**_ `target_info.sql` to populate the `fc.target_meta` table that holds all the columns and their roles * `PGD -f setup_sql/build_maste_tables.sql` to create master data tables from forecast data
* fill in flags on table `fc.target_meta` to show how the data is related * `./routes/baseline/generate_route_sql.sh` to create the baseline sql used by the /baseline route
* _**run**_ `build_master_tables.sql` to generate foreign key based master data
routes routes
---------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------