diff --git a/readme.md b/readme.md index 315daba..3e3753a 100644 --- a/readme.md +++ b/readme.md @@ -29,6 +29,7 @@ route baseline * copy some period of actual sales and increment all the dates to serve as a baseline forecast TO-DO: +- [ ] join to period tables to populate season; requires variance number oof table joins, based on howmany date functions there are 🙄 - [ ] setup something to fill in sql parameters to do testing on the function running problem list diff --git a/setup_sql/schema.sql b/setup_sql/schema.sql index f13a9ca..dfab167 100644 --- a/setup_sql/schema.sql +++ b/setup_sql/schema.sql @@ -2,15 +2,16 @@ DROP TABLE IF EXISTS fc.target_meta; CREATE TABLE fc.target_meta ( - tname text - ,cname text - ,opos int - ,func text - ,fkey text - ,pretty text - ,dtype text - ,mastcol text - ,appcol text + tname text + ,cname text + ,opos int + ,func text + ,fkey text + ,pretty text + ,dtype text + ,mastcol text + ,appcol text + ,dateref text ); --ALTER TABLE fc.target_meta DROP CONSTRAINT IF EXISTS target_meta_pk; @@ -26,3 +27,4 @@ COMMENT ON COLUMN fc.target_meta.pretty IS 'the presentation name of the column' COMMENT ON COLUMN fc.target_meta.dtype IS 'data type of the sales table column'; COMMENT ON COLUMN fc.target_meta.mastcol IS 'associated field from the master data table if it is different (oseas would refer to ssyr in fc.perd)'; COMMENT ON COLUMN fc.target_meta.appcol IS 'supply column name to be used for application variables - (specifcy the order date column)'; +COMMENT ON COLUMN fc.target_meta.dateref IS 'reference to the relevant hard coded perd table column for dates';