diff --git a/tables/core_target.pg.sql b/tables/core_target.pg.sql new file mode 100644 index 0000000..4bda31f --- /dev/null +++ b/tables/core_target.pg.sql @@ -0,0 +1,16 @@ + +DROP TABLE IF EXISTS pricequote.core_target; + +CREATE TABLE pricequote.core_target ( + compset TEXT NOT NULL, + stlc TEXT NOT NULL, + floor NUMERIC NOT NULL, + options JSONB NOT NULL, + PRIMARY KEY (stlc) +); + +GRANT SELECT, INSERT, UPDATE, DELETE ON pricequote.target_prices TO PUBLIC; + +DROP TABLE IF EXISTS import.core_target; + +CREATE TABLE import.core_target AS (SELECT * FROM pricequote.core_target);