new table to store target price components

This commit is contained in:
Paul Trowbridge 2025-08-21 15:30:08 -04:00
parent c77a6643b2
commit e9bd81f352

16
tables/core_target.pg.sql Normal file
View File

@ -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);